|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.annotations.AbstractAnnotatedModule
public class AbstractAnnotatedModule
Ancestor for annotated module classes. Provides convenience methods
for the access to TypedRegistry
and Autowiring
.
Constructor Summary | |
---|---|
AbstractAnnotatedModule()
|
Method Summary | ||
---|---|---|
protected
|
autowireProperties(T target)
Autowires any object by use of the Autowiring service. |
|
protected
|
configuration(java.lang.Class<T> configurationType)
Finds a configuration by its type. |
|
protected
|
configuration(java.lang.String configurationId,
java.lang.Class<T> configurationType)
Returns the specified configuration from the registry. |
|
protected org.apache.hivemind.service.Autowiring |
getAutowiring()
|
|
TypedRegistry |
getRegistry()
|
|
protected
|
service(java.lang.Class<T> serviceInterface)
Finds a service that implements the provided interface. |
|
protected
|
service(java.lang.String serviceId,
java.lang.Class<T> serviceInterface)
Returns a service from the registry. |
|
void |
setRegistry(TypedRegistry typedRegistry)
This setter is used to inject the registry reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAnnotatedModule()
Method Detail |
---|
public TypedRegistry getRegistry()
public void setRegistry(TypedRegistry typedRegistry)
typedRegistry
- the registryprotected org.apache.hivemind.service.Autowiring getAutowiring()
Autowiring
service.protected <T> T autowireProperties(T target)
Autowiring
service.
target
- the object to wire
protected <T> T service(java.lang.String serviceId, java.lang.Class<T> serviceInterface)
Registry.getService(String, Class)
protected <T> T service(java.lang.Class<T> serviceInterface)
Registry.getService(Class)
protected <T> T configuration(java.lang.String configurationId, java.lang.Class<T> configurationType)
Registry.getConfiguration(String)
protected <T> T configuration(java.lang.Class<T> configurationType)
Registry.getConfiguration(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |