Class EjbsContext
- java.lang.Object
-
- org.glassfish.apf.context.AnnotationContext
-
- com.sun.enterprise.deployment.annotation.context.EjbsContext
-
- All Implemented Interfaces:
ComponentContext
,AnnotatedElementHandler
public class EjbsContext extends AnnotationContext implements ComponentContext
This provides a context for a collection of Ejbs with the ejb class name.
-
-
Constructor Summary
Constructors Constructor Description EjbsContext(EjbContext[] ejbContexts)
Create a new instance of EjbContext.EjbsContext(EjbDescriptor[] ejbDescs, Class ejbClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(ElementType type, AnnotatedElement element)
After annotations for an annotated element are processed, the endElement is called with the annotated element value and its typeString
getComponentClassName()
EjbContext[]
getEjbContexts()
Note that, for performance, we don't make a safe copy of array here.-
Methods inherited from class org.glassfish.apf.context.AnnotationContext
getProcessingContext, setProcessingContext, startElement
-
-
-
-
Constructor Detail
-
EjbsContext
public EjbsContext(EjbDescriptor[] ejbDescs, Class ejbClass)
-
EjbsContext
public EjbsContext(EjbContext[] ejbContexts)
Create a new instance of EjbContext. Note that, for performance, we don't make a safe copy of array here.
-
-
Method Detail
-
getEjbContexts
public EjbContext[] getEjbContexts()
Note that, for performance, we don't make a safe copy of array here.
-
endElement
public void endElement(ElementType type, AnnotatedElement element)
Description copied from interface:AnnotatedElementHandler
After annotations for an annotated element are processed, the endElement is called with the annotated element value and its type- Specified by:
endElement
in interfaceAnnotatedElementHandler
- Overrides:
endElement
in classAnnotationContext
- Parameters:
type
- the annotated element type (class, field, method...)element
- the annotated element we are done visiting.
-
getComponentClassName
public String getComponentClassName()
- Specified by:
getComponentClassName
in interfaceComponentContext
- Returns:
- the component java class name
-
-