public EJBComponent getComponent() { return instance.getComponent(); }
public Object getTarget() { return instance.getInstance(); }
public static EJBContextImpl getEjbContext() { final InterceptorContext context = get(); if(context == null) { throw EjbLogger.ROOT_LOGGER.noEjbContextAvailable(); } final ComponentInstance component = context.getPrivateData(ComponentInstance.class); if(!(component instanceof EjbComponentInstance)) { throw EjbLogger.ROOT_LOGGER.currentComponentNotAEjb(component); } return ((EjbComponentInstance)component).getEjbContext(); }
public void discard() { if (!isDiscarded()) { getComponent().getCache().discard(this); this.primaryKey = null; } super.discard(); }
public static EJBContextImpl getEjbContext() { final InterceptorContext context = get(); if(context == null) { throw MESSAGES.noEjbContextAvailable(); } final ComponentInstance component = context.getPrivateData(ComponentInstance.class); if(!(component instanceof EjbComponentInstance)) { throw MESSAGES.currentComponentNotAEjb(component); } return ((EjbComponentInstance)component).getEjbContext(); }
@Override public SessionBeanComponent getComponent() { return (SessionBeanComponent) super.getComponent(); }
@Override public EntityBean getInstance() { return (EntityBean) super.getInstance(); }
@Override public MessageDrivenComponent getComponent() { return (MessageDrivenComponent) super.getComponent(); }
public Object getTarget() { return instance.getInstance(); }
public EJBLocalHome getEJBLocalHome() { return instance.getComponent().getEJBLocalHome(); }
public Principal getCallerPrincipal() { AllowedMethodsInformation.checkAllowed(MethodType.GET_CALLER_PRINCIPLE); // per invocation return instance.getComponent().getCallerPrincipal(); }
public boolean isCallerInRole(String roleName) { AllowedMethodsInformation.checkAllowed(MethodType.IS_CALLER_IN_ROLE); return instance.getComponent().isCallerInRole(roleName); }
public TimerService getTimerService() throws IllegalStateException { AllowedMethodsInformation.checkAllowed(MethodType.GET_TIMER_SERVICE); return instance.getComponent().getTimerService(); }
public boolean getRollbackOnly() throws IllegalStateException { // to allow override per invocation final InterceptorContext context = CurrentInvocationContext.get(); if (context.getMethod() == null) { throw EjbLogger.ROOT_LOGGER.lifecycleMethodNotAllowed("getRollbackOnly"); } return instance.getComponent().getRollbackOnly(); }
public void setRollbackOnly() throws IllegalStateException { // to allow override per invocation final InterceptorContext context = CurrentInvocationContext.get(); if (context.getMethod() == null) { throw EjbLogger.ROOT_LOGGER.lifecycleMethodNotAllowed("getRollbackOnly"); } instance.getComponent().setRollbackOnly(); } }
@Override public SessionBeanComponent getComponent() { return (SessionBeanComponent) super.getComponent(); }
public EJBComponent getComponent() { return instance.getComponent(); }
@Override public EntityBeanComponent getComponent() { return (EntityBeanComponent) super.getComponent(); }
@Override public MessageDrivenComponent getComponent() { return (MessageDrivenComponent) super.getComponent(); }
public EJBLocalHome getEJBLocalHome() { return instance.getComponent().getEJBLocalHome(); }