|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.RootDeploymentDescriptor
com.sun.enterprise.deployment.BundleDescriptor
public abstract class BundleDescriptor
I am an abstract class representing all the deployment information common to all component container structures held by an application.
| 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 | |
|---|---|
BundleDescriptor()
Construct a new BundleDescriptor |
|
BundleDescriptor(java.lang.String name,
java.lang.String description)
Construct a new BundleDescriptor with a name and description |
|
| Method Summary | |
|---|---|
void |
addEntityManagerFactory(java.lang.String unitName,
javax.persistence.EntityManagerFactory emf)
Set the physical entity manager factory for a persistence unit within this module. |
void |
addManagedBean(ManagedBeanDescriptor desc)
|
void |
addMessageDestination(MessageDestinationDescriptor messageDestination)
Add a message destination to me. |
void |
addRole(Role role)
Adds a role object to me. |
void |
addRole(SecurityRoleDescriptor descriptor)
Adds a Role object based on the supplied SecurityRoleDescriptor. |
PersistenceUnitDescriptor |
findDefaultPU()
This method is responsible for finding default persistence unit for a bundle descriptor. |
PersistenceUnitDescriptor |
findReferencedPU(java.lang.String unitName)
It accepts both a quailified (e.g.) "lib/a.jar#FooPU" as well as unqualified name (e.g.) "FooPU". |
java.util.Collection<? extends PersistenceUnitDescriptor> |
findReferencedPUs()
This method returns all the persistence units that are referenced by this module. |
protected static java.util.Collection<? extends PersistenceUnitDescriptor> |
findReferencedPUsViaPCRefs(JndiNameEnvironment component)
helper method: find all PUs referenced via @PersistenceContext or |
protected static java.util.Collection<? extends PersistenceUnitDescriptor> |
findReferencedPUsViaPURefs(JndiNameEnvironment component)
helper method: find all PUs referenced via @PersistenceUnit or |
protected static PersistenceUnitDescriptor |
findReferencedPUViaEMFRef(EntityManagerFactoryReference emfRef)
|
protected static PersistenceUnitDescriptor |
findReferencedPUViaEMRef(EntityManagerReference emRef)
|
Application |
getApplication()
The application to which I belong, or none if I am standalone. |
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getCompatibility()
|
java.lang.String |
getDeploymentDescriptorDir()
|
java.util.Set<javax.persistence.EntityManagerFactory> |
getEntityManagerFactories()
Returns the set of physical entity manager factories associated with persistence units in this module. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(java.lang.String unitName)
Retrieve the physical entity manager factory associated with the unitName of a persistence unit within this module. |
protected java.util.List<InjectionCapable> |
getInjectableResources(JndiNameEnvironment jndiNameEnv)
|
protected java.util.List<InjectionCapable> |
getInjectableResourcesByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
Define implementation of getInjectableResourceByClass here so it isn't replicated across appclient, web, ejb descriptors. |
InjectionInfo |
getInjectionInfoByClass(java.lang.Class clazz,
JndiNameEnvironment jndiNameEnv)
|
boolean |
getKeepState()
|
ManagedBeanDescriptor |
getManagedBeanByBeanClass(java.lang.String beanClassName)
|
java.util.Set<ManagedBeanDescriptor> |
getManagedBeans()
|
MessageDestinationDescriptor |
getMessageDestinationByName(java.lang.String name)
Returns a message destination descriptor that I have by the same name, or throws an IllegalArgumentException |
java.util.Set<MessageDestinationDescriptor> |
getMessageDestinations()
Return the Set of message destinations I have |
java.lang.String |
getModuleID()
|
java.lang.String |
getModuleName()
|
abstract XModuleType |
getModuleType()
|
protected java.util.Collection |
getNamedDescriptorsFrom(JndiNameEnvironment nameEnvironment)
Utility method for iterating the set of named descriptors in the supplied nameEnvironment |
protected java.util.Vector<NamedReferencePair> |
getNamedReferencePairsFrom(JndiNameEnvironment nameEnvironment)
Utility method for iterating the set of NameReference pairs in the supplied nameEnvironment |
LifecycleCallbackDescriptor |
getPostConstructDescriptorByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
|
LifecycleCallbackDescriptor |
getPreDestroyDescriptorByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
|
java.util.Set<Role> |
getRoles()
Return the set of com.sun.enterprise.deployment.Role objects I have plus the ones from application |
abstract java.util.Set |
getServiceReferenceDescriptors()
|
java.lang.String |
getUniqueFriendlyId()
|
java.util.Map<java.lang.String,PersistenceUnitDescriptor> |
getVisiblePUs()
This method returns all the PUs that are defined in this bundle as well as the PUs defined in the ear level. |
WebServiceEndpoint |
getWebServiceEndpointByName(java.lang.String name)
|
WebServicesDescriptor |
getWebServices()
Return web services defined for this module. |
java.lang.String |
getWsdlDir()
|
boolean |
hasManagedBeanByBeanClass(java.lang.String beanClassName)
|
boolean |
hasMessageDestinationByName(java.lang.String name)
Returns true if I have an message destiation by that name. |
boolean |
hasWebServiceClients()
|
boolean |
hasWebServices()
|
boolean |
isApplication()
|
boolean |
isPackagedAsSingleModule(BundleDescriptor other)
Return true if the other bundle descriptor comes from the same module |
boolean |
isPolicyModified()
|
boolean |
isStandalone()
|
void |
print(java.lang.StringBuffer toStringBuffer)
Prints a formatted string representing my state. |
void |
removeMessageDestination(MessageDestinationDescriptor msgDest)
Remove the given message destination descriptor from my (by equality). |
void |
removeRole(Role role)
Removes a role object from me. |
void |
setApplication(Application a)
Sets the application to which I belong. |
void |
setCompatibility(java.lang.String compatValue)
|
void |
setKeepState(java.lang.String keepStateVal)
|
void |
setPolicyModified(boolean policyModified)
|
| Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor |
|---|
addExtensionDescriptor, getDefaultSpecVersion, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isEmpty, isExtensionDescriptor, isFullAttribute, isFullFlag, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion |
| 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 |
|---|
public BundleDescriptor()
public BundleDescriptor(java.lang.String name,
java.lang.String description)
| Method Detail |
|---|
public void setApplication(Application a)
public boolean isPackagedAsSingleModule(BundleDescriptor other)
other - the other bundle descriptor
public boolean isApplication()
isApplication in class RootDeploymentDescriptorpublic boolean isStandalone()
public Application getApplication()
public void addEntityManagerFactory(java.lang.String unitName,
javax.persistence.EntityManagerFactory emf)
public javax.persistence.EntityManagerFactory getEntityManagerFactory(java.lang.String unitName)
public java.util.Set<javax.persistence.EntityManagerFactory> getEntityManagerFactories()
public void addManagedBean(ManagedBeanDescriptor desc)
public boolean hasManagedBeanByBeanClass(java.lang.String beanClassName)
public ManagedBeanDescriptor getManagedBeanByBeanClass(java.lang.String beanClassName)
public java.util.Set<ManagedBeanDescriptor> getManagedBeans()
public abstract java.util.Set getServiceReferenceDescriptors()
public WebServicesDescriptor getWebServices()
public WebServiceEndpoint getWebServiceEndpointByName(java.lang.String name)
public boolean hasWebServiceClients()
public boolean hasWebServices()
public java.util.Set<MessageDestinationDescriptor> getMessageDestinations()
public boolean hasMessageDestinationByName(java.lang.String name)
public MessageDestinationDescriptor getMessageDestinationByName(java.lang.String name)
public void addMessageDestination(MessageDestinationDescriptor messageDestination)
public void removeMessageDestination(MessageDestinationDescriptor msgDest)
public java.util.Set<Role> getRoles()
getRoles in interface Rolespublic void addRole(Role role)
addRole in interface Rolespublic void addRole(SecurityRoleDescriptor descriptor)
descriptor - SecurityRoleDescriptor that describes the username and description of the rolepublic void removeRole(Role role)
removeRole in interface Rolesprotected java.util.Collection getNamedDescriptorsFrom(JndiNameEnvironment nameEnvironment)
protected java.util.Vector<NamedReferencePair> getNamedReferencePairsFrom(JndiNameEnvironment nameEnvironment)
public InjectionInfo getInjectionInfoByClass(java.lang.Class clazz,
JndiNameEnvironment jndiNameEnv)
public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
protected java.util.List<InjectionCapable> getInjectableResources(JndiNameEnvironment jndiNameEnv)
protected java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className,
JndiNameEnvironment jndiNameEnv)
public java.lang.ClassLoader getClassLoader()
getClassLoader in class RootDeploymentDescriptorpublic void print(java.lang.StringBuffer toStringBuffer)
print in class RootDeploymentDescriptorpublic abstract XModuleType getModuleType()
getModuleType in class RootDeploymentDescriptorpublic java.lang.String getModuleID()
getModuleID in class RootDeploymentDescriptorpublic java.lang.String getDeploymentDescriptorDir()
public java.lang.String getWsdlDir()
public java.util.Collection<? extends PersistenceUnitDescriptor> findReferencedPUs()
protected static java.util.Collection<? extends PersistenceUnitDescriptor> findReferencedPUsViaPURefs(JndiNameEnvironment component)
protected static PersistenceUnitDescriptor findReferencedPUViaEMFRef(EntityManagerFactoryReference emfRef)
protected static java.util.Collection<? extends PersistenceUnitDescriptor> findReferencedPUsViaPCRefs(JndiNameEnvironment component)
protected static PersistenceUnitDescriptor findReferencedPUViaEMRef(EntityManagerReference emRef)
public PersistenceUnitDescriptor findReferencedPU(java.lang.String unitName)
unitName - as used in @PersistenceUnit, @PersistenceContext
public PersistenceUnitDescriptor findDefaultPU()
public java.util.Map<java.lang.String,PersistenceUnitDescriptor> getVisiblePUs()
public java.lang.String getModuleName()
public java.lang.String getUniqueFriendlyId()
public boolean isPolicyModified()
public void setPolicyModified(boolean policyModified)
public java.lang.String getCompatibility()
public void setCompatibility(java.lang.String compatValue)
public boolean getKeepState()
public void setKeepState(java.lang.String keepStateVal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||