Class EjbBundleDescriptorImpl
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.EjbBundleDescriptor
org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl
- All Implemented Interfaces:
com.sun.enterprise.deployment.JndiNameEnvironment,com.sun.enterprise.deployment.Roles,com.sun.enterprise.deployment.types.EjbReferenceContainer,com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer,com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer,com.sun.enterprise.deployment.types.ResourceReferenceContainer,com.sun.enterprise.deployment.types.ServiceReferenceContainer,com.sun.enterprise.deployment.WritableJndiNameEnvironment,Serializable
public final class EjbBundleDescriptorImpl
extends com.sun.enterprise.deployment.EjbBundleDescriptor
- See Also:
-
Field Summary
Fields inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor
classLoader, extensions, moduleDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.voidaddRelationship(RelationshipDescriptor relationship) Add a RelationshipDescriptor which describes a CMR field between a bean/DO/entityRef in this ejb-jar.voidaddSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping roleMapping) Adds the mapping.voidAdds the binding as the last in the internal list.booleanprotected DummyEjbDescriptorcreateDummyEjbDescriptor(String ejbName) com.sun.enterprise.deployment.util.ComponentVisitorcom.sun.enterprise.deployment.ResourceReferenceDescriptorgetEjbByName(String name) getEjbByName(String name, boolean isCreateDummy) getEjbs()getName()Returns a name or Ejb1 as a default.Get all relationships in this ejb-jar.List<com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping>org.glassfish.deployment.common.DescriptorVisitorbooleanbooleanbooleanbooleanvoidAdds the binding as the first in the internal list.voidprint(StringBuffer toStringBuffer) voidremoveRelationship(RelationshipDescriptor relationship) Remove aRelationshipDescriptor.voidsetCMPResourceReference(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) voidsetEjbClientJarUri(String ejbClientJarUri) voidClears the internal list and adds all bindings in the same order.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetRelationshipsDescription(String relationshipsDescription) voidSetup EJB Ids during deployment and shouldn't be called at runtimevoidvisit(org.glassfish.deployment.common.DescriptorVisitor aVisitor) visit the descriptor and all sub descriptors with a DOL visitor implementationMethods inherited from class com.sun.enterprise.deployment.EjbBundleDescriptor
addApplicationException, addEjb, addEjbReferenceDescriptor, addEnterpriseBeansProperty, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addInterceptor, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, findReferencedPUs, getApplicationExceptions, getDisableNonportableJndiNames, getEjbByClassName, getEjbBySEIName, getEjbReference, getEjbReferenceDescriptors, getEjbServiceReferenceDescriptors, getEnterpriseBeansProperties, getEnterpriseBeansProperty, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorByClassName, getInterceptors, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getModuleType, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors, hasEjbByName, hasWebServiceClients, isEmpty, removeEjb, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRole, removeServiceReferenceDescriptor, setDisableNonportableJndiNamesMethods inherited from class com.sun.enterprise.deployment.CommonResourceBundleDescriptor
addResourceDescriptor, getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptor, getResourceDescriptors, removeResourceDescriptorMethods 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, hasWebServices, isApplication, isDDWithNoAnnotationAllowed, isFullAttribute, isFullFlag, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, setApplication, setCompatibility, setFullAttribute, setFullFlag, setKeepState, setPolicyModified, visitMethods inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getSchemaLocation, getSpecVersion, isExtensionDescriptor, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersionMethods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUriMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.enterprise.deployment.JndiNameEnvironment
getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptorsMethods inherited from interface com.sun.enterprise.deployment.WritableJndiNameEnvironment
addResourceDescriptor, removeResourceDescriptor
-
Constructor Details
-
EjbBundleDescriptorImpl
public EjbBundleDescriptorImpl()
-
-
Method Details
-
getDefaultSpecVersion
- Specified by:
getDefaultSpecVersionin classorg.glassfish.deployment.common.RootDeploymentDescriptor
-
getName
Returns a name or Ejb1 as a default.- Overrides:
getNamein classorg.glassfish.deployment.common.RootDeploymentDescriptor
-
getEjbClientJarUri
- Returns:
- the empty String or the entry name of the ejb client JAR in my archive if I have one.
-
setEjbClientJarUri
-
getCMPResourceReference
public com.sun.enterprise.deployment.ResourceReferenceDescriptor getCMPResourceReference()- Returns:
- the Resource I use for CMP.
-
setCMPResourceReference
public void setCMPResourceReference(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) - Parameters:
resourceReference- the resource reference I use for CMP.
-
getInterceptorBindings
- Returns:
- list of
InterceptorBindingDescriptor
-
prependInterceptorBinding
Adds the binding as the first in the internal list.- Parameters:
binding-
-
appendInterceptorBinding
Adds the binding as the last in the internal list.- Parameters:
binding-
-
setInterceptorBindings
Clears the internal list and adds all bindings in the same order.- Parameters:
bindings-
-
getRelationshipsDescription
- Returns:
- description for relationships element.
-
setRelationshipsDescription
- Parameters:
relationshipsDescription- EJB2.0: set description for relationships element.
-
hasRelationships
public boolean hasRelationships()- Returns:
- true if there are some definitions of relationships
-
getRelationships
Get all relationships in this ejb-jar.- Returns:
- a Set of
RelationshipDescriptors.
-
addRelationship
Add a RelationshipDescriptor which describes a CMR field between a bean/DO/entityRef in this ejb-jar.- Parameters:
relationship-
-
removeRelationship
Remove aRelationshipDescriptor. Does nothing if it is not present.- Parameters:
relationship-
-
addSecurityRoleMapping
public void addSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping roleMapping) Adds the mapping.- Parameters:
roleMapping-SecurityRoleMapping
-
getSecurityRoleMappings
public List<com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping> getSecurityRoleMappings()- Returns:
- a list of
SecurityRoleMappings
-
setupDataStructuresForRuntime
public void setupDataStructuresForRuntime()Setup EJB Ids during deployment and shouldn't be called at runtime -
getDescriptorIds
- Returns:
- Collection of unique ID of EJBs within the same module
-
getEjbs
- Overrides:
getEjbsin classcom.sun.enterprise.deployment.EjbBundleDescriptor
-
getEjbByName
- Overrides:
getEjbByNamein classcom.sun.enterprise.deployment.EjbBundleDescriptor
-
getEjbByName
- Overrides:
getEjbByNamein classcom.sun.enterprise.deployment.EjbBundleDescriptor
-
createDummyEjbDescriptor
- Specified by:
createDummyEjbDescriptorin classcom.sun.enterprise.deployment.EjbBundleDescriptor
-
containsCMPEntity
public boolean containsCMPEntity()- Returns:
- true if this bundle descriptor contains at least one CMP EntityBean
-
hasAssemblyInformation
public boolean hasAssemblyInformation()- Returns:
- true if I have roles, permissioned roles or container transactions.
-
hasContainerTransactions
public boolean hasContainerTransactions()- Returns:
- true if any of my ejb's methods have been assigned transaction attributes.
-
hasPermissionedRoles
public boolean hasPermissionedRoles()- Returns:
- true if I have Roles to which method permissions have been assigned.
-
visit
public void visit(org.glassfish.deployment.common.DescriptorVisitor aVisitor) visit the descriptor and all sub descriptors with a DOL visitor implementation- Overrides:
visitin classorg.glassfish.deployment.common.Descriptor- Parameters:
aVisitor- a visitor to traverse the descriptors
-
getTracerVisitor
public org.glassfish.deployment.common.DescriptorVisitor getTracerVisitor()- Overrides:
getTracerVisitorin classorg.glassfish.deployment.common.RootDeploymentDescriptor
-
getBundleVisitor
public com.sun.enterprise.deployment.util.ComponentVisitor getBundleVisitor()- Overrides:
getBundleVisitorin classcom.sun.enterprise.deployment.EjbBundleDescriptor- Returns:
- new
EjbBundleValidator
-
setPersistenceManagerInUse
@Deprecated(forRemoval=true, since="3.1") public void setPersistenceManagerInUse(PersistenceManagerInUse inuse) Deprecated, for removal: This API element is subject to removal in a future version. -
addPersistenceManager
@Deprecated(forRemoval=true, since="3.1") public void addPersistenceManager(IASPersistenceManagerDescriptor pmDesc) Deprecated, for removal: This API element is subject to removal in a future version. -
print
- Overrides:
printin classcom.sun.enterprise.deployment.BundleDescriptor
-