EjbsContextpublic class EjbsContext extends AnnotationContext implements ComponentContextThis provides a context for a collection of Ejbs with the ejb class name. |
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();
|
|