/** * 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; }