com.sun.enterprise.deployment
Class ApplicationClientDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.RootDeploymentDescriptor
                  extended by com.sun.enterprise.deployment.BundleDescriptor
                      extended by com.sun.enterprise.deployment.ApplicationClientDescriptor
All Implemented Interfaces:
JndiNameEnvironment, Roles, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, WritableJndiNameEnvironment, java.io.Serializable

public class ApplicationClientDescriptor
extends BundleDescriptor
implements WritableJndiNameEnvironment, ResourceReferenceContainer, EjbReferenceContainer, ResourceEnvReferenceContainer, ServiceReferenceContainer, MessageDestinationReferenceContainer

I represent all the deployment information about an application client [{0}].

Author:
Danny Coward
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor
classLoader, extensions, moduleDescriptor, moduleID
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
ApplicationClientDescriptor()
           
 
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 addEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)
          Add a reference to an ejb.
 void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
           
 void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
           
 void addEnvironmentProperty(EnvironmentProperty environmentProperty)
          Adds an environment property to this application client [{0}].
 void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
          Adds the specified JMS destination reference to the receiver.
 void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
          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 a reference to a resource.
 void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
          Adds the specified service reference to the receiver.
 java.util.Collection<? extends PersistenceUnitDescriptor> findReferencedPUs()
          This method is used to find out the precise list of PUs that are referenced by the appclient.
 java.lang.String getCallbackHandler()
          Get the classname of the callback handler.
 java.util.Set<java.lang.String> getComponentClassNames()
           
 java.util.Set<DataSourceDefinitionDescriptor> getDataSourceDefinitionDescriptors()
          Return a set of data-source-definition descriptors.
 java.lang.String getDefaultSpecVersion()
           
 EjbReference getEjbReference(java.lang.String name)
          Looks up an ejb reference with the given name.
 EjbReferenceDescriptor getEjbReferenceByName(java.lang.String name)
          Looks up an ejb reference with the given name.
 java.util.Set getEjbReferenceDescriptors()
          Return the set of references to ejbs that I have.
 EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(java.lang.String name)
          Return the entity manager factory reference descriptor corresponding to the given name.
 java.util.Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
          Return a set of entity manager factory reference descriptors.
 EntityManagerReferenceDescriptor getEntityManagerReferenceByName(java.lang.String name)
          Return the entity manager factory reference descriptor corresponding to the given name.
 java.util.Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
          Return a set of entity manager reference descriptors.
 java.util.Set getEnvironmentProperties()
          Returns the set of environment properties of this app client.
 EnvironmentProperty getEnvironmentPropertyByName(java.lang.String name)
          Returns the environment property object searching on the supplied key.
 java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className)
           
 InjectionInfo getInjectionInfoByClass(java.lang.Class clazz)
           
 JavaWebStartAccessDescriptor getJavaWebStartAccessDescriptor()
           
 JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(java.lang.String name)
          Return a JMS destination reference by the same name or throw an IllegalArgumentException.
 java.util.Set getJmsDestinationReferenceDescriptors()
          Return the set of JMS destination references this ejb declares.
 java.lang.String getMainClassName()
          Return the fq Java clasname of this application client [{0}].
 MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(java.lang.String name)
          Looks up an message destination reference with the given name.
 java.util.Set getMessageDestinationReferenceDescriptors()
          Return a set of message destination reference descriptors.
 XModuleType getModuleType()
           
 java.util.Collection getNamedDescriptors()
          Return the set of named descriptors I reference.
 java.util.Vector<NamedReferencePair> getNamedReferencePairs()
          Return the set of named reference pairs I reference.
 LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className)
          Return the post-construct descriptor corresponding to the given name.
 java.util.Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
          Return a set of post-construct descriptors.
 LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className)
          Return the pre-destroy descriptor corresponding to the given name.
 java.util.Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
          Return a set of pre-destroy descriptors.
 ResourceReferenceDescriptor getResourceReferenceByName(java.lang.String name)
          Looks up a reference to a resource by its name (getName()).
 java.util.Set getResourceReferenceDescriptors()
          Return the set of references to resources that I have.
 ServiceReferenceDescriptor getServiceReferenceByName(java.lang.String name)
          Looks up an service reference with the given name.
 java.util.Set getServiceReferenceDescriptors()
          Return a set of service reference descriptors.
 boolean hasRuntimeInformation()
          Return true if there is runtime information in this object that must be saved.
 boolean hasWebServiceClients()
           
 boolean hasWebServices()
           
 boolean isEmpty()
          Return true if this root deployment descriptor does not describe anything
 void print(java.lang.StringBuffer toStringBuffer)
          Prints a formatted string representing my state.
 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 removeEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)
          Removes the given reference to an ejb.
 void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
          Remove the given environment property
 void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
          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 given resource reference from this app client.
 void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
          Removes the specified service reference from the receiver.
 void setCallbackHandler(java.lang.String handler)
          Set the classname of the callback handler.
 void setJavaWebStartAccessDescriptor(JavaWebStartAccessDescriptor descr)
           
 void setMainClassName(java.lang.String mainClassName)
          Sets the main classname of this app client.
 void visit(AppClientVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 void visit(DescriptorVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 
Methods inherited from class com.sun.enterprise.deployment.BundleDescriptor
addEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRole, findDefaultPU, findReferencedPU, findReferencedPUsViaPCRefs, findReferencedPUsViaPURefs, findReferencedPUViaEMFRef, findReferencedPUViaEMRef, getApplication, getClassLoader, getCompatibility, getDeploymentDescriptorDir, getEntityManagerFactories, getEntityManagerFactory, getInjectableResources, getInjectableResourcesByClass, getInjectionInfoByClass, getKeepState, getManagedBeanByBeanClass, getManagedBeans, getMessageDestinationByName, getMessageDestinations, getModuleID, getModuleName, getNamedDescriptorsFrom, getNamedReferencePairsFrom, getPostConstructDescriptorByClass, getPreDestroyDescriptorByClass, getRoles, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, isApplication, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, removeRole, setApplication, setCompatibility, setKeepState, setPolicyModified
 
Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isExtensionDescriptor, isFullAttribute, isFullFlag, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationClientDescriptor

public ApplicationClientDescriptor()
Method Detail

hasRuntimeInformation

public boolean hasRuntimeInformation()
Return true if there is runtime information in this object that must be saved.


getDefaultSpecVersion

public java.lang.String getDefaultSpecVersion()
Specified by:
getDefaultSpecVersion in class RootDeploymentDescriptor
Returns:
the default version of the deployment descriptor loaded by this descriptor

isEmpty

public boolean isEmpty()
Description copied from class: RootDeploymentDescriptor
Return true if this root deployment descriptor does not describe anything

Specified by:
isEmpty in class RootDeploymentDescriptor
Returns:
true if this root descriptor is empty

getMainClassName

public java.lang.String getMainClassName()
Return the fq Java clasname of this application client [{0}].


setMainClassName

public void setMainClassName(java.lang.String mainClassName)
Sets the main classname of this app client.


getCallbackHandler

public java.lang.String getCallbackHandler()
Get the classname of the callback handler.


setCallbackHandler

public void setCallbackHandler(java.lang.String handler)
Set the classname of the callback handler.


getNamedDescriptors

public java.util.Collection getNamedDescriptors()
Return the set of named descriptors I reference.


getNamedReferencePairs

public java.util.Vector<NamedReferencePair> getNamedReferencePairs()
Return the set of named reference pairs I reference.


getEnvironmentProperties

public java.util.Set getEnvironmentProperties()
Returns the set of environment properties of this app client.

Specified by:
getEnvironmentProperties in interface JndiNameEnvironment
Returns:
java.util.Set of EnvironmentProperty objects

getEnvironmentPropertyByName

public EnvironmentProperty getEnvironmentPropertyByName(java.lang.String name)
Returns the environment property object searching on the supplied key. throws an illegal argument exception if no such environment property exists.

Specified by:
getEnvironmentPropertyByName in interface JndiNameEnvironment
Returns:
EnvironmentProperty descriptor

addEnvironmentProperty

public void addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds an environment property to this application client [{0}].

Specified by:
addEnvironmentProperty in interface WritableJndiNameEnvironment
Parameters:
environmentProperty - the EnvironmentProperty to add.

removeEnvironmentProperty

public void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Remove the given environment property

Specified by:
removeEnvironmentProperty in interface WritableJndiNameEnvironment
Parameters:
environmentProperty - the EnvironmentProperty to remove.

getEjbReferenceDescriptors

public java.util.Set getEjbReferenceDescriptors()
Return the set of references to ejbs that I have.

Specified by:
getEjbReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getEjbReferenceDescriptors in interface EjbReferenceContainer
Returns:
java.util.Set of EjbReferenceDescriptor objects

addEjbReferenceDescriptor

public void addEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)
Add a reference to an ejb.


addEjbReferenceDescriptor

public void addEjbReferenceDescriptor(EjbReference ejbReference)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified ejb reference to the receiver.

Specified by:
addEjbReferenceDescriptor in interface EjbReferenceContainer
Specified by:
addEjbReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
ejbReference - the EjbReferenceDescriptor to add.

removeEjbReferenceDescriptor

public void removeEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)
Removes the given reference to an ejb.


