|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.annotations.internal.TypedRegistryImpl
public class TypedRegistryImpl
Implementation of TypedRegistry
.
Wraps an instance of RegistryInfrastructure
to provide registry access.
Constructor Summary | |
---|---|
TypedRegistryImpl(org.apache.hivemind.internal.Module callingModule,
org.apache.hivemind.internal.RegistryInfrastructure delegate)
|
Method Summary | ||
---|---|---|
org.apache.hivemind.service.Autowiring |
getAutowiring()
Returns a reference to the Autowiring service. |
|
|
getConfiguration(java.lang.Class<T> configurationType)
Finds a configuration by its type. |
|
|
getConfiguration(java.lang.String configurationId,
java.lang.Class<T> configurationType)
Returns the specified configuration from the registry. |
|
|
getService(java.lang.Class<T> serviceInterface)
Finds a service that implements the provided interface. |
|
|
getService(java.lang.String serviceId,
java.lang.Class<T> serviceInterface)
Returns a service from the registry. |
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypedRegistryImpl(org.apache.hivemind.internal.Module callingModule, org.apache.hivemind.internal.RegistryInfrastructure delegate)
callingModule
- the module that gets access registry access by this instance.
Used for visibility checks when services and configurations are retrieved.
Can be null, in this case only public extension points are visible.delegate
- Method Detail |
---|
public <T> T getConfiguration(java.lang.String configurationId, java.lang.Class<T> configurationType)
TypedRegistry
getConfiguration
in interface TypedRegistry
TypedRegistry.getConfiguration(java.lang.String, java.lang.Class)
public <T> T getConfiguration(java.lang.Class<T> configurationType)
TypedRegistry
getConfiguration
in interface TypedRegistry
TypedRegistry.getConfiguration(java.lang.Class)
public <T> T getService(java.lang.String serviceId, java.lang.Class<T> serviceInterface)
TypedRegistry
getService
in interface TypedRegistry
TypedRegistry.getService(java.lang.String, java.lang.Class)
public <T> T getService(java.lang.Class<T> serviceInterface)
TypedRegistry
getService
in interface TypedRegistry
TypedRegistry.getService(java.lang.Class)
public org.apache.hivemind.service.Autowiring getAutowiring()
TypedRegistry
Autowiring
service.
getAutowiring
in interface TypedRegistry
TypedRegistry.getAutowiring()
public void shutdown()
shutdown
in interface TypedRegistry
TypedRegistry.shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |