com.sun.enterprise.deployment
Class WebFragmentDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.RootDeploymentDescriptor
                  extended by com.sun.enterprise.deployment.BundleDescriptor
                      extended by com.sun.enterprise.deployment.WebBundleDescriptor
                          extended by com.sun.enterprise.deployment.WebFragmentDescriptor
All Implemented Interfaces:
JndiNameEnvironment, Roles, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, WritableJndiNameEnvironment, java.io.Serializable

public class WebFragmentDescriptor
extends WebBundleDescriptor

I am an object that represents all the deployment information about a web fragment.

Author:
Shing Wai Chan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.WebBundleDescriptor
AFTER_SERVLET_CONTEXT_INITIALIZED_EVENT, conflictDataSourceDefinition, conflictEjbReference, conflictEntityManagerFactoryReference, conflictEntityManagerReference, conflictEnvironmentEntry, conflictJmsDestinationReference, conflictLoginConfig, conflictMessageDestinationReference, conflictResourceReference, conflictServiceReference
 
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
WebFragmentDescriptor()
          Constrct an empty web app [{0}].
 
Method Summary
protected  void combineDataSourceDefinitionDescriptors(JndiNameEnvironment env)
           
protected  void combineEjbReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineEntityManagerFactoryReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineEntityManagerReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineEnvironmentEntries(JndiNameEnvironment env)
           
protected  void combineJmsDestinationReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineLoginConfiguration(WebBundleDescriptor webBundleDescriptor)
           
protected  void combineMessageDestinationReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combinePostConstructDescriptors(WebBundleDescriptor webBundleDescriptor)
           
protected  void combinePreDestroyDescriptors(WebBundleDescriptor webBundleDescriptor)
           
protected  void combineResourceReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineSecurityConstraints(java.util.Set<SecurityConstraint> firstScSet, java.util.Set<SecurityConstraint> secondScSet)
           
protected  void combineServiceReferenceDescriptors(JndiNameEnvironment env)
           
protected  void combineServletFilterMappings(WebBundleDescriptor webBundleDescriptor)
           
protected  void combineServletFilters(WebBundleDescriptor webBundleDescriptor)
           
protected  WebComponentDescriptor combineWebComponentDescriptor(WebComponentDescriptor webComponentDescriptor)
          This method combines descriptor except urlPattern and add to current bundle descriptor if necessary.
 java.lang.String getJarName()
           
 OrderingDescriptor getOrderingDescriptor()
           
 void print(java.lang.StringBuffer toStringBuffer)
          Return a formatted version as a String.
 void setJarName(java.lang.String jarName)
           
 void setOrderingDescriptor(OrderingDescriptor ordering)
           
 
Methods inherited from class com.sun.enterprise.deployment.WebBundleDescriptor
_getEjbReference, _getEntityManagerFactoryReferenceByName, _getEntityManagerReferenceByName, _getEnvironmentPropertyByName, _getJmsDestinationReferenceByName, _getMessageDestinationReferenceByName, _getResourceReferenceByName, _getServiceReferenceByName, addAppListenerDescriptor, addAppListenerDescriptor, addContextParameter, addContextParameter, addDataSourceDefinitionDescriptor, addDefaultWebBundleDescriptor, addEjbReferenceDescriptor, addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentEntry, addEnvironmentProperty, addErrorPageDescriptor, addJmsDestinationReferenceDescriptor, addJndiNameEnvironment, addLocaleEncodingMappingListDescriptor, addMessageDestinationReferenceDescriptor, addMimeMapping, addMimeMapping, addOrderedLib, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceReferenceDescriptor, addSecurityConstraint, addSecurityConstraint, addSecurityRole, addSecurityRole, addServiceReferenceDescriptor, addServletFilter, addServletFilter, addServletFilterMapping, addServletFilterMapping, addWebBundleDescriptor, addWebComponentDescriptor, addWelcomeFile, findReferencedPUs, getAbsoluteOrderingDescriptor, getAppListenerDescriptors, getContextParameters, getContextParametersSet, getContextRoot, getDataSourceDefinitionDescriptor, getDataSourceDefinitionDescriptors, getDefaultSpecVersion, getDeploymentDescriptorDir, getEjbReference, getEjbReferenceByName, getEjbReferenceDescriptors, getEjbReferences, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentEntries, getEnvironmentEntrySet, getEnvironmentProperties, getEnvironmentPropertyByName, getErrorPageDescriptorBySignifier, getErrorPageDescriptors, getInjectableResourcesByClass, getInjectableResourcesByClass, getInjectionInfoByClass, getJarNameToWebFragmentNameMap, getJmsDestinationReferenceByName, getJmsDestinationReferenceDescriptors, getJspConfigDescriptor, getJspDescriptors, getLocaleEncodingMappingListDescriptor, getLoginConfiguration, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMimeMappings, getModuleType, getNamedDescriptors, getNamedReferencePairs, getOrderedLibs, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferences, getSecurityConstraints, getSecurityConstraintsForUrlPattern, getSecurityConstraintsSet, getSecurityRoleReferenceByName, getSecurityRoles, getServiceReferenceByName, getServiceReferenceDescriptors, getServletDescriptors, getServletFilterDescriptors, getServletFilterMappingDescriptors, getServletFilterMappings, getServletFilters, getSessionConfig, getSunDescriptor, getWebComponentByCanonicalName, getWebComponentByImplName, getWebComponentByName, getWebComponentDescriptors, getWelcomeFiles, getWelcomeFilesSet, hasExtensionProperty, hasServiceReferenceDescriptors, hasWebServiceClients, isDistributable, isEmpty, moveAppListenerDescriptor, moveServletFilterMapping, moveVectorItem, printCommon, putJarNameWebFragmentNamePair, removeAppListenerDescriptor, removeContextParameter, removeDataSourceDefinitionDescriptor, removeEjbReferenceDescriptor, removeEjbReferenceDescriptor, removeEnvironmentEntry, removeEnvironmentProperty, removeErrorPageDescriptor, removeJmsDestinationReferenceDescriptor, removeMessageDestinationReferenceDescriptor, removeMimeMapping, removeResourceReferenceDescriptor, removeSecurityConstraint, removeServiceReferenceDescriptor, removeServletFilter, removeServletFilterMapping, removeVectorItem, removeWebComponentDescriptor, removeWelcomeFile, setAbsoluteOrderingDescriptor, setAppListeners, setContextRoot, setDistributable, setExtensionProperty, setJspConfigDescriptor, setLocaleEncodingMappingListDescriptor, setLoginConfiguration, setLoginConfiguration, setMimeMappings, setSessionConfig, setSessionConfig, setSunDescriptor, setWelcomeFiles, visit, visit
 
Methods inherited from class com.sun.enterprise.deployment.BundleDescriptor
addEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRole, findDefaultPU, findReferencedPU, findReferencedPUsViaPCRefs, findReferencedPUsViaPURefs, findReferencedPUViaEMFRef, findReferencedPUViaEMRef, getApplication, getClassLoader, getCompatibility, getEntityManagerFactories, getEntityManagerFactory, getInjectableResources, getInjectionInfoByClass, getKeepState, getManagedBeanByBeanClass, getManagedBeans, getMessageDestinationByName, getMessageDestinations, getModuleID, getModuleName, getNamedDescriptorsFrom, getNamedReferencePairsFrom, getPostConstructDescriptorByClass, getPreDestroyDescriptorByClass, getRoles, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, hasWebServices, isApplication, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, removeRole, setApplication, setCompatibility, setKeepState, setPolicyModified
 
Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isExtensionDescriptor, isFullAttribute, isFullFlag, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, 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 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

WebFragmentDescriptor

public WebFragmentDescriptor()
Constrct an empty web app [{0}].

Method Detail

getJarName

public java.lang.String getJarName()

setJarName

public void setJarName(java.lang.String jarName)

getOrderingDescriptor

public OrderingDescriptor getOrderingDescriptor()

setOrderingDescriptor

public void setOrderingDescriptor(OrderingDescriptor ordering)

combineWebComponentDescriptor

protected WebComponentDescriptor combineWebComponentDescriptor(WebComponentDescriptor webComponentDescriptor)
Description copied from class: WebBundleDescriptor
This method combines descriptor except urlPattern and add to current bundle descriptor if necessary. It returns the web component descriptor in the current bundle descriptor.

Overrides:
combineWebComponentDescriptor in class WebBundleDescriptor
Parameters:
webComponentDescriptor - the new descriptor
Returns:
web component descriptor in current bundle

combineServletFilters

protected void combineServletFilters(WebBundleDescriptor webBundleDescriptor)
Overrides:
combineServletFilters in class WebBundleDescriptor

combineServletFilterMappings

protected void combineServletFilterMappings(WebBundleDescriptor webBundleDescriptor)
Overrides:
combineServletFilterMappings in class WebBundleDescriptor

combineSecurityConstraints

protected void combineSecurityConstraints(java.util.Set<SecurityConstraint> firstScSet,
                                          java.util.Set<SecurityConstraint> secondScSet)
Overrides:
combineSecurityConstraints in class WebBundleDescriptor

combineLoginConfiguration

protected void combineLoginConfiguration(WebBundleDescriptor webBundleDescriptor)
Overrides:
combineLoginConfiguration in class WebBundleDescriptor

combineEnvironmentEntries

protected void combineEnvironmentEntries(JndiNameEnvironment env)
Overrides:
combineEnvironmentEntries in class WebBundleDescriptor

combineEjbReferenceDescriptors

protected void combineEjbReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineEjbReferenceDescriptors in class WebBundleDescriptor

combineServiceReferenceDescriptors

protected void combineServiceReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineServiceReferenceDescriptors in class WebBundleDescriptor

combineResourceReferenceDescriptors

protected void combineResourceReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineResourceReferenceDescriptors in class WebBundleDescriptor

combineJmsDestinationReferenceDescriptors

protected void combineJmsDestinationReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineJmsDestinationReferenceDescriptors in class WebBundleDescriptor

combineMessageDestinationReferenceDescriptors

protected void combineMessageDestinationReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineMessageDestinationReferenceDescriptors in class WebBundleDescriptor

combineEntityManagerReferenceDescriptors

protected void combineEntityManagerReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineEntityManagerReferenceDescriptors in class WebBundleDescriptor

combineEntityManagerFactoryReferenceDescriptors

protected void combineEntityManagerFactoryReferenceDescriptors(JndiNameEnvironment env)
Overrides:
combineEntityManagerFactoryReferenceDescriptors in class WebBundleDescriptor

combinePostConstructDescriptors

protected void combinePostConstructDescriptors(WebBundleDescriptor webBundleDescriptor)
Overrides:
combinePostConstructDescriptors in class WebBundleDescriptor

combinePreDestroyDescriptors

protected void combinePreDestroyDescriptors(WebBundleDescriptor webBundleDescriptor)
Overrides:
combinePreDestroyDescriptors in class WebBundleDescriptor

combineDataSourceDefinitionDescriptors

protected void combineDataSourceDefinitionDescriptors(JndiNameEnvironment env)
Overrides:
combineDataSourceDefinitionDescriptors in class WebBundleDescriptor

print

public void print(java.lang.StringBuffer toStringBuffer)
Return a formatted version as a String.

Overrides:
print in class WebBundleDescriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.