removeEjbReferenceDescriptor

public void removeEjbReferenceDescriptor(EjbReference ejbReference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specificed ejb reference from the receiver.

Specified by:
removeEjbReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
ejbReference - the EjbReferenceDescriptor to remove.

getPostConstructDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of post-construct descriptors.

Specified by:
getPostConstructDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of LifecycleCallbackDescriptor post-construct objects

addPostConstructDescriptor

public void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified post-construct descriptor to the receiver.

Specified by:
addPostConstructDescriptor in interface WritableJndiNameEnvironment

getPostConstructDescriptorByClass

public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className)
Description copied from interface: JndiNameEnvironment
Return the post-construct descriptor corresponding to the given name.

Specified by:
getPostConstructDescriptorByClass in interface JndiNameEnvironment
Returns:
LifecycleCallbackDescriptor post-construct object

getPreDestroyDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of pre-destroy descriptors.

Specified by:
getPreDestroyDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of LifecycleCallbackDescriptor pre-destroy objects

addPreDestroyDescriptor

public void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified pre-destroy descriptor to the receiver.

Specified by:
addPreDestroyDescriptor in interface WritableJndiNameEnvironment

getPreDestroyDescriptorByClass

public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className)
Description copied from interface: JndiNameEnvironment
Return the pre-destroy descriptor corresponding to the given name.

Specified by:
getPreDestroyDescriptorByClass in interface JndiNameEnvironment
Returns:
LifecycleCallbackDescriptor pre-destroy object

getInjectionInfoByClass

public InjectionInfo getInjectionInfoByClass(java.lang.Class clazz)
Specified by:
getInjectionInfoByClass in interface JndiNameEnvironment

getServiceReferenceDescriptors

public java.util.Set getServiceReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of service reference descriptors.

Specified by:
getServiceReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getServiceReferenceDescriptors in interface ServiceReferenceContainer
Specified by:
getServiceReferenceDescriptors in class BundleDescriptor
Returns:
a set of service-ref from this bundle or an empty set if none

addServiceReferenceDescriptor

public void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified service reference to the receiver.

Specified by:
addServiceReferenceDescriptor in interface ServiceReferenceContainer
Specified by:
addServiceReferenceDescriptor in interface WritableJndiNameEnvironment

removeServiceReferenceDescriptor

public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified service reference from the receiver.

Specified by:
removeServiceReferenceDescriptor in interface ServiceReferenceContainer
Specified by:
removeServiceReferenceDescriptor in interface WritableJndiNameEnvironment

getServiceReferenceByName

public ServiceReferenceDescriptor getServiceReferenceByName(java.lang.String name)
Looks up an service reference with the given name. Throws an IllegalArgumentException if it is not found.

