|
||||||||||
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 | |
---|---|
protected WebAppContext |
_context
|
protected MetaData |
_metaData
|
Fields inherited from class org.eclipse.jetty.webapp.IterativeDescriptorProcessor |
---|
__signature, _visitors |
Constructor Summary | |
---|---|
PlusDescriptorProcessor()
|
Method Summary | |
---|---|
void |
addInjections(Descriptor descriptor,
XmlParser.Node node,
String jndiName,
Class valueClass)
Iterate over the <injection-target> entries for a node |
protected void |
bindEntry(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(String name,
Class typeClass)
|
void |
bindResourceEnvRef(String name,
Class typeClass)
|
void |
bindResourceRef(String name,
Class typeClass)
Bind a resource reference. |
void |
end(Descriptor descriptor)
|
void |
start(Descriptor descriptor)
|
void |
visitEnvEntry(Descriptor descriptor,
XmlParser.Node node)
JavaEE 5.4.1.3 |
void |
visitMessageDestinationRef(Descriptor descriptor,
XmlParser.Node node)
Common Annotations Spec section 2.3: message-destination-ref is for: - javax.jms.Queue - javax.jms.Topic |
void |
visitPostConstruct(Descriptor descriptor,
XmlParser.Node node)
TODO If web.xml has at least 1 post-construct, then all post-constructs in fragments are ignored. |
void |
visitPreDestroy(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(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(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 |
Field Detail |
---|
protected WebAppContext _context
protected MetaData _metaData
Constructor Detail |
---|
public PlusDescriptorProcessor()
Method Detail |
---|
public void start(Descriptor descriptor)
start
in class IterativeDescriptorProcessor
IterativeDescriptorProcessor.start(org.eclipse.jetty.webapp.Descriptor)
public void end(Descriptor descriptor)
end
in class IterativeDescriptorProcessor
IterativeDescriptorProcessor.end(org.eclipse.jetty.webapp.Descriptor)
public void visitEnvEntry(Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitResourceRef(Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitResourceEnvRef(Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitMessageDestinationRef(Descriptor descriptor, XmlParser.Node node) throws Exception
node
-
Exception
public void visitPostConstruct(Descriptor descriptor, XmlParser.Node node)
node
- public void visitPreDestroy(Descriptor descriptor, XmlParser.Node node)
node
- public void addInjections(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
org.eclipse.jetty.plus.webapp.AbstractConfiguration#bindEnvEntry(java.lang.String, java.lang.String)
public void bindResourceRef(String name, Class typeClass) throws Exception
name
-
Exception
org.eclipse.jetty.plus.webapp.AbstractConfiguration#bindResourceRef(java.lang.String)
public void bindResourceEnvRef(String name, Class typeClass) throws Exception
name
-
Exception
org.eclipse.jetty.plus.webapp.AbstractConfiguration#bindResourceEnvRef(java.lang.String)
public void bindMessageDestinationRef(String name, Class typeClass) throws Exception
Exception
protected void bindEntry(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 |