public class Application extends CommonResourceBundleDescriptor implements RoleMappingContainer, WritableJndiNameEnvironment, EjbReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, MessageDestinationReferenceContainer
rootNodesclassLoader, deplLogger, extensions, moduleDescriptor, moduleIDDESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(Application application)
Add all the deployment information about the given application to me.
|
void |
addApplicationParam(ApplicationParam appParam)
Adds a new context parameter to my list.
|
void |
addAppRole(SecurityRoleDescriptor descriptor)
Adds a new
Role to the application based on the descriptor |
void |
addBundleDescriptor(BundleDescriptor bundleDescriptor)
Add a bundle descriptor to this application.
|
void |
addEjbReferenceDescriptor(EjbReference ejbReference)
Adds a reference to another ejb to me.
|
void |
addEntityManagerFactory(String unitName,
String persistenceRootUri,
javax.persistence.EntityManagerFactory emf)
Set the physical entity manager factory for a persistence unit
within this application.
|
void |
addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference) |
void |
addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference) |
void |
addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds the specified environment property to the receiver.
|
void |
addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Adds the specified message destination reference to the receiver.
|
void |
addModule(ModuleDescriptor<BundleDescriptor> descriptor) |
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 |
addResourceAdapter(String raName)
add a resource-adapter to referred resource-adapters list
|
void |
addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Adds the specified resource environment reference to the receiver.
|
void |
addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a resource reference to me.
|
void |
addRole(Role role)
Adds a new abstract role
|
void |
addScanningExclusions(List<String> exclusions) |
void |
addScanningExclusions(List<String> exclusions,
String libDir) |
void |
addScanningInclusions(List<String> inclusions) |
void |
addScanningInclusions(List<String> inclusions,
String libDir) |
void |
addSecurityRoleMapping(SecurityRoleMapping roleMapping) |
void |
addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Adds the specified service reference to the receiver.
|
void |
addWhitelistPackage(String aPackage) |
void |
addWLRoleAssignments(SecurityRoleAssignment wlRoleAssignment) |
static Application |
createApplication() |
static Application |
createVirtualApplication(String name,
ModuleDescriptor<BundleDescriptor> newModule)
Creates a new application to hold a standalone module
|
Set<ApplicationParam> |
getApplicationParams() |
String |
getAppName()
Returns the value of the app-name element in the application.xml if
it's defined.
|
Set<Role> |
getAppRoles()
Return the set of
Role objects
I have (the ones defined in application xml). |
Set |
getArchivableDescriptors()
Return all my subcomponents that have a file format (EJB, WAR and
AppCLient JAR).
|
String |
getArchiveName()
Returns the value of the archive-name element in the sun-application.xml
When the app-name is not present in application.xml and archive-name is
present in sun-application.xml, the value of archive-name minus file
extension will be used as the default name of the app-name.
|
Set<BundleDescriptor> |
getBundleDescriptors()
Obtain a set of all bundle descriptors, regardless of type
|
<T extends BundleDescriptor> |
getBundleDescriptors(Class<T> type)
Obtain a full set of bundle descriptors for a particular type
|
Set<BundleDescriptor> |
getBundleDescriptorsOfType(ArchiveType bundleType)
Obtain a full set of bundle descriptors for a particular type
|
ClassLoader |
getClassLoader() |
String |
getClassLoadingDelegate() |
String |
getCompatibility() |
String |
getDefaultSpecVersion() |
EjbDescriptor |
getEjbByName(String ejbName)
Obtain the EJB in this application of the given display name.
|
Vector<EjbDescriptor> |
getEjbDescriptors()
Return the Vector of ejb deployment objects.
|
EjbReference |
getEjbReference(String name)
Looks up an ejb reference with the given name.
|
EjbReference |
getEjbReferenceByName(String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException.
|
Set<EjbReference> |
getEjbReferenceDescriptors()
Returns the generated XML directory feturn the set of ejb references this ejb declares.
|
Set<javax.persistence.EntityManagerFactory> |
getEntityManagerFactories()
Returns the set of physical entity manager factories associated with
persistence units in this application.
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(String unitName,
BundleDescriptor declaringModule)
Retrieve the physical entity manager factory associated with the
unitName of an application-level persistence unit.
|
EntityManagerFactoryReferenceDescriptor |
getEntityManagerFactoryReferenceByName(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.
|
EntityManagerReferenceDescriptor |
getEntityManagerReferenceByName(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()
Return a copy of the structure holding the environment properties.
|
EnvironmentProperty |
getEnvironmentPropertyByName(String name)
Returns the environment property object searching on the supplied key.
|
String |
getGeneratedXMLDirectory() |
List<InjectionCapable> |
getInjectableResourcesByClass(String className) |
InjectionInfo |
getInjectionInfoByClass(Class clazz) |
boolean |
getKeepState() |
boolean |
getKeepStateResolved()
Returns the resolved keepstate value.
|
String |
getLibraryDirectory()
Returns an "intelligent" value for the library directory setting, meaning
the current value if it has been set to a non-null, non-empty value;
the default value if the value has never been set, and null if the value
has been set to empty.
|
String |
getLibraryDirectoryRawValue() |
MessageDestinationReferenceDescriptor |
getMessageDestinationReferenceByName(String name)
Looks up an message destination reference with the given name.
|
Set<MessageDestinationReferenceDescriptor> |
getMessageDestinationReferenceDescriptors()
Return a set of message destination reference descriptors.
|
<T extends BundleDescriptor> |
getModuleByTypeAndUri(Class<T> type,
String uri) |
BundleDescriptor |
getModuleByUri(String uri)
Lookup module by uri.
|
ModuleDescriptor<BundleDescriptor> |
getModuleDescriptorByUri(String uri)
Lookup module by uri.
|
Collection<ModuleDescriptor<BundleDescriptor>> |
getModuleDescriptorsByType(ArchiveType type)
Lookup module by uri.
|
String |
getModuleID() |
Set<ModuleDescriptor<BundleDescriptor>> |
getModules()
Obtain a full set of module descriptors
|
ArchiveType |
getModuleType() |
boolean |
getPassByReference()
Gets the value of pass-by-reference property for this application
Checks to see if the pass-by-reference property is defined.
|
LifecycleCallbackDescriptor |
getPostConstructDescriptorByClass(String className)
Return the post-construct descriptor corresponding to
the given name.
|
Set<LifecycleCallbackDescriptor> |
getPostConstructDescriptors()
Return a set of post-construct descriptors.
|
LifecycleCallbackDescriptor |
getPreDestroyDescriptorByClass(String className)
Return the pre-destroy descriptor corresponding to
the given name.
|
Set<LifecycleCallbackDescriptor> |
getPreDestroyDescriptors()
Return a set of pre-destroy descriptors.
|
String |
getRealm() |
String |
getRegistrationName()
Returns the registration name of this application.
|
BundleDescriptor |
getRelativeBundle(BundleDescriptor origin,
String relativeTargetUri)
Get a target bundle descriptor based on an input bundle descriptor and
a relative uri from the perspective of the input bundle descriptor.
|
String |
getRelativeUri(BundleDescriptor origin,
BundleDescriptor target)
Return the relative uri between two modules, from the perspective
of the first bundle.
|
Set<String> |
getResourceAdapters()
get the list of resource-adapters referred by the application
|
ResourceEnvReferenceDescriptor |
getResourceEnvReferenceByName(String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException.
|
Set<ResourceEnvReferenceDescriptor> |
getResourceEnvReferenceDescriptors()
Return the set of resource environment references this application declares.
|
ResourceReferenceDescriptor |
getResourceReferenceByName(String name)
Return the resource object corresponding to the supplied name or throw an illegal argument exception.
|
Set<ResourceReferenceDescriptor> |
getResourceReferenceDescriptors()
Return the set of resource references this ejb declares.
|
SecurityRoleMapper |
getRoleMapper()
Return my mapping of rolename to users and groups on a particular
server.
|
Set<Role> |
getRoles()
Return the set of roles used in this application.
|
List<Pattern> |
getScanningExclusions() |
List<Pattern> |
getScanningInclusions() |
List<SecurityRoleMapping> |
getSecurityRoleMappings() |
ServiceReferenceDescriptor |
getServiceReferenceByName(String name)
Looks up an service reference with the given name.
|
Set<ServiceReferenceDescriptor> |
getServiceReferenceDescriptors()
Return a set of service reference descriptors.
|
EjbDescriptor[] |
getSortedEjbDescriptors()
Returns all the ejb descriptor in this application in ordered form.
|
BundleDescriptor |
getStandaloneBundleDescriptor()
if this application object is virtual, return the standalone
bundle descriptor it is wrapping otherwise return null
|
String |
getTargetUri(BundleDescriptor origin,
String relativeTargetUri)
Get the uri of a target based on a source module and a
a relative uri from the perspective of that source module.
|
long |
getUniqueId()
Returns the unique id used for this application.
|
Set<String> |
getWhitelistPackages() |
List<SecurityRoleAssignment> |
getWlRoleAssignments() |
boolean |
hasEjbByName(String ejbName)
Return whether the application contains the given ejb by name..
|
boolean |
hasRuntimeInformation()
Return true if I have information to do with deployment on a
particular operational environment.
|
boolean |
isApplication() |
boolean |
isDirty()
A flag to indicate that my data has changed since the last save.
|
boolean |
isEmpty()
Return true if this root deployment descriptor does not describe anything
|
boolean |
isInitializeInOrder() |
boolean |
isLoadedFromApplicationXml() |
boolean |
isPassByReferenceDefined() |
boolean |
isUniqueIdSet() |
boolean |
isVirtual()
Returns the virtual status of this application.
|
boolean |
isWhitelistEnabled() |
void |
print(StringBuilder toStringBuilder)
A formatted String representing my state.
|
void |
removeBundleDescriptor(BundleDescriptor bundleDescriptor)
Remove a web bundle descriptor from this application.
|
void |
removeEjbReferenceDescriptor(EjbReference ejbReference)
Removes the specificed ejb reference from the receiver.
|
void |
removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the given environment property from me.
|
void |
removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Removes the specified message destination reference from the receiver.
|
void |
removeModule(ModuleDescriptor<BundleDescriptor> descriptor) |
void |
removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Removes the specified resource environment reference from the receiver.
|
void |
removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from me.
|
void |
removeRole(Role role)
Removes the given role.
|
void |
removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Removes the specified service reference from the receiver.
|
void |
setAppName(String appName)
Sets the EE app name
|
void |
setArchiveName(String archiveName)
Sets the archive name using the archive-name element defined
in sun-application.xml
|
void |
setClassLoadingDelegate(String classLoadingDelegate) |
void |
setCompatibility(String compatValue) |
void |
setGeneratedXMLDirectory(String xmlDir) |
void |
setInitializeInOrder(boolean initializeInOrder)
Sets the initializeInOrder flag
|
void |
setKeepStateResolved(String keepStateResolved)
Sets the resolved keepstate value.
|
void |
setLibraryDirectory(String value) |
void |
setLoadedFromApplicationXml(boolean bool)
This method records how this Application object is constructed.
|
void |
setName(String name)
Reset the display name of this application.
|
void |
setPassByReference(boolean passByReference)
Sets the pass-by-reference property for this application.
|
void |
setRealm(String realm)
Sets the realm for this application
|
void |
setRegistrationName(String appId)
Sets the registration name for this application.
|
void |
setRoleMapper(SecurityRoleMapper roleMapper)
Sets the mapping of rolename to users and groups on a particular server.
|
void |
setUniqueId(long id)
Sets the unique id for this application.
|
void |
setVirtual(boolean virtual)
Sets the virtual status of this application.
|
void |
visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation
|
addResourceDescriptor, getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptor, getResourceDescriptors, removeResourceDescriptoraddEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRootNode, findDefaultPU, findReferencedPU, findReferencedPUs, findReferencedPUsViaPCRefs, findReferencedPUsViaPURefs, findReferencedPUViaEMFRef, findReferencedPUViaEMRef, getApplication, getBundleVisitor, getDeploymentDescriptorDir, getEntityManagerFactory, getInjectableResources, getInjectableResourcesByClass, getInjectionInfoByClass, getManagedBeanByBeanClass, getManagedBeans, getMessageDestinationByName, getMessageDestinations, getModuleName, getNamedDescriptorsFrom, getNamedReferencePairsFrom, getPostConstructDescriptorByClass, getPreDestroyDescriptorByClass, getRootNode, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, hasWebServiceClients, hasWebServices, isDDWithNoAnnotationAllowed, isDefaultGroupPrincipalMapping, isFullAttribute, isFullFlag, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, setApplication, setDefaultGroupPrincipalMapping, setFullAttribute, setFullFlag, setKeepState, setPolicyModified, visitaddExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, getTracerVisitor, isExtensionDescriptor, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, 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, setSmallIconUriaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddResourceDescriptor, removeResourceDescriptorgetAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptorspublic String getDefaultSpecVersion()
getDefaultSpecVersion in class RootDeploymentDescriptorpublic boolean isEmpty()
RootDeploymentDescriptorisEmpty in class RootDeploymentDescriptorpublic static Application createVirtualApplication(String name, ModuleDescriptor<BundleDescriptor> newModule)
name - the application namenewModule - the standalone module descriptorpublic static Application createApplication()
public Set<EjbReference> getEjbReferenceDescriptors()
getEjbReferenceDescriptors in interface JndiNameEnvironmentgetEjbReferenceDescriptors in interface EjbReferenceContainerpublic void addEjbReferenceDescriptor(EjbReference ejbReference)
addEjbReferenceDescriptor in interface EjbReferenceContaineraddEjbReferenceDescriptor in interface WritableJndiNameEnvironmentejbReference - the EjbReferenceDescriptor to add.public void removeEjbReferenceDescriptor(EjbReference ejbReference)
WritableJndiNameEnvironmentremoveEjbReferenceDescriptor in interface WritableJndiNameEnvironmentejbReference - the EjbReferenceDescriptor to remove.public EjbReference getEjbReferenceByName(String name)
name - public EjbReference getEjbReference(String name)
EjbReferenceContainergetEjbReference in interface EjbReferenceContainerpublic Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
JndiNameEnvironmentgetServiceReferenceDescriptors in interface JndiNameEnvironmentgetServiceReferenceDescriptors in interface ServiceReferenceContainerpublic void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
WritableJndiNameEnvironmentaddServiceReferenceDescriptor in interface ServiceReferenceContaineraddServiceReferenceDescriptor in interface WritableJndiNameEnvironmentserviceRef - the ServiceReferenceDescriptor to add.public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
WritableJndiNameEnvironmentremoveServiceReferenceDescriptor in interface ServiceReferenceContainerremoveServiceReferenceDescriptor in interface WritableJndiNameEnvironmentserviceRef - the ServiceReferenceDescriptor to remove.public ServiceReferenceDescriptor getServiceReferenceByName(String name)
getServiceReferenceByName in interface JndiNameEnvironmentgetServiceReferenceByName in interface ServiceReferenceContainername - public Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
JndiNameEnvironmentgetMessageDestinationReferenceDescriptors in interface JndiNameEnvironmentgetMessageDestinationReferenceDescriptors in interface MessageDestinationReferenceContainerpublic void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
WritableJndiNameEnvironmentaddMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContaineraddMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentmessageDestRef - the MessageDestinationReferenceDescriptor to add.public void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
WritableJndiNameEnvironmentremoveMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainerremoveMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentmsgDestRef - MessageDestinationReferenceDescriptor to remove.public MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(String name)
getMessageDestinationReferenceByName in interface JndiNameEnvironmentgetMessageDestinationReferenceByName in interface MessageDestinationReferenceContainername - public Set<ResourceEnvReferenceDescriptor> getResourceEnvReferenceDescriptors()
getResourceEnvReferenceDescriptors in interface JndiNameEnvironmentgetResourceEnvReferenceDescriptors in interface ResourceEnvReferenceContainerpublic void addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
WritableJndiNameEnvironmentaddResourceEnvReferenceDescriptor in interface ResourceEnvReferenceContaineraddResourceEnvReferenceDescriptor in interface WritableJndiNameEnvironmentresourceEnvReference - the ResourceEnvReferenceDescriptor to add.public void removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
WritableJndiNameEnvironmentremoveResourceEnvReferenceDescriptor in interface WritableJndiNameEnvironmentresourceEnvReference - the ResourceEnvReferenceDescriptor to remove.public ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name)
getResourceEnvReferenceByName in interface JndiNameEnvironmentgetResourceEnvReferenceByName in interface ResourceEnvReferenceContainername - public Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
getResourceReferenceDescriptors in interface JndiNameEnvironmentgetResourceReferenceDescriptors in interface ResourceReferenceContainerpublic void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
addResourceReferenceDescriptor in interface ResourceReferenceContaineraddResourceReferenceDescriptor in interface WritableJndiNameEnvironmentresourceReference - the ResourceReferenceDescriptor to add.public void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
removeResourceReferenceDescriptor in interface WritableJndiNameEnvironmentresourceReference - the ResourceReferenceDescriptor to remove.public ResourceReferenceDescriptor getResourceReferenceByName(String name)
getResourceReferenceByName in interface ResourceReferenceContainername - public EnvironmentProperty getEnvironmentPropertyByName(String name)
getEnvironmentPropertyByName in interface JndiNameEnvironmentname - public Set<EnvironmentProperty> getEnvironmentProperties()
getEnvironmentProperties in interface JndiNameEnvironmentpublic void addEnvironmentProperty(EnvironmentProperty environmentProperty)
WritableJndiNameEnvironmentaddEnvironmentProperty in interface WritableJndiNameEnvironmentenvironmentProperty - the EnvironmentProperty to add.public void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
removeEnvironmentProperty in interface WritableJndiNameEnvironmentenvironmentProperty - the EnvironmentProperty to remove.public Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
JndiNameEnvironmentgetEntityManagerFactoryReferenceDescriptors in interface JndiNameEnvironmentpublic EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(String name)
getEntityManagerFactoryReferenceByName in interface JndiNameEnvironmentname - public void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
addEntityManagerFactoryReferenceDescriptor in interface WritableJndiNameEnvironmentpublic Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
JndiNameEnvironmentgetEntityManagerReferenceDescriptors in interface JndiNameEnvironmentpublic EntityManagerReferenceDescriptor getEntityManagerReferenceByName(String name)
getEntityManagerReferenceByName in interface JndiNameEnvironmentname - public void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
addEntityManagerReferenceDescriptor in interface WritableJndiNameEnvironmentpublic Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
JndiNameEnvironmentgetPostConstructDescriptors in interface JndiNameEnvironmentpublic void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
WritableJndiNameEnvironmentaddPostConstructDescriptor in interface WritableJndiNameEnvironmentpostConstructDesc - the post-construct LifecycleCallbackDescriptor to add.public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(String className)
JndiNameEnvironmentgetPostConstructDescriptorByClass in interface JndiNameEnvironmentpublic Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
JndiNameEnvironmentgetPreDestroyDescriptors in interface JndiNameEnvironmentpublic void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
WritableJndiNameEnvironmentaddPreDestroyDescriptor in interface WritableJndiNameEnvironmentpreDestroyDesc - the pre-destroy LifecycleCallbackDescriptor to add.public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(String className)
JndiNameEnvironmentgetPreDestroyDescriptorByClass in interface JndiNameEnvironmentpublic List<InjectionCapable> getInjectableResourcesByClass(String className)
getInjectableResourcesByClass in interface JndiNameEnvironmentpublic InjectionInfo getInjectionInfoByClass(Class clazz)
getInjectionInfoByClass in interface JndiNameEnvironmentpublic void setGeneratedXMLDirectory(String xmlDir)
public String getGeneratedXMLDirectory()
public void setRegistrationName(String appId)
appId - the registration name used for this applicationpublic String getRegistrationName()
public String getAppName()
public void setAppName(String appName)
appName - the EE app name of this applicationpublic String getArchiveName()
public void setArchiveName(String archiveName)
archiveName - archiveName to calculate default EE6 app-namepublic String getCompatibility()
getCompatibility in class BundleDescriptorpublic void setCompatibility(String compatValue)
setCompatibility in class BundleDescriptorpublic String getClassLoadingDelegate()
public void setClassLoadingDelegate(String classLoadingDelegate)
public boolean isWhitelistEnabled()
public void addWhitelistPackage(String aPackage)
public boolean isInitializeInOrder()
public void setInitializeInOrder(boolean initializeInOrder)
initializeInOrder - public void addEntityManagerFactory(String unitName, String persistenceRootUri, javax.persistence.EntityManagerFactory emf)
unitName: - Name of the persistence-unitpersistenceRootUri: - uri of the root of the persistence.xml
(excluding META-INF) in which the persistence unit was defined.
This uri is relative to the top of the .ear.emf: - an entity manager factory.public javax.persistence.EntityManagerFactory getEntityManagerFactory(String unitName, BundleDescriptor declaringModule)
unitName - declaringModule - public Set<javax.persistence.EntityManagerFactory> getEntityManagerFactories()
getEntityManagerFactories in class BundleDescriptorpublic Set<Role> getRoles()
getRoles in interface RolesgetRoles in class BundleDescriptorpublic Set<Role> getAppRoles()
Role objects
I have (the ones defined in application xml).public void addAppRole(SecurityRoleDescriptor descriptor)
Role to the application based on the descriptordescriptor - public void addRole(Role role)
addRole in interface RolesaddRole in class BundleDescriptorrole - public void removeRole(Role role)
removeRole in interface RolesremoveRole in class BundleDescriptorrole - public void setName(String name)
setName in class RootDeploymentDescriptorname - the display name of the application.public void setLibraryDirectory(String value)
public String getLibraryDirectory()
public String getLibraryDirectoryRawValue()
public void removeModule(ModuleDescriptor<BundleDescriptor> descriptor)
public void addModule(ModuleDescriptor<BundleDescriptor> descriptor)
public Set<ModuleDescriptor<BundleDescriptor>> getModules()
public String getTargetUri(BundleDescriptor origin, String relativeTargetUri)
origin - bundle descriptor within this applicationrelativeTargetUri - relative uri from the given bundle descriptorpublic BundleDescriptor getRelativeBundle(BundleDescriptor origin, String relativeTargetUri)
origin - bundle descriptor within this applicationrelativeTargetUri - relative uri from the given bundle descriptor
to another bundle within the application.public String getRelativeUri(BundleDescriptor origin, BundleDescriptor target)
origin - target - public ModuleDescriptor<BundleDescriptor> getModuleDescriptorByUri(String uri)
uri - the module path in the application archivepublic Collection<ModuleDescriptor<BundleDescriptor>> getModuleDescriptorsByType(ArchiveType type)
public BundleDescriptor getModuleByUri(String uri)
uri - the module path in the application archivepublic <T extends BundleDescriptor> T getModuleByTypeAndUri(Class<T> type, String uri)
type - the module typeuri - the module path in the application archivepublic EjbDescriptor getEjbByName(String ejbName)
ejbName - the name of the beanpublic boolean hasEjbByName(String ejbName)
ejbName - the name of the beanpublic BundleDescriptor getStandaloneBundleDescriptor()
public <T extends BundleDescriptor> Set<T> getBundleDescriptors(Class<T> type)
type - the bundle descriptor type requestedpublic Set<BundleDescriptor> getBundleDescriptorsOfType(ArchiveType bundleType)
bundleType - the bundle descriptor type requestedpublic Set<BundleDescriptor> getBundleDescriptors()
public void addBundleDescriptor(BundleDescriptor bundleDescriptor)
addBundleDescriptor in class BundleDescriptorbundleDescriptor - the bundle descriptor to addpublic void removeBundleDescriptor(BundleDescriptor bundleDescriptor)
bundleDescriptor - the web bundle descriptor to removepublic Vector<EjbDescriptor> getEjbDescriptors()
public EjbDescriptor[] getSortedEjbDescriptors()
public void setVirtual(boolean virtual)
virtual - new value of this application's virtaul statuspublic boolean isVirtual()
public boolean isUniqueIdSet()
public void setUniqueId(long id)
id - unique id for this applicationpublic long getUniqueId()
public void setPassByReference(boolean passByReference)
passByReference - boolean true or false - pass-by-reference property of application.
true - application is pass-by-reference
false - application is pass-by-valuepublic boolean getPassByReference()
public boolean isPassByReferenceDefined()
public void addApplication(Application application)
application - public Set getArchivableDescriptors()
public void setRoleMapper(SecurityRoleMapper roleMapper)
roleMapper - public boolean hasRuntimeInformation()
public SecurityRoleMapper getRoleMapper()
getRoleMapper in interface RoleMappingContainerpublic void setRealm(String realm)
realm - public String getRealm()
public boolean isDirty()
public ClassLoader getClassLoader()
getClassLoader in class BundleDescriptorpublic void print(StringBuilder toStringBuilder)
print in class BundleDescriptorpublic void visit(DescriptorVisitor aVisitor)
visit in class DescriptoraVisitor - visitor to traverse the descriptorspublic String getModuleID()
getModuleID in class BundleDescriptorpublic boolean isApplication()
isApplication in class BundleDescriptorpublic ArchiveType getModuleType()
getModuleType in class BundleDescriptorpublic void addSecurityRoleMapping(SecurityRoleMapping roleMapping)
public List<SecurityRoleMapping> getSecurityRoleMappings()
public List<SecurityRoleAssignment> getWlRoleAssignments()
public void addWLRoleAssignments(SecurityRoleAssignment wlRoleAssignment)
public void setLoadedFromApplicationXml(boolean bool)
bool - public boolean isLoadedFromApplicationXml()
public void addResourceAdapter(String raName)
raName - resource-adapter namepublic Set<String> getResourceAdapters()
public Set<ApplicationParam> getApplicationParams()
public void addApplicationParam(ApplicationParam appParam)
appParam - public boolean getKeepState()
getKeepState in class BundleDescriptorpublic boolean getKeepStateResolved()
public void setKeepStateResolved(String keepStateResolved)
keepStateResolved - Copyright © 2019. All rights reserved.