@Deprecated protected MethodInfo getMethodInfo(Method method) { long hash = MethodHashing.calculateHash(method); MethodInfo info = getAdvisor().getMethodInfo(hash); if (info == null) { throw new RuntimeException("Could not resolve beanClass method from proxy call: " + method.toString()); } return info; }
/** * * @param joinPoint * @param interceptorStackName * @return */ protected Interceptor[] getInterceptors(Joinpoint joinPoint, String interceptorStackName) { AdviceStack stack = this.getAdvisor().getManager().getAdviceStack(interceptorStackName); if (stack == null) { log.debug("No AOP interceptor stack with name : " + interceptorStackName + " available for EJB container: " + this); return new Interceptor[0]; } List<Interceptor> interceptors = new ArrayList<Interceptor>(); interceptors.addAll(Arrays.asList(stack.createInterceptors(this.getAdvisor(), joinPoint))); return interceptors.toArray(new Interceptor[]{}); }
public UserTransactionPropertyInjector(BeanProperty property, InjectionContainer container) { super(property); if (container instanceof EJBContainer) { TransactionManagementType type = TxUtil.getTransactionManagementType(((EJBContainer) container).getAdvisor()); if (type != TransactionManagementType.BEAN) throw new IllegalStateException("Container " + ((Container) container).getEjbName() + ": it is illegal to inject UserTransaction into a CMT bean"); } }
Advisor advisor = getAdvisor(); InjectionInvocation invocation = new InjectionInvocation(beanContext, injectors, injectionCallbackStack, this.injectionManager); invocation.setAdvisor(advisor);
Advisor advisor = getAdvisor(); AdviceStack stack = advisor.getManager().getAdviceStack("InjectionCallbackStack"); if(stack == null)
public void initialize(EJBContainer container) throws Exception Advisor advisor = container.getAdvisor(); cacheMap = new CacheMap(); PersistenceManager pmConfig = (PersistenceManager) advisor.resolveAnnotation(PersistenceManager.class);