org.apache.hivemind.annotations
Interface TypedRegistry

All Known Implementing Classes:
TypedRegistryImpl

public interface TypedRegistry

Specialized interface for the Registry access from annotated modules. Implements typed access to services and configurations by use of Generics.

Author:
Achim Huegen

Method Summary
 org.apache.hivemind.service.Autowiring getAutowiring()
          Returns a reference to the Autowiring service.
<T> T
getConfiguration(java.lang.Class<T> configurationType)
          Finds a configuration by its type.
<T> T
getConfiguration(java.lang.String configurationId, java.lang.Class<T> configurationType)
          Returns the specified configuration from the registry.
<T> T
getService(java.lang.Class<T> serviceInterface)
          Finds a service that implements the provided interface.
<T> T
getService(java.lang.String serviceId, java.lang.Class<T> serviceInterface)
          Returns a service from the registry.
 void shutdown()
           
 

Method Detail

getService

<T> T getService(java.lang.String serviceId,
                 java.lang.Class<T> serviceInterface)
Returns a service from the registry.

See Also:
Registry.getService(String, Class)

getService

<T> T getService(java.lang.Class<T> serviceInterface)
Finds a service that implements the provided interface. Exactly one such service may exist or an exception is thrown.

See Also:
Registry.getService(Class)

getConfiguration

<T> T getConfiguration(java.lang.String configurationId,
                       java.lang.Class<T> configurationType)
Returns the specified configuration from the registry.

See Also:
Registry.getConfiguration(String)

getConfiguration

<T> T getConfiguration(java.lang.Class<T> configurationType)
Finds a configuration by its type. Exactly one such configuration may exist or an exception is thrown.

See Also:
Registry.getConfiguration(String)

getAutowiring

org.apache.hivemind.service.Autowiring getAutowiring()
Returns a reference to the Autowiring service.


shutdown

void shutdown()
See Also:
Registry.shutdown()


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.