com.sun.enterprise.deployment
Interface WritableJndiNameEnvironment

All Superinterfaces:
JndiNameEnvironment
All Known Implementing Classes:
Application, ApplicationClientDescriptor, DummyEjbDescriptor, EjbBundleDescriptor, EjbCMPEntityDescriptor, EjbDescriptor, EjbEntityDescriptor, EjbInterceptor, EjbMessageBeanDescriptor, EjbSessionDescriptor, IASEjbCMPEntityDescriptor, InterceptorDescriptor, JndiEnvironmentRefsGroupDescriptor, ManagedBeanDescriptor, WebBundleDescriptor, 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
 void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
          Adds the specified data-source-definition to the receiver.
 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 addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
          Adds the specified JMS destination reference 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 addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
          Adds the specified resource reference to the receiver.
 void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
          Adds the specified service reference to the receiver.
 void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
          Removes the specified data-source-definition from 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 removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
          Removes the specified JMS destination reference from the receiver.
 void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
          Removes the specified message destination 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
getDataSourceDefinitionDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getJmsDestinationReferenceByName, getJmsDestinationReferenceDescriptors, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, 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.

addJmsDestinationReferenceDescriptor

void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
Adds the specified JMS destination reference to the receiver.

Parameters:
the - JmsDestinationReferenceDescriptor to add.

removeJmsDestinationReferenceDescriptor

void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
Removes the specified JMS destination reference from the receiver.

Parameters:
the - JmsDestinationReferenceDescriptor to remove.

addMessageDestinationReferenceDescriptor

void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Adds the specified message destination reference to the receiver.

Parameters:
the - MessageDestinationReferenceDescriptor to add.

removeMessageDestinationReferenceDescriptor

void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Removes the specified message destination reference from the receiver.

Parameters:
ref - MessageDestinationReferenceDescriptor to remove.

addPostConstructDescriptor

void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Adds the specified post-construct descriptor to the receiver.

Parameters:
the - post-construct LifecycleCallbackDescriptor to add.

addPreDestroyDescriptor

void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Adds the specified pre-destroy descriptor to the receiver.

Parameters:
the - pre-destroy LifecycleCallbackDescriptor to add.

addServiceReferenceDescriptor

void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Adds the specified service reference to the receiver.

Parameters:
the - ServiceReferenceDescriptor to add.

removeServiceReferenceDescriptor

void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
Removes the specified service reference from the receiver.

Parameters:
the - ServiceReferenceDescriptor to remove.

addEntityManagerFactoryReferenceDescriptor

void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)

addEntityManagerReferenceDescriptor

void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)

addDataSourceDefinitionDescriptor

void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Adds the specified data-source-definition to the receiver.

Parameters:
reference - DataSourceDefinitionDescriptor to add.

removeDataSourceDefinitionDescriptor

void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Removes the specified data-source-definition from the receiver.

Parameters:
reference - DataSourceDefinitionDescriptor to remove.


Copyright © 2012 GlassFish Community. All Rights Reserved.