Specified by:
getServiceReferenceByName in interface JndiNameEnvironment
Specified by:
getServiceReferenceByName in interface ServiceReferenceContainer
Returns:
ServiceReferenceDescriptor object

getMessageDestinationReferenceDescriptors

public java.util.Set getMessageDestinationReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of message destination reference descriptors.

Specified by:
getMessageDestinationReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getMessageDestinationReferenceDescriptors in interface MessageDestinationReferenceContainer
Returns:
java.util.Set of MessageDestinationReferenceDescriptor objects

addMessageDestinationReferenceDescriptor

public void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified message destination reference to the receiver.

Specified by:
addMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainer
Specified by:
addMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

removeMessageDestinationReferenceDescriptor

public void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified message destination reference from the receiver.

Specified by:
removeMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainer
Specified by:
removeMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

getMessageDestinationReferenceByName

public MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(java.lang.String name)
Looks up an message destination reference with the given name. Throws an IllegalArgumentException if it is not found.

Specified by:
getMessageDestinationReferenceByName in interface JndiNameEnvironment
Specified by:
getMessageDestinationReferenceByName in interface MessageDestinationReferenceContainer
Returns:
MessageDestinationReferenceDescriptor object

getJmsDestinationReferenceDescriptors

public java.util.Set getJmsDestinationReferenceDescriptors()
Return the set of JMS destination references this ejb declares.

Specified by:
getJmsDestinationReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getJmsDestinationReferenceDescriptors in interface ResourceEnvReferenceContainer
Returns:
java.util.Set of JmsDestinationReferenceDescriptor objects

addJmsDestinationReferenceDescriptor

public void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified JMS destination reference to the receiver.

Specified by:
addJmsDestinationReferenceDescriptor in interface ResourceEnvReferenceContainer
Specified by:
addJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

removeJmsDestinationReferenceDescriptor

public void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified JMS destination reference from the receiver.

Specified by:
removeJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

getEjbReferenceByName

public EjbReferenceDescriptor getEjbReferenceByName(java.lang.String name)
Looks up an ejb reference with the given name. Throws an IllegalArgumentException if it is not found.


getEntityManagerFactoryReferenceDescriptors

public java.util.Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of entity manager factory reference descriptors.

Specified by:
getEntityManagerFactoryReferenceDescriptors in interface JndiNameEnvironment

getEntityManagerFactoryReferenceByName

public EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name.

Specified by:
getEntityManagerFactoryReferenceByName in interface JndiNameEnvironment

addEntityManagerFactoryReferenceDescriptor

public void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
Specified by:
addEntityManagerFactoryReferenceDescriptor in interface WritableJndiNameEnvironment

getEntityManagerReferenceDescriptors

public java.util.Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of entity manager reference descriptors.

Specified by:
getEntityManagerReferenceDescriptors in interface JndiNameEnvironment

getEntityManagerReferenceByName

public EntityManagerReferenceDescriptor getEntityManagerReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name.

Specified by:
getEntityManagerReferenceByName in interface JndiNameEnvironment

addEntityManagerReferenceDescriptor

public void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
Specified by:
addEntityManagerReferenceDescriptor in interface WritableJndiNameEnvironment

getDataSourceDefinitionDescriptors

public java.util.Set<DataSourceDefinitionDescriptor> getDataSourceDefinitionDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of data-source-definition descriptors.

Specified by:
getDataSourceDefinitionDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of data-source-definition objects

addDataSourceDefinitionDescriptor

