com.sun.enterprise.deployment.annotation.context
Class WebComponentsContext

java.lang.Object
  extended by org.glassfish.apf.context.AnnotationContext
      extended by 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
WebComponentsContext(WebComponentContext[] webCompContexts)
          Create a new instance of WebComponentContext.
WebComponentsContext(WebComponentDescriptor[] webComps)
           
 
Method Summary
 void endElement(java.lang.annotation.ElementType type, java.lang.reflect.AnnotatedElement element)
           
 java.lang.String 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(java.lang.annotation.ElementType type,
                       java.lang.reflect.AnnotatedElement element)
Specified by:
endElement in interface AnnotatedElementHandler
Overrides:
endElement in class AnnotationContext

getComponentClassName

public java.lang.String getComponentClassName()
Specified by:
getComponentClassName in interface ComponentContext
Returns:
the component java class name


Copyright © 2012 GlassFish Community. All Rights Reserved.