Class OutboundResourceAdapterImpl
- java.lang.Object
-
- org.jboss.jca.common.metadata.spec.OutboundResourceAdapterImpl
-
- All Implemented Interfaces:
Serializable,Cloneable,CopyableMetaData,JCAMetadata,IdDecoratedMetadata,MergeableMetadata<OutboundResourceAdapter>,OutboundResourceAdapter
public class OutboundResourceAdapterImpl extends Object implements OutboundResourceAdapter
An OutboundResourceAdapter implementation- Author:
- Stefano Maestri, Jesper Pedersen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutboundResourceAdapterImpl(List<ConnectionDefinition> connectionDefinition, TransactionSupportEnum transactionSupport, List<AuthenticationMechanism> authenticationMechanism, boolean reauthenticationSupport, String id, String transactionSupportId, String reauthenticationSupportId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyableMetaDatacopy()booleanequals(Object obj)voidforceConnectionDefinitions(List<ConnectionDefinition> newContent)Force connectionDefinition with new content.voidforceTransactionSupport(TransactionSupportEnum newTransactionSupport)Force transactionSupport to the new value This method is thread safeList<AuthenticationMechanism>getAuthenticationMechanisms()List<ConnectionDefinition>getConnectionDefinitions()StringgetId()booleangetReauthenticationSupport()StringgetReauthenticationSupportId()TransactionSupportEnumgetTransactionSupport()StringgetTransactionSupportId()inthashCode()OutboundResourceAdaptermerge(MergeableMetadata<?> jmd)StringtoString()booleanvalidationAsBoolean()A validate method.
-
-
-
Constructor Detail
-
OutboundResourceAdapterImpl
public OutboundResourceAdapterImpl(List<ConnectionDefinition> connectionDefinition, TransactionSupportEnum transactionSupport, List<AuthenticationMechanism> authenticationMechanism, boolean reauthenticationSupport, String id, String transactionSupportId, String reauthenticationSupportId)
Constructor- Parameters:
connectionDefinition- list of connection definitionstransactionSupport- transaction supported form this RA. Valid ones are defined by an enumauthenticationMechanism- list of authentication mechanism supportedreauthenticationSupport- not mandatary boolean valuetransactionSupportId- transaction support element IDreauthenticationSupportId- reauthentication support element IDid- XML ID
-
-
Method Detail
-
getConnectionDefinitions
public List<ConnectionDefinition> getConnectionDefinitions()
- Specified by:
getConnectionDefinitionsin interfaceOutboundResourceAdapter
-
forceConnectionDefinitions
public void forceConnectionDefinitions(List<ConnectionDefinition> newContent)
Force connectionDefinition with new content. This method is thread safe- Parameters:
newContent- the list of new properties
-
getTransactionSupport
public TransactionSupportEnum getTransactionSupport()
- Specified by:
getTransactionSupportin interfaceOutboundResourceAdapter
-
forceTransactionSupport
public void forceTransactionSupport(TransactionSupportEnum newTransactionSupport)
Force transactionSupport to the new value This method is thread safe- Parameters:
newTransactionSupport- the new value
-
getAuthenticationMechanisms
public List<AuthenticationMechanism> getAuthenticationMechanisms()
- Specified by:
getAuthenticationMechanismsin interfaceOutboundResourceAdapter
-
getReauthenticationSupport
public boolean getReauthenticationSupport()
- Specified by:
getReauthenticationSupportin interfaceOutboundResourceAdapter
-
getId
public String getId()
- Specified by:
getIdin interfaceIdDecoratedMetadata
-
getTransactionSupportId
public String getTransactionSupportId()
- Specified by:
getTransactionSupportIdin interfaceOutboundResourceAdapter
-
getReauthenticationSupportId
public String getReauthenticationSupportId()
- Specified by:
getReauthenticationSupportIdin interfaceOutboundResourceAdapter
-
validationAsBoolean
public boolean validationAsBoolean()
A validate method. Don't extending for the moment ValidatableMetadata- Specified by:
validationAsBooleanin interfaceOutboundResourceAdapter- Returns:
- true if Ra is valid, flase in the other cases
-
merge
public OutboundResourceAdapter merge(MergeableMetadata<?> jmd) throws Exception
- Specified by:
mergein interfaceMergeableMetadata<OutboundResourceAdapter>- Throws:
Exception
-
copy
public CopyableMetaData copy()
- Specified by:
copyin interfaceCopyableMetaData
-
-