public abstract class BundleDescriptor extends RootDeploymentDescriptor implements Roles
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,RootXMLNode> |
rootNodes |
classLoader, deplLogger, extensions, moduleDescriptor, moduleIDDESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Constructor and Description |
|---|
BundleDescriptor()
Construct a new BundleDescriptor
|
BundleDescriptor(String name,
String description)
Construct a new BundleDescriptor with a name and description
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBundleDescriptor(BundleDescriptor bundleDescriptor) |
void |
addEntityManagerFactory(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.
|
void |
addRootNode(String ddPath,
RootXMLNode rootNode) |
PersistenceUnitDescriptor |
findDefaultPU()
This method is responsible for finding default persistence unit for
a bundle descriptor.
|
PersistenceUnitDescriptor |
findReferencedPU(String unitName)
It accepts both a quailified (e.g.) "lib/a.jar#FooPU" as well as
unqualified name (e.g.) "FooPU".
|
Collection<? extends PersistenceUnitDescriptor> |
findReferencedPUs()
This method returns all the persistence units that are referenced
by this module.
|
protected static Collection<? extends PersistenceUnitDescriptor> |
findReferencedPUsViaPCRefs(JndiNameEnvironment component)
helper method: find all PUs referenced via @PersistenceContext or
|
protected static 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.
|
ComponentVisitor |
getBundleVisitor() |
ClassLoader |
getClassLoader() |
String |
getCompatibility() |
String |
getDeploymentDescriptorDir() |
Set<javax.persistence.EntityManagerFactory> |
getEntityManagerFactories()
Returns the set of physical entity manager factories associated
with persistence units in this module.
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(String unitName)
Retrieve the physical entity manager factory associated with the
unitName of a persistence unit within this module.
|
List<InjectionCapable> |
getInjectableResources(JndiNameEnvironment jndiNameEnv) |
protected List<InjectionCapable> |
getInjectableResourcesByClass(String className,
JndiNameEnvironment jndiNameEnv)
Define implementation of getInjectableResourceByClass here so it
isn't replicated across appclient, web, ejb descriptors.
|
InjectionInfo |
getInjectionInfoByClass(Class clazz,
JndiNameEnvironment jndiNameEnv) |
boolean |
getKeepState() |
ManagedBeanDescriptor |
getManagedBeanByBeanClass(String beanClassName) |
Set<ManagedBeanDescriptor> |
getManagedBeans() |
MessageDestinationDescriptor |
getMessageDestinationByName(String name)
Returns a message destination descriptor that I have by the
same name, or throws an IllegalArgumentException
|
Set<MessageDestinationDescriptor> |
getMessageDestinations()
Return the Set of message destinations I have
|
String |
getModuleID() |
String |
getModuleName() |
abstract ArchiveType |
getModuleType() |
protected Collection |
getNamedDescriptorsFrom(JndiNameEnvironment nameEnvironment)
Utility method for iterating the set of named descriptors in the supplied nameEnvironment
|
protected Vector<NamedReferencePair> |
getNamedReferencePairsFrom(JndiNameEnvironment nameEnvironment)
Utility method for iterating the set of NameReference pairs in the supplied nameEnvironment
|
LifecycleCallbackDescriptor |
getPostConstructDescriptorByClass(String className,
JndiNameEnvironment jndiNameEnv) |
LifecycleCallbackDescriptor |
getPreDestroyDescriptorByClass(String className,
JndiNameEnvironment jndiNameEnv) |
Set<Role> |
getRoles()
Return the set of com.sun.enterprise.deployment.Role objects
I have plus the ones from application
|
RootXMLNode |
getRootNode(String ddPath) |
String |
getUniqueFriendlyId() |
Map<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(String name) |
WebServicesDescriptor |
getWebServices()
Return web services defined for this module.
|
String |
getWsdlDir() |
boolean |
hasManagedBeanByBeanClass(String beanClassName) |
boolean |
hasMessageDestinationByName(String name)
Returns true if I have an message destiation by that name.
|
boolean |
hasWebServiceClients() |
boolean |
hasWebServices() |
boolean |
isApplication() |
boolean |
isDDWithNoAnnotationAllowed() |
boolean |
isDefaultGroupPrincipalMapping() |
boolean |
isFullAttribute()
Get the full attribute of the deployment descriptor
|
boolean |
isFullFlag() |
boolean |
isPackagedAsSingleModule(BundleDescriptor other)
Return true if the other bundle descriptor comes from the same module
|
boolean |
isPolicyModified() |
boolean |
isStandalone() |
void |
print(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(String compatValue) |
void |
setDefaultGroupPrincipalMapping(boolean defaultGroupPrincipalMapping) |
void |
setFullAttribute(String value)
Sets the full attribute of the deployment descriptor
|
void |
setFullFlag(boolean flag)
Sets the full flag of the bundle descriptor.
|
void |
setKeepState(String keepStateVal) |
void |
setPolicyModified(boolean policyModified) |
void |
visit(ComponentVisitor aVisitor)
visitor API implementation
|
addExtensionDescriptor, getDefaultSpecVersion, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, getTracerVisitor, isEmpty, isExtensionDescriptor, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersionaddDescriptorExtension, 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, visitaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected HashMap<String,RootXMLNode> rootNodes
public void setApplication(Application a)
public void addBundleDescriptor(BundleDescriptor bundleDescriptor)
public boolean isPackagedAsSingleModule(BundleDescriptor other)
other - the other bundle descriptorpublic boolean isApplication()
isApplication in class RootDeploymentDescriptorpublic boolean isStandalone()
public Application getApplication()
public void addRootNode(String ddPath, RootXMLNode rootNode)
public RootXMLNode getRootNode(String ddPath)
public void addEntityManagerFactory(String unitName, javax.persistence.EntityManagerFactory emf)
public javax.persistence.EntityManagerFactory getEntityManagerFactory(String unitName)
public Set<javax.persistence.EntityManagerFactory> getEntityManagerFactories()
public void addManagedBean(ManagedBeanDescriptor desc)
public boolean hasManagedBeanByBeanClass(String beanClassName)
public ManagedBeanDescriptor getManagedBeanByBeanClass(String beanClassName)
public Set<ManagedBeanDescriptor> getManagedBeans()
public WebServicesDescriptor getWebServices()
public WebServiceEndpoint getWebServiceEndpointByName(String name)
public boolean hasWebServiceClients()
public boolean hasWebServices()
public Set<MessageDestinationDescriptor> getMessageDestinations()
public boolean hasMessageDestinationByName(String name)
public MessageDestinationDescriptor getMessageDestinationByName(String name)
public void addMessageDestination(MessageDestinationDescriptor messageDestination)
public void removeMessageDestination(MessageDestinationDescriptor msgDest)
public Set<Role> getRoles()
public void addRole(Role role)
public void addRole(SecurityRoleDescriptor descriptor)
descriptor - SecurityRoleDescriptor that describes the username and description of the rolepublic void removeRole(Role role)
removeRole in interface Rolesprotected Collection getNamedDescriptorsFrom(JndiNameEnvironment nameEnvironment)
protected Vector<NamedReferencePair> getNamedReferencePairsFrom(JndiNameEnvironment nameEnvironment)
public InjectionInfo getInjectionInfoByClass(Class clazz, JndiNameEnvironment jndiNameEnv)
public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(String className, JndiNameEnvironment jndiNameEnv)
public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(String className, JndiNameEnvironment jndiNameEnv)
public List<InjectionCapable> getInjectableResources(JndiNameEnvironment jndiNameEnv)
protected List<InjectionCapable> getInjectableResourcesByClass(String className, JndiNameEnvironment jndiNameEnv)
public ClassLoader getClassLoader()
getClassLoader in class RootDeploymentDescriptorpublic void print(StringBuffer toStringBuffer)
print in class RootDeploymentDescriptorpublic abstract ArchiveType getModuleType()
getModuleType in class RootDeploymentDescriptorpublic ComponentVisitor getBundleVisitor()
public void visit(ComponentVisitor aVisitor)
public String getModuleID()
getModuleID in class RootDeploymentDescriptorpublic String getDeploymentDescriptorDir()
public String getWsdlDir()
public Collection<? extends PersistenceUnitDescriptor> findReferencedPUs()
protected static Collection<? extends PersistenceUnitDescriptor> findReferencedPUsViaPURefs(JndiNameEnvironment component)
protected static PersistenceUnitDescriptor findReferencedPUViaEMFRef(EntityManagerFactoryReference emfRef)
protected static Collection<? extends PersistenceUnitDescriptor> findReferencedPUsViaPCRefs(JndiNameEnvironment component)
protected static PersistenceUnitDescriptor findReferencedPUViaEMRef(EntityManagerReference emRef)
public PersistenceUnitDescriptor findReferencedPU(String unitName)
unitName - as used in @PersistenceUnit, @PersistenceContext
public PersistenceUnitDescriptor findDefaultPU()
public Map<String,PersistenceUnitDescriptor> getVisiblePUs()
public String getModuleName()
public String getUniqueFriendlyId()
public boolean isPolicyModified()
public void setPolicyModified(boolean policyModified)
public String getCompatibility()
public void setCompatibility(String compatValue)
public boolean getKeepState()
public void setKeepState(String keepStateVal)
public boolean isDefaultGroupPrincipalMapping()
public void setDefaultGroupPrincipalMapping(boolean defaultGroupPrincipalMapping)
public void setFullFlag(boolean flag)
flag - a boolean to set or unset the flagpublic void setFullAttribute(String value)
value - the full attributepublic boolean isFullAttribute()
public boolean isFullFlag()
public boolean isDDWithNoAnnotationAllowed()
Copyright © 2017. All rights reserved.