Class WebComponentsContext
- java.lang.Object
-
- org.glassfish.apf.context.AnnotationContext
-
- com.sun.enterprise.deployment.annotation.context.WebComponentsContext
-
- All Implemented Interfaces:
ComponentContext
,AnnotatedElementHandler
public class WebComponentsContext extends AnnotationContext implements ComponentContext
This provides a context for a collection of web components with the same impl class name.- Author:
- Shing Wai Chan
-
-
Constructor Summary
Constructors Constructor Description WebComponentsContext(WebComponentContext[] webCompContexts)
Create a new instance of WebComponentContext.WebComponentsContext(WebComponentDescriptor[] webComps)
-
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()
WebComponentContext[]
getWebComponentContexts()
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
-
WebComponentsContext
public WebComponentsContext(WebComponentDescriptor[] webComps)
-
WebComponentsContext
public WebComponentsContext(WebComponentContext[] webCompContexts)
Create a new instance of WebComponentContext. Note that, for performance, we don't make a safe copy of array here.
-
-
Method Detail
-
getWebComponentContexts
public WebComponentContext[] getWebComponentContexts()
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
-
-