public class PlusDescriptorProcessor extends IterativeDescriptorProcessor
__signature, _visitors| Constructor and Description |
|---|
PlusDescriptorProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInjections(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node,
String jndiName,
Class<?> valueClass)
Iterate over the <injection-target> entries for a node
|
protected void |
bindEntry(WebAppContext context,
String name,
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.
|
void |
bindEnvEntry(String name,
Object value) |
void |
bindMessageDestinationRef(WebAppContext context,
String name,
Class<?> typeClass) |
void |
bindResourceEnvRef(WebAppContext context,
String name,
Class<?> typeClass) |
void |
bindResourceRef(WebAppContext context,
String name,
Class<?> typeClass)
Bind a resource reference.
|
void |
end(WebAppContext context,
Descriptor descriptor) |
void |
start(WebAppContext context,
Descriptor descriptor) |
void |
visitEnvEntry(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
JavaEE 5.4.1.3
|
void |
visitMessageDestinationRef(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
Common Annotations Spec section 2.3:
message-destination-ref is for:
- javax.jms.Queue
- javax.jms.Topic
|
void |
visitPostConstruct(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
If web.xml has at least 1 post-construct, then all post-constructs in fragments
are ignored.
|
void |
visitPreDestroy(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
pre-destroy is the name of a class and method to call just as
the instance is being destroyed
|
void |
visitResourceEnvRef(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
Common Annotations Spec section 2.3:
resource-env-ref is for:
- javax.transaction.UserTransaction
- javax.resource.cci.InteractionSpec
- anything else that is not a connection factory
|
void |
visitResourceRef(WebAppContext context,
Descriptor descriptor,
XmlParser.Node node)
Common Annotations Spec section 2.3:
resource-ref is for:
- javax.sql.DataSource
- javax.jms.ConnectionFactory
- javax.jms.QueueConnectionFactory
- javax.jms.TopicConnectionFactory
- javax.mail.Session
- java.net.URL
- javax.resource.cci.ConnectionFactory
- org.omg.CORBA_2_3.ORB
- any other connection factory defined by a resource adapter
TODO
If web.xml contains a resource-ref with injection targets, all resource-ref entries
of the same name are ignored in web fragments.
|
process, registerVisitor, visitpublic void start(WebAppContext context, Descriptor descriptor)
start in class IterativeDescriptorProcessorIterativeDescriptorProcessor.start(WebAppContext, org.eclipse.jetty.webapp.Descriptor)public void end(WebAppContext context, Descriptor descriptor)
end in class IterativeDescriptorProcessorpublic void visitEnvEntry(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node - Exceptionpublic void visitResourceRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node - Exceptionpublic void visitResourceEnvRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node - Exceptionpublic void visitMessageDestinationRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node - Exceptionpublic void visitPostConstruct(WebAppContext context, Descriptor descriptor, XmlParser.Node node)
node - public void visitPreDestroy(WebAppContext context, Descriptor descriptor, XmlParser.Node node)
node - public void addInjections(WebAppContext context, Descriptor descriptor, XmlParser.Node node, String jndiName, Class<?> valueClass)
descriptor - node - jndiName - valueClass - public void bindEnvEntry(String name, Object value) throws Exception
name - value - Exceptionpublic void bindResourceRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
name - Exceptionpublic void bindResourceEnvRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
name - Exceptionpublic void bindMessageDestinationRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
Exceptionprotected void bindEntry(WebAppContext context, String name, Class<?> typeClass) throws Exception
name - name of the resource from web.xmltypeClass - ExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.