public static class AbstractRegistry.DefaultNameResolution extends java.lang.Object implements NameResolution
| Constructor and Description |
|---|
DefaultNameResolution()
Creates a new default implementation for resolving service name and
component types.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType(java.lang.String instanceName)
Returns the name of the component type of the designated component
instance as used in configuration files.
|
java.lang.String |
getFormattedSignature(java.lang.Class<?>[] parameterTypes)
Helper method for getting a string describing the parameter types as method
signature for use in log messages and exceptions.
|
java.lang.String |
getHierarchicalInstanceName(java.lang.String componentType,
java.lang.String simpleName)
Returns a hierarchical instance name containing the component type as well
as the instance name.
|
java.lang.String |
getSimpleInstanceName(java.lang.String instanceName)
Returns the simple name of the designated component instance as used in
configuration files.
|
public DefaultNameResolution()
public java.lang.String getHierarchicalInstanceName(java.lang.String componentType,
java.lang.String simpleName)
NameResolution/ProcessManager/PM1.getHierarchicalInstanceName in interface NameResolutioncomponentType - The type of the component to create the hierarchical
name for.simpleName - The simple name of the component instance as defined in
the configuration.public java.lang.String getSimpleInstanceName(java.lang.String instanceName)
NameResolutiongetSimpleInstanceName in interface NameResolutioninstanceName - The hierarchical name of a component instance.public java.lang.String getFormattedSignature(java.lang.Class<?>[] parameterTypes)
NameResolutiongetFormattedSignature in interface NameResolutionparameterTypes - All the parameter types of a method as instances of
Class.public java.lang.String getComponentType(java.lang.String instanceName)
NameResolutiongetComponentType in interface NameResolutioninstanceName - The hierarchical name of a component instance.