Methods Summary |
---|
public void | addEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)Add a reference to an ejb.
getEjbReferenceContainer().addEjbReferenceDescriptor(ejbReference);
|
public void | addEntityManagerFactoryReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor emfRefDesc)
getEmfRefContainer().addEntityManagerFactoryReferenceDescriptor
(emfRefDesc);
|
public void | addEntityManagerReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerReferenceDescriptor emRefDesc)
getEmRefContainer().addEntityManagerReferenceDescriptor
(emRefDesc);
|
public void | addEnvEntryDescriptor(com.sun.enterprise.deployment.EnvironmentProperty envEntry)
getEnvEntryContainer().addEnvironmentProperty(envEntry);
|
public void | addJmsDestinationReferenceDescriptor(com.sun.enterprise.deployment.JmsDestinationReferenceDescriptor jmsDestReference)
getJmsDestinationReferenceContainer(
).addJmsDestinationReferenceDescriptor(jmsDestReference);
|
public void | addMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor msgDestReference)
getMessageDestinationReferenceContainer(
).addMessageDestinationReferenceDescriptor(msgDestReference);
|
public void | addPostConstructDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor postConstructDesc)
getPostConstructContainer().addPostConstructDescriptor(postConstructDesc);
|
public void | addPreDestroyDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor preDestroyDesc)
getPreDestroyContainer().addPreDestroyDescriptor(preDestroyDesc);
|
public void | addResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resReference)
getResourceReferenceContainer().addResourceReferenceDescriptor
(resReference);
|
public java.lang.String | getComponentClassName()
return componentClassName;
|
public com.sun.enterprise.deployment.types.EjbReference | getEjbReference(java.lang.String name)Looks up an ejb reference with the given name.
Return null if it is not found.
EjbReference ejbRef = null;
try {
ejbRef = getEjbReferenceContainer().getEjbReference(name);
// annotation has a corresponding ejb-local-ref/ejb-ref
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return ejbRef;
|
protected com.sun.enterprise.deployment.types.EjbReferenceContainer | getEjbReferenceContainer()
return (EjbReferenceContainer)descriptor;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getEmRefContainer()
return (WritableJndiNameEnvironment)descriptor;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getEmfRefContainer()
return (WritableJndiNameEnvironment)descriptor;
|
public com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor | getEntityManagerFactoryReference(java.lang.String name)
EntityManagerFactoryReferenceDescriptor emfRefDesc = null;
try {
emfRefDesc = getEmfRefContainer().
getEntityManagerFactoryReferenceByName(name);
// annotation has a corresponding entry
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return emfRefDesc;
|
public com.sun.enterprise.deployment.EntityManagerReferenceDescriptor | getEntityManagerReference(java.lang.String name)
EntityManagerReferenceDescriptor emRefDesc = null;
try {
emRefDesc = getEmRefContainer().
getEntityManagerReferenceByName(name);
// annotation has a corresponding entry
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return emRefDesc;
|
public com.sun.enterprise.deployment.EnvironmentProperty | getEnvEntry(java.lang.String name)
EnvironmentProperty envEntry = null;
try {
envEntry = getEnvEntryContainer().
getEnvironmentPropertyByName(name);
// annotation has a corresponding env-entry
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return envEntry;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getEnvEntryContainer()
return (WritableJndiNameEnvironment)descriptor;
|
public com.sun.enterprise.deployment.types.HandlerChainContainer[] | getHandlerChainContainers(boolean serviceSideHandlerChain, java.lang.Class declaringClass)
// by default return null; appropriate contextx should override this
return null;
|
public com.sun.enterprise.deployment.JmsDestinationReferenceDescriptor | getJmsDestinationReference(java.lang.String name)
JmsDestinationReferenceDescriptor jmsDestRef = null;
try {
jmsDestRef = getJmsDestinationReferenceContainer().
getJmsDestinationReferenceByName(name);
// annotation has a corresponding resource-env-ref
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return jmsDestRef;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getJmsDestinationReferenceContainer()
return (WritableJndiNameEnvironment)descriptor;
|
public com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor | getMessageDestinationReference(java.lang.String name)
MessageDestinationReferenceDescriptor msgDestRef = null;
try {
msgDestRef = getMessageDestinationReferenceContainer().
getMessageDestinationReferenceByName(name);
// annotation has a corresponding message-destination-ref
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return msgDestRef;
|
protected com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer | getMessageDestinationReferenceContainer()
return (MessageDestinationReferenceContainer)descriptor;
|
public com.sun.enterprise.deployment.LifecycleCallbackDescriptor | getPostConstruct(java.lang.String className)Look up an post-construct LifecycleCallbackDescriptor with the
given name. Return null if it is not found
LifecycleCallbackDescriptor postConstructDesc =
getPostConstructContainer().getPostConstructDescriptorByClass(className);
return postConstructDesc;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getPostConstructContainer()
return (WritableJndiNameEnvironment)descriptor;
|
public com.sun.enterprise.deployment.LifecycleCallbackDescriptor | getPreDestroy(java.lang.String className)Look up an pre-destroy LifecycleCallbackDescriptor with the
given name. Return null if it is not found
LifecycleCallbackDescriptor preDestroyDesc =
getPreDestroyContainer().getPreDestroyDescriptorByClass(className);
return preDestroyDesc;
|
protected com.sun.enterprise.deployment.WritableJndiNameEnvironment | getPreDestroyContainer()
return (WritableJndiNameEnvironment)descriptor;
|
public com.sun.enterprise.deployment.ResourceReferenceDescriptor | getResourceReference(java.lang.String name)Looks up an resource reference with the given name.
Return null if it is not found.
ResourceReferenceDescriptor resourceRef = null;
try {
resourceRef = getResourceReferenceContainer().
getResourceReferenceByName(name);
// annotation has a corresponding resource-ref
// in xml. Just add annotation info and continue.
// This logic might change depending on overriding rules
// and order in which annotations are read w.r.t. to xml.
// E.g. sparse overriding in xml or loading annotations
// first.
} catch(IllegalArgumentException e) {
// DOL API is (unfortunately) defined to return
// IllegalStateException if name doesn't exist.
}
return resourceRef;
|
protected com.sun.enterprise.deployment.types.ResourceReferenceContainer | getResourceReferenceContainer()
return (ResourceReferenceContainer)descriptor;
|
public com.sun.enterprise.deployment.types.ServiceReferenceContainer[] | getServiceRefContainers()
// by default we return our descriptor;
ServiceReferenceContainer[] containers = new ServiceReferenceContainer[1];
containers[0] = (ServiceReferenceContainer) descriptor;
return containers;
|