Class TransactionSettingRegistry
- java.lang.Object
-
- org.eclipse.rdf4j.common.lang.service.ServiceRegistry<java.lang.String,TransactionSettingFactory>
-
- org.eclipse.rdf4j.common.transaction.TransactionSettingRegistry
-
public class TransactionSettingRegistry extends ServiceRegistry<java.lang.String,TransactionSettingFactory>
AServiceRegistryfor creating/retrievingTransactionSettings in a transparent way.- Since:
- 3.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTransactionSettingRegistry.TransactionSettingRegistryHolderInternal helper class to avoid continuous synchronized checking.
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.common.lang.service.ServiceRegistry
logger, services
-
-
Constructor Summary
Constructors Modifier Constructor Description privateTransactionSettingRegistry()private constructor: singleton
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionSettingRegistrygetInstance()Gets the TransactionSettingRegistry singleton.protected java.lang.StringgetKey(TransactionSettingFactory factory)Gets the key for the specified service.
-
-
-
Method Detail
-
getInstance
public static TransactionSettingRegistry getInstance()
Gets the TransactionSettingRegistry singleton.- Returns:
- The registry singleton.
-
getKey
protected java.lang.String getKey(TransactionSettingFactory factory)
Description copied from class:ServiceRegistryGets the key for the specified service.- Specified by:
getKeyin classServiceRegistry<java.lang.String,TransactionSettingFactory>- Parameters:
factory- The service to get the key for.- Returns:
- The key for the specified service.
-
-