private Object doMethodInterception(InvocationContext invocationContext, InterceptionType interceptionType, InterceptorInstances interceptorInstances, InterceptorBindings interceptorBindings) throws Exception { if (interceptorBindings != null) { List<Interceptor<?>> currentInterceptors = interceptorBindings.getMethodInterceptors(interceptionType, invocationContext.getMethod()); return delegateInterception(invocationContext, interceptionType, currentInterceptors, interceptorInstances); } else { return invocationContext.proceed(); } }
private Object doLifecycleInterception(final InterceptorContext context, InterceptorInstances interceptorInstances, final InterceptorBindings interceptorBindings) throws Exception { if (interceptorBindings == null) { return context.proceed(); } else { List<Interceptor<?>> currentInterceptors = interceptorBindings.getLifecycleInterceptors(interceptionType); return delegateInterception(context.getInvocationContext(), interceptionType, currentInterceptors, interceptorInstances); } } }
for (Interceptor<?> interceptor : interceptorBindings.getAllInterceptors()) { addInterceptorInstance((Interceptor<Object>) interceptor, beanManager, interceptorInstances, creationalContext);
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
public Class<? extends T> getImplementationClass() { if (delegate instanceof SubclassedComponentDescriptor) { SubclassedComponentDescriptor<T> descriptor = Reflections.<SubclassedComponentDescriptor<T>>cast(delegate); Class<? extends T> implementationClass = descriptor.getComponentSubclass(); if (implementationClass != null) { return implementationClass; } } return delegate.getBeanClass(); } }
public EjbDescriptor getEjbDescriptor(String ejbName) { EjbDescriptor match = null; for (EjbDescriptor next : ejbDescImpls) { if (next.getEjbName().equals(ejbName)) { match = next; break; } } return match; }
@Override public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces() { return delegate().getLocalBusinessInterfaces(); }
@Override public boolean isStateless() { return delegate().isStateless(); }
@Override public boolean isMessageDriven() { return delegate().isMessageDriven(); }
@Override public Class<?> apply(BusinessInterfaceDescriptor<?> input) { return input.getInterface(); } }
@Override public boolean isPassivationCapable() { return delegate().isPassivationCapable(); }
@Override public Collection<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces() { return delegate().getRemoteBusinessInterfaces(); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
public Class<? extends T> getImplementationClass() { if (delegate instanceof SubclassedComponentDescriptor) { SubclassedComponentDescriptor<T> descriptor = Reflections.<SubclassedComponentDescriptor<T>>cast(delegate); Class<? extends T> implementationClass = descriptor.getComponentSubclass(); if (implementationClass != null) { return implementationClass; } } return delegate.getBeanClass(); } }
@Override public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces() { return delegate().getLocalBusinessInterfaces(); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }
static SessionBeanType getSessionBeanType(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateless()) { return SessionBeanType.STATELESS; } else if (ejbDescriptor.isStateful()) { return SessionBeanType.STATEFUL; } else if (ejbDescriptor.isSingleton()) { return SessionBeanType.SINGLETON; } throw new IllegalStateException("Not a session bean"); }