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

ResourcesHandler

public class ResourcesHandler extends ResourceHandler
This handler is responsible for handling javax.annotation.Resources

Fields Summary
Constructors Summary
public ResourcesHandler()

    
Methods Summary
public java.lang.ClassgetAnnotationType()

return
the annoation type this annotation handler is handling

        return Resources.class;
    
protected com.sun.enterprise.deployment.annotation.HandlerProcessingResultprocessAnnotation(com.sun.enterprise.deployment.annotation.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.ResourceContainerContext[] rcContexts)
This entry point is used both for a single @EJB and iteratively from a compound @EJBs processor.


        Resources resourcesAn = (Resources)ainfo.getAnnotation();
        
        Resource[] resourceAns = resourcesAn.value();
        List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>();
        
        for(Resource res : resourceAns) {
            results.add(processResource(ainfo, rcContexts, res));
        }

        return getOverallProcessingResult(results);