WebComponentsContextpublic class WebComponentsContext extends AnnotationContext implements ComponentContextThis provides a context for a collection of web components with the same
impl class name. |
Fields Summary |
---|
private WebComponentContext[] | webCompContexts | private String | componentClassName |
Constructors Summary |
---|
public WebComponentsContext(com.sun.enterprise.deployment.WebComponentDescriptor[] webComps)
webCompContexts = new WebComponentContext[webComps.length];
for (int i = 0; i < webComps.length ; i++) {
webCompContexts[i] = new WebComponentContext(webComps[i]);
}
if (webComps[0].isServlet()) {
componentClassName = webComps[0].getWebComponentImplementation();
}
| public WebComponentsContext(WebComponentContext[] webCompContexts)Create a new instance of WebComponentContext.
Note that, for performance, we don't make a safe copy of array here.
this.webCompContexts = webCompContexts;
this.componentClassName = webCompContexts[0].getComponentClassName();
|
|