public void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified data-source-definition to the receiver.

Specified by:
addDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironment
Parameters:
reference - DataSourceDefinitionDescriptor to add.

removeDataSourceDefinitionDescriptor

public void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified data-source-definition from the receiver.

Specified by:
removeDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironment
Parameters:
reference - DataSourceDefinitionDescriptor to remove.

getInjectableResourcesByClass

public java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className)
Specified by:
getInjectableResourcesByClass in interface JndiNameEnvironment

getEjbReference

public EjbReference getEjbReference(java.lang.String name)
Looks up an ejb reference with the given name. Throws an IllegalArgumentException if it is not found.

Specified by:
getEjbReference in interface EjbReferenceContainer

getJmsDestinationReferenceByName

public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(java.lang.String name)
Return a JMS destination reference by the same name or throw an IllegalArgumentException.

Specified by:
getJmsDestinationReferenceByName in interface JndiNameEnvironment
Specified by:
getJmsDestinationReferenceByName in interface ResourceEnvReferenceContainer
Returns:
JmsDestinationReferenceDescriptor object

getResourceReferenceDescriptors

public java.util.Set getResourceReferenceDescriptors()
Return the set of references to resources that I have.

Specified by:
getResourceReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getResourceReferenceDescriptors in interface ResourceReferenceContainer
Returns:
java.util.Set of ResourceReferenceDescriptor objects

getResourceReferenceByName

public ResourceReferenceDescriptor getResourceReferenceByName(java.lang.String name)
Looks up a reference to a resource by its name (getName()). Throws an IllegalArgumentException if no such descriptor is found.

Specified by:
getResourceReferenceByName in interface ResourceReferenceContainer

addResourceReferenceDescriptor

public void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a reference to a resource.

Specified by:
addResourceReferenceDescriptor in interface ResourceReferenceContainer
Specified by:
addResourceReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
resourceReference - the ResourceReferenceDescriptor to add.

removeResourceReferenceDescriptor

public void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from this app client.

Specified by:
removeResourceReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
resourceReference - the ResourceReferenceDescriptor to remove.

getComponentClassNames

public java.util.Set<java.lang.String> getComponentClassNames()
Returns:
a set of class names that need to have full annotation processing

hasWebServiceClients

public boolean hasWebServiceClients()
Overrides:
hasWebServiceClients in class BundleDescriptor
Returns:
true if this bundle descriptor defines web service clients

hasWebServices

public boolean hasWebServices()
Overrides:
hasWebServices in class BundleDescriptor
Returns:
true if this bundle descriptor defines web services

print

public void print(java.lang.StringBuffer toStringBuffer)
Description copied from class: BundleDescriptor
Prints a formatted string representing my state.

Overrides:
print in class BundleDescriptor

visit

public void visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Overrides:
visit in class Descriptor
Parameters:
aVisitor - a visitor to traverse the descriptors

visit

public void visit(AppClientVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Parameters:
aVisitor - a visitor to traverse the descriptors

getModuleType

public XModuleType getModuleType()
Specified by:
getModuleType in class BundleDescriptor
Returns:
the module type for this bundle descriptor

getJavaWebStartAccessDescriptor

public JavaWebStartAccessDescriptor getJavaWebStartAccessDescriptor()

setJavaWebStartAccessDescriptor

public void setJavaWebStartAccessDescriptor(JavaWebStartAccessDescriptor descr)

findReferencedPUs

public java.util.Collection<? extends PersistenceUnitDescriptor> findReferencedPUs()
This method is used to find out the precise list of PUs that are referenced by the appclient. An appclient can not use container managed EM as there is no support for JTA in our ACC, so this method only returns the list of PUs referenced via @PersistenceUnit or .

Overrides:
findReferencedPUs in class BundleDescriptor
Returns:
list of PU that are actually referenced by the appclient.


Copyright © 2012 GlassFish Community. All Rights Reserved.