| Package | Description |
|---|---|
| de.aristaflow.adept2.base.registry |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractRegistry.InstantiationMode |
AbstractRegistry.InstanceInformation.instantiationMode
How many instances of the instance may exist (0, 1, many).
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractRegistry.InstantiationMode |
AbstractRegistry.getInstantiationMode(java.lang.String componentType,
java.lang.String simpleInstanceName,
Configuration registryConfiguration)
Returns the instantiation mode for the designated component instance as
specified in the corresponding configuration.
|
protected AbstractRegistry.InstantiationMode |
LocalServiceRegistry.getInstantiationMode(java.lang.String serviceType,
java.lang.String simpleName,
Configuration registryConfiguration)
Overridden to log non-singleton services.
|
static AbstractRegistry.InstantiationMode |
AbstractRegistry.InstantiationMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractRegistry.InstantiationMode[] |
AbstractRegistry.InstantiationMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected static ServiceInformation |
ServiceInformation.createExportedLocalService(java.lang.String serviceType,
AbstractRegistry.InstantiationMode instantiationMode,
java.lang.String implementationClass,
java.lang.String[] exportServiceInstances,
boolean publish)
Creates a new service information instance for an exported local service
with the designated attributes.
|
protected static ServiceInformation |
ServiceInformation.createNonExportedLocalService(java.lang.String serviceType,
AbstractRegistry.InstantiationMode instantiationMode,
java.lang.String implementationClass)
Creates a new service information instance for a non-exported local service
with the designated attributes.
|
protected <T> T |
AbstractRegistry.getArbitrarilyNamedObject(java.lang.String instName,
Configuration instConf,
java.lang.Class<T> componentType,
java.lang.ClassLoader classLoader,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] parameterValues,
AbstractRegistry.InstantiationMode instantiationMode)
Gets an arbitrary object for the designated component instance of the
requested component type.
|
protected <T> T |
AbstractRegistry.getObjectForInstanceName(java.lang.String instanceName,
java.lang.Class<T> componentType,
java.lang.Class<?>[] addParameterTypes,
java.lang.Object[] addParameterValues,
AbstractRegistry.InstantiationMode instantiationMode)
Gets an object for the designated instance name of the requested component
type using the designated instantiation mode from the corresponding
configuration.
|
| Constructor and Description |
|---|
InstanceInformation(java.lang.String componentType,
AbstractRegistry.InstantiationMode instantiationMode,
java.lang.String implementationClass)
Creates a new 3-tuple with the configured component instance properties
for an instance specified via its implementation class.
|