public abstract class RuntimeDelegate extends Object implements Managed
| Modifier and Type | Field and Description |
|---|---|
static String |
LDP4J_APPLICATION_SPI_CFG
Name of the configuration file where the
LDP4J_APPLICATION_SPI_PROPERTY property that
identifies the RuntimeDelegate implementation to be returned from
getInstance() can be defined. |
static String |
LDP4J_APPLICATION_SPI_PROPERTY
Name of the property identifying the
RuntimeDelegate implementation
to be returned from getInstance(). |
static String |
LDP4J_APPLICATION_SPI_RUNTIMEINSTANCE_FINDER |
| Modifier and Type | Method and Description |
|---|---|
abstract ConstraintReportRepository |
getConstraintReportRepository() |
abstract EndpointRepository |
getEndpointRepository() |
static RuntimeDelegate |
getInstance()
Obtain a
RuntimeInstance instance. |
abstract ModelFactory |
getModelFactory() |
abstract ResourceRepository |
getResourceRepository() |
abstract TransactionManager |
getTransactionManager() |
static void |
setInstance(RuntimeDelegate delegate)
Set the runtime delegate that will be used by Client Business Logic API
classes.
|
public static final String LDP4J_APPLICATION_SPI_RUNTIMEINSTANCE_FINDER
public static final String LDP4J_APPLICATION_SPI_CFG
LDP4J_APPLICATION_SPI_PROPERTY property that
identifies the RuntimeDelegate implementation to be returned from
getInstance() can be defined.public static final String LDP4J_APPLICATION_SPI_PROPERTY
RuntimeDelegate implementation
to be returned from getInstance().public static RuntimeDelegate getInstance()
RuntimeInstance instance. If an instance had not already
been created and set via setInstance(RuntimeDelegate), the first
invocation will create an instance which will then be cached for future
use.
The algorithm used to locate the RuntimeInstance subclass to use consists of the following steps:
META-INF/services/org.centeropenmiddleware.almistack.poc.clients.spi.RuntimeInstance exists, then
its first line, if present, is used as the UTF-8 encoded name of the
implementation class.java.util.Properties.load(InputStream) method and it contains
an entry whose key is org.centeropenmiddleware.almistack.poc.clients.spi.RuntimeInstance, then the
value of that entry is used as the name of the implementation class.org.centeropenmiddleware.almistack.poc.clients.spi.RuntimeInstance is defined, then its value is
used as the name of the implementation class.RuntimeInstance.public static void setInstance(RuntimeDelegate delegate)
getInstance() then
an implementation will be sought as described in getInstance().delegate - the RuntimeInstance runtime delegate instance.SecurityException - if there is a security manager and the permission
ReflectPermission("suppressAccessChecks") has not been
granted.public abstract ModelFactory getModelFactory()
public abstract TransactionManager getTransactionManager()
public abstract ResourceRepository getResourceRepository()
public abstract EndpointRepository getEndpointRepository()
public abstract ConstraintReportRepository getConstraintReportRepository()
Copyright (C) 2014-2016, Center for Open Middleware