|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.webapp.IterativeDescriptorProcessor org.eclipse.jetty.plus.webapp.PlusDescriptorProcessor
public class PlusDescriptorProcessor
PlusDescriptorProcessor
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.webapp.IterativeDescriptorProcessor |
---|
__signature, _visitors |
Constructor Summary | |
---|---|
PlusDescriptorProcessor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jetty.webapp.IterativeDescriptorProcessor |
---|
process, registerVisitor, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlusDescriptorProcessor()
Method Detail |
---|
public void start(WebAppContext context, Descriptor descriptor)
start
in class IterativeDescriptorProcessor
IterativeDescriptorProcessor.start(WebAppContext, org.eclipse.jetty.webapp.Descriptor)
public void end(WebAppContext context, Descriptor descriptor)
end
in class IterativeDescriptorProcessor
public void visitEnvEntry(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitResourceRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitResourceEnvRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitMessageDestinationRef(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public 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
-
Exception
public void bindResourceRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
name
-
Exception
public void bindResourceEnvRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
name
-
Exception
public void bindMessageDestinationRef(WebAppContext context, String name, Class<?> typeClass) throws Exception
Exception
protected void bindEntry(WebAppContext context, String name, Class<?> typeClass) throws Exception
name
- name of the resource from web.xmltypeClass
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |