FileDocCategorySizeDatePackage
ResourceContainerContext.javaAPI DocGlassfish v2 API7001Fri May 04 22:31:32 BST 2007com.sun.enterprise.deployment.annotation.context

ResourceContainerContext

public interface ResourceContainerContext implements ServiceReferenceContainerContext
This interface provides an abstraction for handle resource references.
Author
Shing Wai Chan

Fields Summary
Constructors Summary
Methods Summary
public voidaddEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)
Add a ejb reference.

param
the ejb reference

public voidaddEntityManagerFactoryReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor emfRefDesc)

public voidaddEntityManagerReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerReferenceDescriptor emRefDesc)

public voidaddEnvEntryDescriptor(com.sun.enterprise.deployment.EnvironmentProperty envEntry)
Add an env-entry

param
the env-entry

public voidaddJmsDestinationReferenceDescriptor(com.sun.enterprise.deployment.JmsDestinationReferenceDescriptor jmsDestRef)
Add a resource-env-ref

param
the jmsDestRef

public voidaddMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor msgDestRef)
Add a message-destination-ref

param
the msgDestRef

public voidaddPostConstructDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor postConstructDesc)

param
postConstructDesc

public voidaddPreDestroyDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor preDestroyDesc)

param
preDestroyDesc

public voidaddResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resReference)
Add a resource reference

param
the resource reference

public com.sun.enterprise.deployment.types.EjbReferencegetEjbReference(java.lang.String name)
Looks up an ejb reference with the given name. Return null if it is not found.

param
the name of the ejb-reference

public com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptorgetEntityManagerFactoryReference(java.lang.String name)
Looks up an entity manager factory reference with the given name. Return null if it is not found.

param
the name of the emf reference

public com.sun.enterprise.deployment.EntityManagerReferenceDescriptorgetEntityManagerReference(java.lang.String name)
Looks up an entity manager reference with the given name. Return null if it is not found.

param
the name of the emf reference

public com.sun.enterprise.deployment.EnvironmentPropertygetEnvEntry(java.lang.String name)
Looks up an env-entry with the given name. Return null if it is not found.

param
the name of the env-entry

public com.sun.enterprise.deployment.JmsDestinationReferenceDescriptorgetJmsDestinationReference(java.lang.String name)
Looks up a resource-env-ref with the given name. Return null if it is not found.

param
the name of the resource-env-ref

public com.sun.enterprise.deployment.MessageDestinationReferenceDescriptorgetMessageDestinationReference(java.lang.String name)
Looks up a message-destination-ref with the given name. Return null if it is not found.

param
the name of the message-destination-ref

public com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPostConstruct(java.lang.String className)
Look up an post-construct LifecycleCallbackDescriptor with the given name. Return null if it is not found

param
className

public com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPreDestroy(java.lang.String className)
Look up an pre-destroy LifecycleCallbackDescriptor with the given name. Return null if it is not found

param
className

public com.sun.enterprise.deployment.ResourceReferenceDescriptorgetResourceReference(java.lang.String name)
Looks up an resource reference with the given name. Return null if it is not found.

param
the name of the resource-reference