FileDocCategorySizeDatePackage
EJBsHandler.javaAPI DocGlassfish v2 API3562Fri May 04 22:31:34 BST 2007com.sun.enterprise.deployment.annotation.handlers

EJBsHandler

public class EJBsHandler extends EJBHandler
This handler is responsible for handling the javax.ejb.EJBs attribute

Fields Summary
Constructors Summary
public EJBsHandler()

    
Methods Summary
public java.lang.ClassgetAnnotationType()

return
the annoation type this annotation handler is handling

        return EJBs.class;
    
protected com.sun.enterprise.deployment.annotation.HandlerProcessingResultprocessAnnotation(com.sun.enterprise.deployment.annotation.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.ResourceContainerContext[] rcContexts)


        EJBs ejbsAnnotation = (EJBs) ainfo.getAnnotation();
        
        EJB[] ejbAnnotations = ejbsAnnotation.value();
        List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>();

        for(EJB ejb : ejbAnnotations) {
            results.add(processEJB(ainfo, rcContexts, ejb));
        }

        return getOverallProcessingResult(results);