/** * Get the processed annotations for a specific scope. * In case of a EnterpriseBean we only need the TYPE annotation, as the other annotations * depend on the presents of this 'top level' annotation. e.g. @Stateful, @Stateles, @MesageDriven * * @param scope the Scope * @returns a collection of processed annotations * */ @Override public Collection<Class<? extends Annotation>> getProcessedAnnotations(Scope scope) { if(scope == Scope.TYPE) return getAnnotationTypes(); else return Collections.EMPTY_SET; }
protected AbstractEnterpriseBeanProcessor(AnnotationFinder<AnnotatedElement> finder) { super(finder); // @TransactionAttribute addTypeProcessor(new TransactionAttributeClassProcessor<MD>(finder)); addMethodProcessor(new TransactionAttributeMethodProcessor<MD>(finder)); // @RunAs addTypeProcessor(new RunAsProcessor(finder)); // @DeclareRoles addTypeProcessor(new DeclareRolesProcessor(finder)); // @DenyAll addMethodProcessor(new DenyAllProcessor(finder)); // @RolesAllowed addTypeProcessor(new RolesAllowedProcessor<Class>(finder)); addMethodProcessor(new RolesAllowedProcessor<Method>(finder)); // @PermitAll addTypeProcessor(new PermitAllProcessor<Class>(finder)); addMethodProcessor(new PermitAllProcessor<Method>(finder)); // @Interceptors addTypeProcessor(new InterceptorsProcessor<Class>(finder)); addMethodProcessor(new InterceptorsProcessor<Method>(finder)); // @AspectDomain addTypeProcessor(new JBossAspectDomainProcessor(finder)); // @JndiBindingPolicy addTypeProcessor(new JBossJndiPolicyProcessor(finder)); // @Pool addTypeProcessor(new JBossPoolProcessor(finder)); }
processClass(beanMetaData, beanClass);