Package com.sun.enterprise.deployment
Interface WritableJndiNameEnvironment
-
- All Superinterfaces:
JndiNameEnvironment
- All Known Subinterfaces:
EjbDescriptor
,EjbMessageBeanDescriptor
,EjbSessionDescriptor
- All Known Implementing Classes:
Application
,ApplicationClientDescriptor
,DummyEjbDescriptor
,EjbBundleDescriptor
,EjbBundleDescriptorImpl
,EjbCMPEntityDescriptor
,EjbDescriptor
,EjbEntityDescriptor
,EjbInterceptor
,EjbMessageBeanDescriptor
,EjbSessionDescriptor
,IASEjbCMPEntityDescriptor
,InterceptorDescriptor
,JndiEnvironmentRefsGroupDescriptor
,ManagedBeanDescriptor
,WebBundleDescriptor
,WebBundleDescriptorImpl
,WebFragmentDescriptor
public interface WritableJndiNameEnvironment extends JndiNameEnvironment
Objects implementing this interface allow their environment properties, ejb references and resource references to be written.- Author:
- Danny Coward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEjbReferenceDescriptor(EjbReference ejbReference)
Adds the specified ejb reference to the receiver.void
addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
void
addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
void
addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds the specified environment property to the receiver.void
addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Adds the specified message destination reference to the receiver.void
addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Adds the specified post-construct descriptor to the receiver.void
addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Adds the specified pre-destroy descriptor to the receiver.void
addResourceDescriptor(ResourceDescriptor reference)
Adds the specified descriptor to the receiver.void
addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Adds the specified resource environment reference to the receiver.void
addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds the specified resource reference to the receiver.void
addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Adds the specified service reference to the receiver.void
removeEjbReferenceDescriptor(EjbReference ejbReference)
Removes the specificed ejb reference from the receiver.void
removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the specified environment property from receiver.void
removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Removes the specified message destination reference from the receiver.void
removeResourceDescriptor(ResourceDescriptor reference)
Removes the specified descriptor from the receiver.void
removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Removes the specified resource environment reference from the receiver.void
removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the specified resource reference from the receiver.void
removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Removes the specified service reference from the receiver.-
Methods inherited from interface com.sun.enterprise.deployment.JndiNameEnvironment
getAllResourcesDescriptors, getAllResourcesDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors
-
-
-
-
Method Detail
-
addEnvironmentProperty
void addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds the specified environment property to the receiver.- Parameters:
environmentProperty
- the EnvironmentProperty to add.
-
removeEnvironmentProperty
void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the specified environment property from receiver.- Parameters:
environmentProperty
- the EnvironmentProperty to remove.
-
addEjbReferenceDescriptor
void addEjbReferenceDescriptor(EjbReference ejbReference)
Adds the specified ejb reference to the receiver.- Parameters:
ejbReference
- the EjbReferenceDescriptor to add.
-
removeEjbReferenceDescriptor
void removeEjbReferenceDescriptor(EjbReference ejbReference)
Removes the specificed ejb reference from the receiver.- Parameters:
ejbReference
- the EjbReferenceDescriptor to remove.
-
addResourceReferenceDescriptor
void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds the specified resource reference to the receiver.- Parameters:
resourceReference
- the ResourceReferenceDescriptor to add.
-
removeResourceReferenceDescriptor
void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the specified resource reference from the receiver.- Parameters:
resourceReference
- the ResourceReferenceDescriptor to remove.
-
addResourceEnvReferenceDescriptor
void addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Adds the specified resource environment reference to the receiver.- Parameters:
resourceEnvReference
- the ResourceEnvReferenceDescriptor to add.
-
removeResourceEnvReferenceDescriptor
void removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Removes the specified resource environment reference from the receiver.- Parameters:
resourceEnvReference
- the ResourceEnvReferenceDescriptor to remove.
-
addMessageDestinationReferenceDescriptor
void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Adds the specified message destination reference to the receiver.- Parameters:
msgDestRef
- the MessageDestinationReferenceDescriptor to add.
-
removeMessageDestinationReferenceDescriptor
void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Removes the specified message destination reference from the receiver.- Parameters:
msgDestRef
- MessageDestinationReferenceDescriptor to remove.
-
addPostConstructDescriptor
void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Adds the specified post-construct descriptor to the receiver.- Parameters:
postConstructDesc
- the post-construct LifecycleCallbackDescriptor to add.
-
addPreDestroyDescriptor
void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Adds the specified pre-destroy descriptor to the receiver.- Parameters:
preDestroyDesc
- the pre-destroy LifecycleCallbackDescriptor to add.
-
addServiceReferenceDescriptor
void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Adds the specified service reference to the receiver.- Parameters:
serviceReference
- the ServiceReferenceDescriptor to add.
-
removeServiceReferenceDescriptor
void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Removes the specified service reference from the receiver.- Parameters:
serviceReference
- the ServiceReferenceDescriptor to remove.
-
addEntityManagerFactoryReferenceDescriptor
void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
-
addEntityManagerReferenceDescriptor
void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
-
addResourceDescriptor
void addResourceDescriptor(ResourceDescriptor reference)
Adds the specified descriptor to the receiver.- Parameters:
reference
- Descriptor to add.
-
removeResourceDescriptor
void removeResourceDescriptor(ResourceDescriptor reference)
Removes the specified descriptor from the receiver.- Parameters:
reference
- Descriptor to remove.
-
-