FileDocCategorySizeDatePackage
EjbsContext.javaAPI DocGlassfish v2 API3650Fri May 04 22:31:32 BST 2007com.sun.enterprise.deployment.annotation.context

EjbsContext

public class EjbsContext extends AnnotationContext implements ComponentContext
This provides a context for a collection of Ejbs with the ejb class name.
Author
Shing Wai Chan

Fields Summary
private EjbContext[]
ejbContexts
private String
componentClassName
Constructors Summary
public EjbsContext(com.sun.enterprise.deployment.EjbDescriptor[] ejbDescs, Class ejbClass)

        ejbContexts = new EjbContext[ejbDescs.length];
        for (int i = 0; i < ejbDescs.length ; i++) {
            ejbContexts[i] = new EjbContext(ejbDescs[i], ejbClass);
        }
        this.componentClassName = ejbClass.getName();
    
public EjbsContext(EjbContext[] ejbContexts)
Create a new instance of EjbContext. Note that, for performance, we don't make a safe copy of array here.

        this.ejbContexts = ejbContexts;
        this.componentClassName = ejbContexts[0].getComponentClassName();
    
Methods Summary
public voidendElement(java.lang.annotation.ElementType type, java.lang.reflect.AnnotatedElement element)

        
        if (ElementType.TYPE.equals(type)) {
            // done with processing this class, let's pop this context
            getProcessingContext().popHandler();
        }
    
public java.lang.StringgetComponentClassName()

        return componentClassName;
    
public EjbContext[]getEjbContexts()
Note that, for performance, we don't make a safe copy of array here.

        return ejbContexts;