Package org.wildfly.transaction.client
Class XAResourceRegistryProviderHolder
- java.lang.Object
-
- org.wildfly.transaction.client.XAResourceRegistryProviderHolder
-
public final class XAResourceRegistryProviderHolder extends Object
A single point to take a currently configured provider that is capable to list all the in-doubtXAResources from the all records maintained asXAResourceRegistryinstances.
-
-
Constructor Summary
Constructors Constructor Description XAResourceRegistryProviderHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XAResourceRegistryProvidergetInstance()Returning instance of the currently configuredXAResourceRegistryProvider.static voidregister(XAResourceRegistryProvider xaResourceRegistryProvider)Registering theXAResourceRegistryProvider.
-
-
-
Method Detail
-
getInstance
public static XAResourceRegistryProvider getInstance()
Returning instance of the currently configuredXAResourceRegistryProvider.- Returns:
- xaresource registry provider instance which was
register(XAResourceRegistryProvider)ed beforehand manually in the code
-
register
public static void register(XAResourceRegistryProvider xaResourceRegistryProvider)
Registering theXAResourceRegistryProvider. This give a way how to approach the in-doubtXAResources when theSubordinateXAResourceis not linked with theXAResourceRegistry.- Parameters:
xaResourceRegistryProvider-
-
-