Class ConnectionDefinitionImpl
- java.lang.Object
-
- org.jboss.jca.common.metadata.spec.ConnectionDefinitionImpl
-
- All Implemented Interfaces:
Serializable,Cloneable,CopyableMetaData,JCAMetadata,ConnectionDefinition,IdDecoratedMetadata,MergeableMetadata<ConnectionDefinition>
public class ConnectionDefinitionImpl extends Object implements ConnectionDefinition
- Author:
- Stefano Maestri
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionDefinitionImpl(XsdString managedconnectionfactoryClass, List<ConfigProperty> configProperty, XsdString connectionfactoryInterface, XsdString connectionfactoryImplClass, XsdString connectionInterface, XsdString connectionImplClass, String id)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyableMetaDatacopy()booleanequals(Object obj)voidforceConfigProperties(List<ConfigProperty> newContents)Force configProperties with new content.List<ConfigProperty>getConfigProperties()XsdStringgetConnectionFactoryImplClass()XsdStringgetConnectionFactoryInterface()XsdStringgetConnectionImplClass()XsdStringgetConnectionInterface()StringgetId()XsdStringgetManagedConnectionFactoryClass()inthashCode()ConnectionDefinitionmerge(MergeableMetadata<?> jmd)StringtoString()
-
-
-
Constructor Detail
-
ConnectionDefinitionImpl
public ConnectionDefinitionImpl(XsdString managedconnectionfactoryClass, List<ConfigProperty> configProperty, XsdString connectionfactoryInterface, XsdString connectionfactoryImplClass, XsdString connectionInterface, XsdString connectionImplClass, String id)
Constructor- Parameters:
managedconnectionfactoryClass- full qualified name of the classconfigProperty- List of configpropertiesconnectionfactoryInterface- full qualified name of the factory interfaceconnectionfactoryImplClass- full qualified name of the factory implementation classconnectionInterface- full qualified name of the connection interfaceconnectionImplClass- full qualified name of the connection implementation classid- XML ID
-
-
Method Detail
-
getManagedConnectionFactoryClass
public XsdString getManagedConnectionFactoryClass()
- Specified by:
getManagedConnectionFactoryClassin interfaceConnectionDefinition
-
getConfigProperties
public List<ConfigProperty> getConfigProperties()
- Specified by:
getConfigPropertiesin interfaceConnectionDefinition
-
forceConfigProperties
public void forceConfigProperties(List<ConfigProperty> newContents)
Force configProperties with new content. This method is thread safe- Parameters:
newContents- the list of new properties
-
getConnectionFactoryInterface
public XsdString getConnectionFactoryInterface()
- Specified by:
getConnectionFactoryInterfacein interfaceConnectionDefinition
-
getConnectionFactoryImplClass
public XsdString getConnectionFactoryImplClass()
- Specified by:
getConnectionFactoryImplClassin interfaceConnectionDefinition
-
getConnectionInterface
public XsdString getConnectionInterface()
- Specified by:
getConnectionInterfacein interfaceConnectionDefinition
-
getConnectionImplClass
public XsdString getConnectionImplClass()
- Specified by:
getConnectionImplClassin interfaceConnectionDefinition
-
getId
public String getId()
- Specified by:
getIdin interfaceIdDecoratedMetadata
-
merge
public ConnectionDefinition merge(MergeableMetadata<?> jmd) throws Exception
- Specified by:
mergein interfaceMergeableMetadata<ConnectionDefinition>- Throws:
Exception
-
copy
public CopyableMetaData copy()
- Specified by:
copyin interfaceCopyableMetaData
-
-