com.sun.enterprise.deployment
Class ConnectorDescriptor

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.ConnectorDescriptor
All Implemented Interfaces:
Roles, java.io.Serializable

public class ConnectorDescriptor
extends BundleDescriptor

Deployment Information for connector

Author:
Tony Ng, Qingqing Ouyang
See Also:
Serialized Form

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
ConnectorDescriptor()
           
 
Method Summary
 void addAdminObject(AdminObject admin)
          set admin object
 boolean addAuthMechanism(AuthMechanism mech)
          Deprecated.  
 boolean addAuthMechanism(int mech)
          Deprecated.  
 void addConfigProperty(ConnectorConfigProperty configProperty)
          add a configProperty to the set
 void addConfigPropertyAnnotation(java.lang.String className, AnnotationInfo info)
           
 void addConfigPropertyProcessedClass(java.lang.String className)
           
 void addConnectorAnnotation(AnnotationInfo c)
           
 void addDefaultResourceName(java.lang.String resourceName)
          add a default resource to list of default resource names
 void addRequiredWorkContext(java.lang.String workContextClass)
           
 void addSecurityPermission(SecurityPermission permission)
          Add a SecurityPermission object to the set
 AdminObject getAdminObject(java.lang.String adminObjectInterface, java.lang.String adminObjectClass)
           
 java.util.Set getAdminObjects()
           
 java.util.List<AdminObject> getAdminObjectsByType(java.lang.String type)
           
 java.util.Map<java.lang.String,java.util.Set<AnnotationInfo>> getAllConfigPropertyAnnotations()
           
 java.util.Set getAuthMechanisms()
          Deprecated.  
 java.util.Set getConfigProperties()
          Set of ConnectorConfigProperty
 java.util.Collection<AnnotationInfo> getConfigPropertyAnnotations(java.lang.String className)
           
 java.util.Set<java.lang.String> getConfigPropertyProcessedClasses()
           
 ConnectionDefDescriptor getConnectionDefinitionByCFType(java.lang.String type)
           
 ConnectionDefDescriptor getConnectionDefinitionByCFType(java.lang.String type, boolean useDefault)
           
 java.lang.String getConnectionFactoryImpl()
          Deprecated.  
 java.lang.String getConnectionFactoryInterface()
          Deprecated.  
 java.lang.String getConnectionImpl()
          Deprecated.  
 java.lang.String getConnectionInterface()
          Deprecated.  
 java.util.Set<AnnotationInfo> getConnectorAnnotations()
           
 java.lang.String getConnectorDescription()
          get the connector description
 java.util.Collection<java.lang.String> getDefaultResourcesNames()
          names of default resources created for this resource-adapter computed at runtime (during RAR start) Used while detecting RARs referred by deployed applications
 java.lang.String getDefaultSpecVersion()
           
 java.lang.String getDeployName()
          return name used for deployment
 java.lang.String getEisType()
          get eisType
 boolean getInBoundDefined()
           
 InboundResourceAdapter getInboundResourceAdapter()
           
 LicenseDescriptor getLicenseDescriptor()
           
 java.lang.String getManagedConnectionFactoryImpl()
          Deprecated.  
 XModuleType getModuleType()
           
 int getNumOfSupportedCFs()
           
 boolean getOutBoundDefined()
           
 OutboundResourceAdapter getOutboundResourceAdapter()
           
 java.lang.String getReauthenticationSupport()
          Deprecated.  
 java.util.Set getRequiredWorkContexts()
           
 java.lang.String getResourceAdapterClass()
           
 java.lang.String getResourceAdapterVersion()
          get value for resourceadapter version (1.5 schema
 java.util.Set getSecurityPermissions()
          Set of SecurityPermission objects
 java.util.Set getServiceReferenceDescriptors()
           
 SunConnector getSunDescriptor()
          This returns the extra ejb sun specific info not in the RI DID.
 MessageListener getSupportedMessageListener(java.lang.String type)
           
 int getTransactionSupport()
          Deprecated.  
 java.lang.String getTransSupport()
          Deprecated.  
 boolean getValidConnectorAnnotationProcessed()
           
 java.lang.String getVendorName()
          get value for vendorName
 java.lang.String getVersion()
          get value for version
 boolean hasAdminObjects()
           
 boolean isEmpty()
          Return true if this root deployment descriptor does not describe anything
 boolean isMessageListenerSupported(java.lang.String type)
          Deprecated.  
 boolean isSpecVersionSet()
          END Deployment Consolidation to Suppport Multiple Deployment API Clients
 void print(java.lang.StringBuffer toStringBuffer)
          A formatted string representing my state.
 void removeAdminObject(AdminObject admin)
           
 boolean removeAuthMechanism(AuthMechanism mech)
          Deprecated.  
 boolean removeAuthMechanism(int mech)
          Deprecated.  
 void removeConfigProperty(ConnectorConfigProperty configProperty)
          remove a configProperty from the set
 void removeRequiredWorkContext(java.lang.String workContextClass)
           
 void removeSecurityPermission(SecurityPermission permission)
          Remove a SecurityPermission object to the set
 void setConnectionFactoryImpl(java.lang.String connectionFactoryImpl)
          Deprecated.  
 void setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)
          Deprecated.  
 void setConnectionImpl(java.lang.String connectionImpl)
          Deprecated.  
 void setConnectionInterface(java.lang.String connectionInterface)
          Deprecated.  
 void setConnectorDescription(java.lang.String description)
          set the connector description
 void setEisType(java.lang.String eisType)
          set eisType
 void setInboundResourceAdapter(InboundResourceAdapter inboundRA)
           
 void setLicenseDescriptor(LicenseDescriptor licenseDescriptor)
           
 void setManagedConnectionFactoryImpl(java.lang.String managedConnectionFactoryImpl)
          Deprecated.  
 void setOutboundResourceAdapter(OutboundResourceAdapter outboundRA)
           
 void setReauthenticationSupport(boolean reauthenticationSupport)
          Deprecated.  
 void setReauthenticationSupport(java.lang.String reauthSupport)
          Deprecated.  
 void setResourceAdapterClass(java.lang.String raClass)
           
 void setResourceAdapterVersion(java.lang.String resourceAdapterVersion)
          set value for resourceadater version (1.5 schema)
 void setSunDescriptor(SunConnector connector)
          This sets the extra connector sun specific info not in the RI DID.
 void setTransactionSupport(int transactionSupport)
          Deprecated.  
 void setTransactionSupport(java.lang.String support)
          Deprecated.  
 void setValidConnectorAnnotationProcessed(boolean processed)
           
 void setVendorName(java.lang.String vendorName)
          set value for vendorName
 void setVersion(java.lang.String version)
          set value for version
 boolean supportsReauthentication()
          Deprecated.  
 void visit(ConnectorVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 void visit(DescriptorVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 
Methods inherited from class com.sun.enterprise.deployment.BundleDescriptor
addEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRole, findDefaultPU, findReferencedPU, findReferencedPUs, findReferencedPUsViaPCRefs, findReferencedPUsViaPURefs, findReferencedPUViaEMFRef, findReferencedPUViaEMRef, getApplication, getClassLoader, getCompatibility, getDeploymentDescriptorDir, getEntityManagerFactories, getEntityManagerFactory, getInjectableResources, getInjectableResourcesByClass, getInjectionInfoByClass, getKeepState, getManagedBeanByBeanClass, getManagedBeans, getMessageDestinationByName, getMessageDestinations, getModuleID, getModuleName, getNamedDescriptorsFrom, getNamedReferencePairsFrom, getPostConstructDescriptorByClass, getPreDestroyDescriptorByClass, getRoles, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, hasWebServiceClients, 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

ConnectorDescriptor

public ConnectorDescriptor()
Method Detail

getRequiredWorkContexts

public java.util.Set getRequiredWorkContexts()

addRequiredWorkContext

public void addRequiredWorkContext(java.lang.String workContextClass)

removeRequiredWorkContext

public void removeRequiredWorkContext(java.lang.String workContextClass)

getDefaultSpecVersion

public java.lang.String getDefaultSpecVersion()
Specified by:
getDefaultSpecVersion in class RootDeploymentDescriptor
Returns:
the default version of the deployment descriptor loaded by this descriptor

getConnectionFactoryInterface

public java.lang.String getConnectionFactoryInterface()
Deprecated. 


setConnectionFactoryInterface

public void setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)
Deprecated. 


getConnectionFactoryImpl

public java.lang.String getConnectionFactoryImpl()
Deprecated. 


setConnectionFactoryImpl

public void setConnectionFactoryImpl(java.lang.String connectionFactoryImpl)
Deprecated. 


getConnectionInterface

public java.lang.String getConnectionInterface()
Deprecated. 


setConnectionInterface

public void setConnectionInterface(java.lang.String connectionInterface)
Deprecated. 


getConnectionImpl

public java.lang.String getConnectionImpl()
Deprecated. 


setConnectionImpl

public void setConnectionImpl(java.lang.String connectionImpl)
Deprecated. 


getManagedConnectionFactoryImpl

public java.lang.String getManagedConnectionFactoryImpl()
Deprecated. 


setManagedConnectionFactoryImpl

public void setManagedConnectionFactoryImpl(java.lang.String managedConnectionFactoryImpl)
Deprecated. 


supportsReauthentication

public boolean supportsReauthentication()
Deprecated. 


getReauthenticationSupport

public java.lang.String getReauthenticationSupport()
Deprecated. 


setReauthenticationSupport

public void setReauthenticationSupport(boolean reauthenticationSupport)
Deprecated. 


setReauthenticationSupport

public void setReauthenticationSupport(java.lang.String reauthSupport)
Deprecated. 


getTransSupport

public java.lang.String getTransSupport()
Deprecated. 


getTransactionSupport

public int getTransactionSupport()
Deprecated. 


setTransactionSupport

public void setTransactionSupport(int transactionSupport)
Deprecated. 


setTransactionSupport

public void setTransactionSupport(java.lang.String support)
Deprecated. 


getAuthMechanisms

public java.util.Set getAuthMechanisms()
Deprecated. 


getServiceReferenceDescriptors

public java.util.Set getServiceReferenceDescriptors()
Specified by:
getServiceReferenceDescriptors in class BundleDescriptor
Returns:
a set of service-ref from this bundle or null if none

getSecurityPermissions

public java.util.Set getSecurityPermissions()
Set of SecurityPermission objects


addAuthMechanism

public boolean addAuthMechanism(AuthMechanism mech)
Deprecated. 


removeAuthMechanism

public boolean removeAuthMechanism(AuthMechanism mech)
Deprecated. 


addAuthMechanism

public boolean addAuthMechanism(int mech)
Deprecated. 


removeAuthMechanism

public boolean removeAuthMechanism(int mech)
Deprecated. 


addSecurityPermission

public void addSecurityPermission(SecurityPermission permission)
Add a SecurityPermission object to the set


removeSecurityPermission

public void removeSecurityPermission(SecurityPermission permission)
Remove a SecurityPermission object to the set


getResourceAdapterClass

public java.lang.String getResourceAdapterClass()

setResourceAdapterClass

public void setResourceAdapterClass(java.lang.String raClass)

getConfigProperties

public java.util.Set getConfigProperties()
Set of ConnectorConfigProperty


addConfigProperty

public void addConfigProperty(ConnectorConfigProperty configProperty)
add a configProperty to the set


removeConfigProperty

public void removeConfigProperty(ConnectorConfigProperty configProperty)
remove a configProperty from the set


getLicenseDescriptor

public LicenseDescriptor getLicenseDescriptor()

setLicenseDescriptor

public void setLicenseDescriptor(LicenseDescriptor licenseDescriptor)

getOutboundResourceAdapter

public OutboundResourceAdapter getOutboundResourceAdapter()

setOutboundResourceAdapter

public void setOutboundResourceAdapter(OutboundResourceAdapter outboundRA)

getInboundResourceAdapter

public InboundResourceAdapter getInboundResourceAdapter()

setInboundResourceAdapter

public void setInboundResourceAdapter(InboundResourceAdapter inboundRA)

getAdminObjects

public java.util.Set getAdminObjects()
Returns:
admin objects

addAdminObject

public void addAdminObject(AdminObject admin)
set admin object


removeAdminObject

public void removeAdminObject(AdminObject admin)

hasAdminObjects

public boolean hasAdminObjects()

getOutBoundDefined

public boolean getOutBoundDefined()

getInBoundDefined

public boolean getInBoundDefined()

getConnectorDescription

public java.lang.String getConnectorDescription()
get the connector description


setConnectorDescription

public void setConnectorDescription(java.lang.String description)
set the connector description


getVendorName

public java.lang.String getVendorName()
get value for vendorName


setVendorName

public void setVendorName(java.lang.String vendorName)
set value for vendorName


getEisType

public java.lang.String getEisType()
get eisType


setEisType

public void setEisType(java.lang.String eisType)
set eisType


getVersion

public java.lang.String getVersion()
get value for version


setVersion

public void setVersion(java.lang.String version)
set value for version


getResourceAdapterVersion

public java.lang.String getResourceAdapterVersion()
get value for resourceadapter version (1.5 schema


setResourceAdapterVersion

public void setResourceAdapterVersion(java.lang.String resourceAdapterVersion)
set value for resourceadater version (1.5 schema)


getDeployName

public java.lang.String getDeployName()
return name used for deployment


visit

public void visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Overrides:
visit in class Descriptor
Parameters:
aVisitor - visitor to traverse the descriptors

visit

public void visit(ConnectorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Parameters:
aVisitor - visitor to traverse the descriptors

getConnectionDefinitionByCFType

public ConnectionDefDescriptor getConnectionDefinitionByCFType(java.lang.String type)

getConnectionDefinitionByCFType

public ConnectionDefDescriptor getConnectionDefinitionByCFType(java.lang.String type,
                                                               boolean useDefault)

getNumOfSupportedCFs

public int getNumOfSupportedCFs()

getAdminObject

public AdminObject getAdminObject(java.lang.String adminObjectInterface,
                                  java.lang.String adminObjectClass)

getAdminObjectsByType

public java.util.List<AdminObject> getAdminObjectsByType(java.lang.String type)

print

public void print(java.lang.StringBuffer toStringBuffer)
A formatted string representing my state.

Overrides:
print in class BundleDescriptor

getModuleType

public XModuleType getModuleType()
Specified by:
getModuleType in class BundleDescriptor
Returns:
the module type for this bundle descriptor

getSupportedMessageListener

public MessageListener getSupportedMessageListener(java.lang.String type)
Parameters:
type - message listener type

isMessageListenerSupported

public boolean isMessageListenerSupported(java.lang.String type)
Deprecated. 


isEmpty

public boolean isEmpty()
Description copied from class: RootDeploymentDescriptor
Return true if this root deployment descriptor does not describe anything

Specified by:
isEmpty in class RootDeploymentDescriptor
Returns:
true if this root descriptor is empty

getSunDescriptor

public SunConnector getSunDescriptor()
This returns the extra ejb sun specific info not in the RI DID.

Returns:
object representation of connector deployment descriptor

setSunDescriptor

public void setSunDescriptor(SunConnector connector)
This sets the extra connector sun specific info not in the RI DID.

Parameters:
connector - SunConnector object representation of connector deployment descriptor

isSpecVersionSet

public boolean isSpecVersionSet()
END Deployment Consolidation to Suppport Multiple Deployment API Clients


addConnectorAnnotation

public void addConnectorAnnotation(AnnotationInfo c)

getConnectorAnnotations

public java.util.Set<AnnotationInfo> getConnectorAnnotations()

setValidConnectorAnnotationProcessed

public void setValidConnectorAnnotationProcessed(boolean processed)

getValidConnectorAnnotationProcessed

public boolean getValidConnectorAnnotationProcessed()

addConfigPropertyAnnotation

public void addConfigPropertyAnnotation(java.lang.String className,
                                        AnnotationInfo info)

getConfigPropertyAnnotations

public java.util.Collection<AnnotationInfo> getConfigPropertyAnnotations(java.lang.String className)

getAllConfigPropertyAnnotations

public java.util.Map<java.lang.String,java.util.Set<AnnotationInfo>> getAllConfigPropertyAnnotations()

getConfigPropertyProcessedClasses

public java.util.Set<java.lang.String> getConfigPropertyProcessedClasses()

addConfigPropertyProcessedClass

public void addConfigPropertyProcessedClass(java.lang.String className)

getDefaultResourcesNames

public java.util.Collection<java.lang.String> getDefaultResourcesNames()
names of default resources created for this resource-adapter computed at runtime (during RAR start) Used while detecting RARs referred by deployed applications

Returns:
default resources' names

addDefaultResourceName

public void addDefaultResourceName(java.lang.String resourceName)
add a default resource to list of default resource names

Parameters:
resourceName - resource-name


Copyright © 2012 GlassFish Community. All Rights Reserved.