| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addInjections(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node node,the jndi name jndiName, Class<?> the value class valueClass)Iterate over the |
| protected void | bindEntry(WebAppContext
the context context, String name of the resource from web.xml name, Class<?> the type class typeClass)Bind a resource with the given name from web.xml of the given type with a jndi resource from either the server or the webapp's naming environment. |
| public void | |
| public void | |
| public void | |
| public void | bindResourceRef(WebAppContext
the context context, String the jndi name name, Class<?> the type class typeClass)Bind a resource reference. |
| public void | end(WebAppContext context, Descriptor descriptor)
Implements abstract org.
|
| public void | makeEnvEntryInjectionsAndBindings(WebAppContext
the WebAppContext of the env-entry context, Descriptor the web.xml, web-default.xml, web-override.xml or web-fragment.xml descriptor, XmlParser.the parsed xml representation of the env-entry declaration node,the name field of the env-entry name, String the type field of the env-entry type, String the value field of the env-entry value)Make injections and any java:comp/env bindings necessary given an env-entry declaration. |
| public void | start(WebAppContext context, Descriptor descriptor)
Implements abstract org.
|
| public void | visitEnvEntry(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodeJavaEE 5.4.1.3 |
| public void | visitMessageDestinationRef(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodeCommon Annotations Spec section 2.3: message-destination-ref is for:
|
| public void | visitPostConstruct(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodeIf web.xml has at least 1 post-construct, then all post-constructs in fragments are ignored. |
| public void | visitPreDestroy(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodepre-destroy is the name of a class and method to call just as the instance is being destroyed |
| public void | visitResourceEnvRef(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodeCommon Annotations Spec section 2.3: resource-env-ref is for:
|
| public void | visitResourceRef(WebAppContext
the context context, Descriptor the descriptor descriptor, XmlParser.the xml node nodeCommon Annotations Spec section 2.3: resource-ref is for:
|
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| PlusDescriptorProcessor | back to summary |
|---|---|
| public PlusDescriptorProcessor() | |
| addInjections | back to summary |
|---|---|
| public void addInjections(WebAppContext context, Descriptor descriptor, XmlParser. Iterate over the
| |
| bindEntry | back to summary |
|---|---|
| protected void bindEntry(WebAppContext context, String name, Class<?> typeClass) throws Exception Bind a resource with the given name from web.xml of the given type with a jndi resource from either the server or the webapp's naming environment. As the servlet spec does not cover the mapping of names in web.xml with names from the execution environment, jetty uses the concept of a Link, which is a subclass of the NamingEntry class. A Link defines a mapping of a name from web.xml with a name from the execution environment (ie either the server or the webapp's naming environment).
| |
| bindEnvEntry | back to summary |
|---|---|
| public void bindEnvEntry(String name, Object value) throws Exception | |
| bindMessageDestinationRef | back to summary |
|---|---|
| public void bindMessageDestinationRef(WebAppContext context, String name, Class<?> typeClass) throws Exception | |
| bindResourceEnvRef | back to summary |
|---|---|
| public void bindResourceEnvRef(WebAppContext context, String name, Class<?> typeClass) throws Exception | |
| bindResourceRef | back to summary |
|---|---|
| public void bindResourceRef(WebAppContext context, String name, Class<?> typeClass) throws Exception Bind a resource reference. If a resource reference with the same name is in a jetty-env.xml file, it will already have been bound.
| |
| end | back to summary |
|---|---|
| public void end(WebAppContext context, Descriptor descriptor) Implements abstract org.
| |
| makeEnvEntryInjectionsAndBindings | back to summary |
|---|---|
| public void makeEnvEntryInjectionsAndBindings(WebAppContext context, Descriptor descriptor, XmlParser. Make injections and any java:comp/env bindings necessary given an env-entry declaration.
The handling of env-entries is different to other resource declarations like resource-ref, resource-env-ref etc
because we allow the EnvEntry
| |
| start | back to summary |
|---|---|
| public void start(WebAppContext context, Descriptor descriptor) Implements abstract org.
| |
| visitEnvEntry | back to summary |
|---|---|
| public void visitEnvEntry(WebAppContext context, Descriptor descriptor, XmlParser. JavaEE 5.4.1.3
| |
| visitMessageDestinationRef | back to summary |
|---|---|
| public void visitMessageDestinationRef(WebAppContext context, Descriptor descriptor, XmlParser. Common Annotations Spec section 2.3: message-destination-ref is for:
| |
| visitPostConstruct | back to summary |
|---|---|
| public void visitPostConstruct(WebAppContext context, Descriptor descriptor, XmlParser. If web.xml has at least 1 post-construct, then all post-constructs in fragments are ignored. Otherwise, post-constructs from fragments are merged. post-construct is the name of a class and method to call after all resources have been setup but before the class is put into use
| |
| visitPreDestroy | back to summary |
|---|---|
| public void visitPreDestroy(WebAppContext context, Descriptor descriptor, XmlParser. pre-destroy is the name of a class and method to call just as the instance is being destroyed
| |
| visitResourceEnvRef | back to summary |
|---|---|
| public void visitResourceEnvRef(WebAppContext context, Descriptor descriptor, XmlParser. Common Annotations Spec section 2.3: resource-env-ref is for:
| |
| visitResourceRef | back to summary |
|---|---|
| public void visitResourceRef(WebAppContext context, Descriptor descriptor, XmlParser. Common Annotations Spec section 2.3: resource-ref is for:
Maintenance update 3.0a to spec:
Update Section 8.2.3.h.ii with the following - If a resource reference
element is specified in two fragments, while absent from the main web.xml,
and all the attributes and child elements of the resource reference element
are identical, the resource reference will be merged into the main web.xml.
It is considered an error if a resource reference element has the same name
specified in two fragments, while absent from the main web.xml and the attributes
and child elements are not identical in the two fragments. For example, if two
web fragments declare a
| |