|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Qi4j
Encapsulation of the Qi4j API.
Method Summary | ||
---|---|---|
|
dereference(T composite)
If a Modifier gets a reference to the Composite using @This, then that reference must be dereferenced using this method before handing it out for others to use. |
|
|
getConfigurationInstance(ServiceComposite serviceComposite,
UnitOfWork uow)
Finds the Configuration instance of a service. |
|
Class<?> |
getConfigurationType(Composite serviceComposite)
|
|
Module |
getModule(Composite composite)
Returns the Module where the Composite belongs. |
|
Module |
getModule(ServiceReference service)
Returns the Module where the service is located. |
|
Module |
getModule(UnitOfWork uow)
Returns the Module where the UnitOfWork belongs. |
|
|
getSuperComposite(Class<T> compositeClass)
Get the super Composite of the given Composite. |
Method Detail |
---|
<T> T dereference(T composite)
composite
- instance reference injected in Modified using @This
<S extends Composite,T extends S> Class<S> getSuperComposite(Class<T> compositeClass)
If one Composite type MyComposite is extended by CustomMyComposite interface, then the MyComposite is considered to be the super Composite of CustomMyComposite. A Composite may only extend one other Composite, but may extend any number of other interfaces which do not in turn extend Composite.
If there are multiple super composites, this method will only return the first one found.
compositeClass
- the Composite type whose super Composite should be returned
<T> T getConfigurationInstance(ServiceComposite serviceComposite, UnitOfWork uow) throws InstantiationException
This is used by ConfigurationMixin to figure out the configuration instance used by
a Service using Configuration
, and should not be
used directly by client code.
If the Configuration entity doesn't exist in the visible EntityStore, then a properties file with the name of the service identifier will be located on the classpath, and the values used to create the Configuration instance, which will then be saved to the EntityStore for future use. That means that the properties file is only used
serviceComposite
- the service instanceuow
- the UnitOfWork from which the configuration will be loaded
InstantiationException
- thrown if the configuration cannot be instantiatedClass<?> getConfigurationType(Composite serviceComposite)
Module getModule(UnitOfWork uow)
uow
- The UnitOfWork to be checked.
Module getModule(Composite composite)
composite
- The Composite to be checked.
Module getModule(ServiceReference service)
service
- The service to be checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |