Package com.sun.enterprise.deployment
Class ApplicationClientDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- org.glassfish.deployment.common.RootDeploymentDescriptor
-
- com.sun.enterprise.deployment.BundleDescriptor
-
- com.sun.enterprise.deployment.CommonResourceBundleDescriptor
-
- com.sun.enterprise.deployment.ApplicationClientDescriptor
-
- All Implemented Interfaces:
JndiNameEnvironment,Roles,EjbReferenceContainer,MessageDestinationReferenceContainer,ResourceEnvReferenceContainer,ResourceReferenceContainer,ServiceReferenceContainer,WritableJndiNameEnvironment,Serializable
public class ApplicationClientDescriptor extends CommonResourceBundleDescriptor 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.BundleDescriptor
rootNodes
-
Fields inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor
classLoader, deplLogger, extensions, moduleDescriptor, moduleID
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description ApplicationClientDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)Add a reference to an ejb.voidaddEjbReferenceDescriptor(EjbReference ejbReference)Adds the specified ejb reference to the receiver.voidaddEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)voidaddEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)voidaddEnvironmentProperty(EnvironmentProperty environmentProperty)Adds an environment property to this application client [{0}].voidaddMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)Adds the specified message destination reference to the receiver.voidaddPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)Adds the specified post-construct descriptor to the receiver.voidaddPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)Adds the specified pre-destroy descriptor to the receiver.voidaddResourceDescriptor(ResourceDescriptor descriptor)Adds the specified descriptor to the receiver.voidaddResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)Adds the specified resource environment reference to the receiver.voidaddResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)Adds a reference to a resource.voidaddServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)Adds the specified service reference to the receiver.Collection<? extends PersistenceUnitDescriptor>findReferencedPUs()This method is used to find out the precise list of PUs that are referenced by the appclient.ComponentVisitorgetBundleVisitor()StringgetCallbackHandler()Get the classname of the callback handler.Set<String>getComponentClassNames()StringgetDefaultSpecVersion()EjbReferencegetEjbReference(String name)Looks up an ejb reference with the given name.EjbReferenceDescriptorgetEjbReferenceByName(String name)Looks up an ejb reference with the given name.Set<EjbReference>getEjbReferenceDescriptors()Return the set of references to ejbs that I have.EntityManagerFactoryReferenceDescriptorgetEntityManagerFactoryReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<EntityManagerFactoryReferenceDescriptor>getEntityManagerFactoryReferenceDescriptors()Return a set of entity manager factory reference descriptors.EntityManagerReferenceDescriptorgetEntityManagerReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<EntityManagerReferenceDescriptor>getEntityManagerReferenceDescriptors()Return a set of entity manager reference descriptors.Set<EnvironmentProperty>getEnvironmentProperties()Returns the set of environment properties of this app client.EnvironmentPropertygetEnvironmentPropertyByName(String name)Returns the environment property object searching on the supplied key.List<InjectionCapable>getInjectableResourcesByClass(String className)InjectionInfogetInjectionInfoByClass(Class clazz)JavaWebStartAccessDescriptorgetJavaWebStartAccessDescriptor()StringgetMainClassName()Return the fq Java classname of this application client [{0}].MessageDestinationReferenceDescriptorgetMessageDestinationReferenceByName(String name)Looks up an message destination reference with the given name.Set<MessageDestinationReferenceDescriptor>getMessageDestinationReferenceDescriptors()Return a set of message destination reference descriptors.ArchiveTypegetModuleType()CollectiongetNamedDescriptors()Return the set of named descriptors I reference.Vector<NamedReferencePair>getNamedReferencePairs()Return the set of named reference pairs I reference.LifecycleCallbackDescriptorgetPostConstructDescriptorByClass(String className)Return the post-construct descriptor corresponding to the given name.Set<LifecycleCallbackDescriptor>getPostConstructDescriptors()Return a set of post-construct descriptors.LifecycleCallbackDescriptorgetPreDestroyDescriptorByClass(String className)Return the pre-destroy descriptor corresponding to the given name.Set<LifecycleCallbackDescriptor>getPreDestroyDescriptors()Return a set of pre-destroy descriptors.Set<ResourceDescriptor>getResourceDescriptors(JavaEEResourceType type)Return a set of descriptors based on the type.ResourceEnvReferenceDescriptorgetResourceEnvReferenceByName(String name)Return a resource environment reference by the same name or throw an IllegalArgumentException.Set<ResourceEnvReferenceDescriptor>getResourceEnvReferenceDescriptors()Return the set of resource environment references this ejb declares.ResourceReferenceDescriptorgetResourceReferenceByName(String name)Looks up a reference to a resource by its name (getName()).Set<ResourceReferenceDescriptor>getResourceReferenceDescriptors()Return the set of references to resources that I have.ServiceReferenceDescriptorgetServiceReferenceByName(String name)Looks up an service reference with the given name.Set<ServiceReferenceDescriptor>getServiceReferenceDescriptors()Return a set of service reference descriptors.DescriptorVisitorgetTracerVisitor()booleanhasRuntimeInformation()Return true if there is runtime information in this object that must be saved.booleanhasWebServiceClients()booleanhasWebServices()booleanisEmpty()Return true if this root deployment descriptor does not describe anythingvoidprint(StringBuilder toStringBuilder)Prints a formatted string representing my state.voidremoveEjbReferenceDescriptor(EjbReferenceDescriptor ejbReference)Removes the given reference to an ejb.voidremoveEjbReferenceDescriptor(EjbReference ejbReference)Removes the specificed ejb reference from the receiver.voidremoveEnvironmentProperty(EnvironmentProperty environmentProperty)Remove the given environment propertyvoidremoveMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)Removes the specified message destination reference from the receiver.voidremoveResourceDescriptor(ResourceDescriptor descriptor)Removes the specified descriptor from the receiver.voidremoveResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)Removes the specified resource environment reference from the receiver.voidremoveResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)Removes the given resource reference from this app client.voidremoveServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)Removes the specified service reference from the receiver.voidsetCallbackHandler(String handler)Set the classname of the callback handler.voidsetJavaWebStartAccessDescriptor(JavaWebStartAccessDescriptor descr)voidsetMainClassName(String mainClassName)Sets the main classname of this app client.voidvisit(DescriptorVisitor aVisitor)visit the descriptor and all sub descriptors with a DOL visitor implementation-
Methods inherited from class com.sun.enterprise.deployment.CommonResourceBundleDescriptor
getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptor
-
Methods inherited from class com.sun.enterprise.deployment.BundleDescriptor
addBundleDescriptor, addEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRole, addRootNode, 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, getRawModuleID, getRoles, getRootNode, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, isApplication, isDDWithNoAnnotationAllowed, isDefaultGroupPrincipalMapping, isFullAttribute, isFullFlag, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, removeRole, setApplication, setCompatibility, setDefaultGroupPrincipalMapping, setFullAttribute, setFullFlag, setKeepState, setPolicyModified, visit
-
Methods inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isExtensionDescriptor, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, 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 org.glassfish.deployment.common.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
-
Methods inherited from interface com.sun.enterprise.deployment.JndiNameEnvironment
getAllResourcesDescriptors, getAllResourcesDescriptors
-
-
-
-
Method Detail
-
hasRuntimeInformation
public boolean hasRuntimeInformation()
Return true if there is runtime information in this object that must be saved.
-
getDefaultSpecVersion
public String getDefaultSpecVersion()
- Specified by:
getDefaultSpecVersionin classRootDeploymentDescriptor- Returns:
- the default version of the deployment descriptor loaded by this descriptor
-
isEmpty
public boolean isEmpty()
Description copied from class:RootDeploymentDescriptorReturn true if this root deployment descriptor does not describe anything- Specified by:
isEmptyin classRootDeploymentDescriptor- Returns:
- true if this root descriptor is empty
-
getMainClassName
public String getMainClassName()
Return the fq Java classname of this application client [{0}].
-
setMainClassName
public void setMainClassName(String mainClassName)
Sets the main classname of this app client.
-
getCallbackHandler
public String getCallbackHandler()
Get the classname of the callback handler.
-
setCallbackHandler
public void setCallbackHandler(String handler)
Set the classname of the callback handler.
-
getNamedDescriptors
public Collection getNamedDescriptors()
Return the set of named descriptors I reference.
-
getNamedReferencePairs
public Vector<NamedReferencePair> getNamedReferencePairs()
Return the set of named reference pairs I reference.
-
getEnvironmentProperties
public Set<EnvironmentProperty> getEnvironmentProperties()
Returns the set of environment properties of this app client.- Specified by:
getEnvironmentPropertiesin interfaceJndiNameEnvironment- Returns:
- java.util.Set of EnvironmentProperty objects
-
getEnvironmentPropertyByName
public EnvironmentProperty getEnvironmentPropertyByName(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:
getEnvironmentPropertyByNamein interfaceJndiNameEnvironment- Returns:
- EnvironmentProperty descriptor
-
addEnvironmentProperty
public void addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds an environment property to this application client [{0}].- Specified by:
addEnvironmentPropertyin interfaceWritableJndiNameEnvironment- Parameters:
environmentProperty- the EnvironmentProperty to add.
-
removeEnvironmentProperty
public void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Remove the given environment property- Specified by:
removeEnvironmentPropertyin interfaceWritableJndiNameEnvironment- Parameters:
environmentProperty- the EnvironmentProperty to remove.
-
getEjbReferenceDescriptors
public Set<EjbReference> getEjbReferenceDescriptors()
Return the set of references to ejbs that I have.- Specified by:
getEjbReferenceDescriptorsin interfaceEjbReferenceContainer- Specified by:
getEjbReferenceDescriptorsin interfaceJndiNameEnvironment- 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:WritableJndiNameEnvironmentAdds the specified ejb reference to the receiver.- Specified by:
addEjbReferenceDescriptorin interfaceEjbReferenceContainer- Specified by:
addEjbReferenceDescriptorin interfaceWritableJndiNameEnvironment- 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:WritableJndiNameEnvironmentRemoves the specificed ejb reference from the receiver.- Specified by:
removeEjbReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
ejbReference- the EjbReferenceDescriptor to remove.
-
getPostConstructDescriptors
public Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of post-construct descriptors.- Specified by:
getPostConstructDescriptorsin interfaceJndiNameEnvironment- Returns:
- java.util.Set of LifecycleCallbackDescriptor post-construct objects
-
addPostConstructDescriptor
public void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified post-construct descriptor to the receiver.- Specified by:
addPostConstructDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
postConstructDesc- the post-construct LifecycleCallbackDescriptor to add.
-
getPostConstructDescriptorByClass
public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(String className)
Description copied from interface:JndiNameEnvironmentReturn the post-construct descriptor corresponding to the given name.- Specified by:
getPostConstructDescriptorByClassin interfaceJndiNameEnvironment- Returns:
- LifecycleCallbackDescriptor post-construct object
-
getPreDestroyDescriptors
public Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of pre-destroy descriptors.- Specified by:
getPreDestroyDescriptorsin interfaceJndiNameEnvironment- Returns:
- java.util.Set of LifecycleCallbackDescriptor pre-destroy objects
-
addPreDestroyDescriptor
public void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified pre-destroy descriptor to the receiver.- Specified by:
addPreDestroyDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
preDestroyDesc- the pre-destroy LifecycleCallbackDescriptor to add.
-
getPreDestroyDescriptorByClass
public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(String className)
Description copied from interface:JndiNameEnvironmentReturn the pre-destroy descriptor corresponding to the given name.- Specified by:
getPreDestroyDescriptorByClassin interfaceJndiNameEnvironment- Returns:
- LifecycleCallbackDescriptor pre-destroy object
-
getInjectionInfoByClass
public InjectionInfo getInjectionInfoByClass(Class clazz)
- Specified by:
getInjectionInfoByClassin interfaceJndiNameEnvironment
-
getServiceReferenceDescriptors
public Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of service reference descriptors.- Specified by:
getServiceReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getServiceReferenceDescriptorsin interfaceServiceReferenceContainer- Returns:
- java.util.Set of ServiceReferenceDescriptor objects
-
addServiceReferenceDescriptor
public void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified service reference to the receiver.- Specified by:
addServiceReferenceDescriptorin interfaceServiceReferenceContainer- Specified by:
addServiceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
serviceRef- the ServiceReferenceDescriptor to add.
-
removeServiceReferenceDescriptor
public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified service reference from the receiver.- Specified by:
removeServiceReferenceDescriptorin interfaceServiceReferenceContainer- Specified by:
removeServiceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
serviceRef- the ServiceReferenceDescriptor to remove.
-
getServiceReferenceByName
public ServiceReferenceDescriptor getServiceReferenceByName(String name)
Looks up an service reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getServiceReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getServiceReferenceByNamein interfaceServiceReferenceContainer- Returns:
- ServiceReferenceDescriptor object
-
getMessageDestinationReferenceDescriptors
public Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of message destination reference descriptors.- Specified by:
getMessageDestinationReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getMessageDestinationReferenceDescriptorsin interfaceMessageDestinationReferenceContainer- Returns:
- java.util.Set of MessageDestinationReferenceDescriptor objects
-
addMessageDestinationReferenceDescriptor
public void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified message destination reference to the receiver.- Specified by:
addMessageDestinationReferenceDescriptorin interfaceMessageDestinationReferenceContainer- Specified by:
addMessageDestinationReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
messageDestRef- the MessageDestinationReferenceDescriptor to add.
-
removeMessageDestinationReferenceDescriptor
public void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified message destination reference from the receiver.- Specified by:
removeMessageDestinationReferenceDescriptorin interfaceMessageDestinationReferenceContainer- Specified by:
removeMessageDestinationReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
msgDestRef- MessageDestinationReferenceDescriptor to remove.
-
getMessageDestinationReferenceByName
public MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(String name)
Looks up an message destination reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getMessageDestinationReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getMessageDestinationReferenceByNamein interfaceMessageDestinationReferenceContainer- Returns:
- MessageDestinationReferenceDescriptor object
-
getResourceEnvReferenceDescriptors
public Set<ResourceEnvReferenceDescriptor> getResourceEnvReferenceDescriptors()
Return the set of resource environment references this ejb declares.- Specified by:
getResourceEnvReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getResourceEnvReferenceDescriptorsin interfaceResourceEnvReferenceContainer- Returns:
- java.util.Set of ResourceEnvReferenceDescriptor objects
-
addResourceEnvReferenceDescriptor
public void addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified resource environment reference to the receiver.- Specified by:
addResourceEnvReferenceDescriptorin interfaceResourceEnvReferenceContainer- Specified by:
addResourceEnvReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceEnvReference- the ResourceEnvReferenceDescriptor to add.
-
removeResourceEnvReferenceDescriptor
public void removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified resource environment reference from the receiver.- Specified by:
removeResourceEnvReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceEnvReference- the ResourceEnvReferenceDescriptor to remove.
-
getEjbReferenceByName
public EjbReferenceDescriptor getEjbReferenceByName(String name)
Looks up an ejb reference with the given name. Throws an IllegalArgumentException if it is not found.
-
getEntityManagerFactoryReferenceDescriptors
public Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of entity manager factory reference descriptors.- Specified by:
getEntityManagerFactoryReferenceDescriptorsin interfaceJndiNameEnvironment
-
getEntityManagerFactoryReferenceByName
public EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(String name)
Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerFactoryReferenceByNamein interfaceJndiNameEnvironment- Parameters:
name-
-
addEntityManagerFactoryReferenceDescriptor
public void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
- Specified by:
addEntityManagerFactoryReferenceDescriptorin interfaceWritableJndiNameEnvironment
-
getEntityManagerReferenceDescriptors
public Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of entity manager reference descriptors.- Specified by:
getEntityManagerReferenceDescriptorsin interfaceJndiNameEnvironment
-
getEntityManagerReferenceByName
public EntityManagerReferenceDescriptor getEntityManagerReferenceByName(String name)
Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerReferenceByNamein interfaceJndiNameEnvironment
-
addEntityManagerReferenceDescriptor
public void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
- Specified by:
addEntityManagerReferenceDescriptorin interfaceWritableJndiNameEnvironment
-
getInjectableResourcesByClass
public List<InjectionCapable> getInjectableResourcesByClass(String className)
- Specified by:
getInjectableResourcesByClassin interfaceJndiNameEnvironment
-
getEjbReference
public EjbReference getEjbReference(String name)
Looks up an ejb reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getEjbReferencein interfaceEjbReferenceContainer
-
getResourceEnvReferenceByName
public ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name)
Return a resource environment reference by the same name or throw an IllegalArgumentException.- Specified by:
getResourceEnvReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getResourceEnvReferenceByNamein interfaceResourceEnvReferenceContainer- Returns:
- ResourceEnvReferenceDescriptor object
-
getResourceReferenceDescriptors
public Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
Return the set of references to resources that I have.- Specified by:
getResourceReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getResourceReferenceDescriptorsin interfaceResourceReferenceContainer- Returns:
- java.util.Set of ResourceReferenceDescriptor objects
-
getResourceReferenceByName
public ResourceReferenceDescriptor getResourceReferenceByName(String name)
Looks up a reference to a resource by its name (getName()). Throws an IllegalArgumentException if no such descriptor is found.- Specified by:
getResourceReferenceByNamein interfaceResourceReferenceContainer
-
addResourceReferenceDescriptor
public void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a reference to a resource.- Specified by:
addResourceReferenceDescriptorin interfaceResourceReferenceContainer- Specified by:
addResourceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceReference- the ResourceReferenceDescriptor to add.
-
removeResourceReferenceDescriptor
public void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from this app client.- Specified by:
removeResourceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceReference- the ResourceReferenceDescriptor to remove.
-
getComponentClassNames
public Set<String> getComponentClassNames()
- Returns:
- a set of class names that need to have full annotation processing
-
hasWebServiceClients
public boolean hasWebServiceClients()
- Overrides:
hasWebServiceClientsin classBundleDescriptor- Returns:
- true if this bundle descriptor defines web service clients
-
hasWebServices
public boolean hasWebServices()
- Overrides:
hasWebServicesin classBundleDescriptor- Returns:
- true if this bundle descriptor defines web services
-
print
public void print(StringBuilder toStringBuilder)
Description copied from class:BundleDescriptorPrints a formatted string representing my state.- Overrides:
printin classBundleDescriptor
-
visit
public void visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation- Overrides:
visitin classDescriptor- Parameters:
aVisitor- a visitor to traverse the descriptors
-
getModuleType
public ArchiveType getModuleType()
- Specified by:
getModuleTypein classBundleDescriptor- Returns:
- the module type for this bundle descriptor
-
getBundleVisitor
public ComponentVisitor getBundleVisitor()
- Overrides:
getBundleVisitorin classBundleDescriptor- Returns:
- the visitor for this bundle descriptor
-
getTracerVisitor
public DescriptorVisitor getTracerVisitor()
- Overrides:
getTracerVisitorin classRootDeploymentDescriptor- Returns:
- the tracer visitor for this descriptor
-
getJavaWebStartAccessDescriptor
public JavaWebStartAccessDescriptor getJavaWebStartAccessDescriptor()
-
setJavaWebStartAccessDescriptor
public void setJavaWebStartAccessDescriptor(JavaWebStartAccessDescriptor descr)
-
findReferencedPUs
public 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:
findReferencedPUsin classBundleDescriptor- Returns:
- list of PU that are actually referenced by the appclient.
-
getResourceDescriptors
public Set<ResourceDescriptor> getResourceDescriptors(JavaEEResourceType type)
Description copied from interface:JndiNameEnvironmentReturn a set of descriptors based on the type.- Specified by:
getResourceDescriptorsin interfaceJndiNameEnvironment- Overrides:
getResourceDescriptorsin classCommonResourceBundleDescriptor- Returns:
- java.util.Set of descriptor objects
-
addResourceDescriptor
public void addResourceDescriptor(ResourceDescriptor descriptor)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified descriptor to the receiver.- Specified by:
addResourceDescriptorin interfaceWritableJndiNameEnvironment- Overrides:
addResourceDescriptorin classCommonResourceBundleDescriptor- Parameters:
descriptor- Descriptor to add.
-
removeResourceDescriptor
public void removeResourceDescriptor(ResourceDescriptor descriptor)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified descriptor from the receiver.- Specified by:
removeResourceDescriptorin interfaceWritableJndiNameEnvironment- Overrides:
removeResourceDescriptorin classCommonResourceBundleDescriptor- Parameters:
descriptor- Descriptor to remove.
-
-