Package org.wildfly.transaction.client
Class XAResourceRegistryProviderHolder
java.lang.Object
org.wildfly.transaction.client.XAResourceRegistryProviderHolder
A single point to take a currently configured provider that is capable to list all the in-doubt
XAResources from the all records maintained as XAResourceRegistry instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XAResourceRegistryProviderReturning instance of the currently configuredXAResourceRegistryProvider.static voidregister(XAResourceRegistryProvider xaResourceRegistryProvider) Registering theXAResourceRegistryProvider.
-
Constructor Details
-
XAResourceRegistryProviderHolder
public XAResourceRegistryProviderHolder()
-
-
Method Details
-
getInstance
Returning instance of the currently configuredXAResourceRegistryProvider.- Returns:
- xaresource registry provider instance which was
register(XAResourceRegistryProvider)ed beforehand manually in the code
-
register
Registering theXAResourceRegistryProvider. This give a way how to approach the in-doubtXAResources when theSubordinateXAResourceis not linked with theXAResourceRegistry.- Parameters:
xaResourceRegistryProvider-
-