private void addClassAnnotation(EJBContainer container, Class<? extends Annotation> annotationClass, Annotation annotation) { log.debug("adding class annotation " + annotationClass.getName() + " to " + container + " " + annotation); container.getAnnotations() .addClassAnnotation(annotationClass, annotation); }
private static void addAnnotation(java.lang.annotation.Annotation annotation, EJBContainer container, Method method) { container.getAnnotations().addAnnotation(method, annotation.annotationType(), annotation); }
public <T extends Annotation> T getAnnotation(Class<T> annotationType) { if (this.getAnnotations().isDisabled(annotationType)) return null; return beanContainer.getAnnotation(annotationType); }
public <T extends Annotation> T getAnnotation(Class<T> annotationType, Method method) { if (this.getAnnotations().isDisabled(method, annotationType)) return null; return beanContainer.getAnnotation(annotationType, method); }
+ found); container.getAnnotations().addAnnotation(found, ann, getInterceptorImpl(ann));
private void addConcurrentAnnotations(EJBContainer container, JBossSessionBeanMetaData enterpriseBean) throws Exception { if (enterpriseBean.isConcurrent() != null) { if (enterpriseBean.isConcurrent()) { SerializedConcurrentAccessImpl annotation = new SerializedConcurrentAccessImpl(); addClassAnnotation(container, SerializedConcurrentAccess.class, annotation); } else { container.getAnnotations().disableAnnotation(SerializedConcurrentAccess.class.getName()); } } }
AnnotationRepository annotations = container.getAnnotations(); if (methodName.equals("*"))
{(Class<?>) businessInterfaces[0]}; remoteAnnotation = new RemoteImpl(rtn); ((EJBContainer) container).getAnnotations().addClassAnnotation(javax.ejb.Remote.class, remoteAnnotation); return rtn; .toArray(new Class[remoteAndRemoteBusinessInterfaces.size()]); remoteAnnotation = new RemoteImpl(remotesArray); ((EJBContainer) container).getAnnotations().addClassAnnotation(Remote.class, remoteAnnotation); return remoteAnnotation.value();
{singleInterface}; Local li = new LocalImpl(returnValue); ((EJBContainer) container).getAnnotations().addClassAnnotation(Local.class, li); return returnValue; {}); Local li = new LocalImpl(returnValue); ((EJBContainer) container).getAnnotations().addClassAnnotation(Local.class, li); return returnValue; {}); localAnnotation = new LocalImpl(rtn); ((EJBContainer) container).getAnnotations().addClassAnnotation(Local.class, localAnnotation); return rtn;
AnnotationRepository annotations = container.getAnnotations();