public EJBComponent getComponent() { return instance.getComponent(); }
@Override public SessionBeanComponent getComponent() { return (SessionBeanComponent) super.getComponent(); }
@Override public MessageDrivenComponent getComponent() { return (MessageDrivenComponent) super.getComponent(); }
public EJBLocalHome getEJBLocalHome() { return instance.getComponent().getEJBLocalHome(); }
public TimerService getTimerService() throws IllegalStateException { AllowedMethodsInformation.checkAllowed(MethodType.GET_TIMER_SERVICE); return instance.getComponent().getTimerService(); }
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 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(); }
public Principal getCallerPrincipal() { AllowedMethodsInformation.checkAllowed(MethodType.GET_CALLER_PRINCIPLE); // per invocation return instance.getComponent().getCallerPrincipal(); }
public TimerService getTimerService() throws IllegalStateException { AllowedMethodsInformation.checkAllowed(MethodType.GET_TIMER_SERVICE); return instance.getComponent().getTimerService(); }
public boolean isCallerInRole(String roleName) { AllowedMethodsInformation.checkAllowed(MethodType.IS_CALLER_IN_ROLE); return instance.getComponent().isCallerInRole(roleName); }
public void setRollbackOnly() throws IllegalStateException { // to allow override per invocation final InterceptorContext context = CurrentInvocationContext.get(); if (context.getMethod() == null) { throw MESSAGES.lifecycleMethodNotAllowed("getRollbackOnly"); } instance.getComponent().setRollbackOnly(); } }
public boolean getRollbackOnly() throws IllegalStateException { // to allow override per invocation final InterceptorContext context = CurrentInvocationContext.get(); if (context.getMethod() == null) { throw MESSAGES.lifecycleMethodNotAllowed("getRollbackOnly"); } return instance.getComponent().getRollbackOnly(); }