|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated @Contract public interface BaseServiceLocator
Provide a simple abstraction for getting services by contract or type.
Method Summary | ||
---|---|---|
|
getAllByContract(Class<T> contractType)
Deprecated. Gets all the inhabitants registered under the given Contract . |
|
|
getAllByContract(String contractType)
Deprecated. |
|
|
getByContract(Class<T> contractType)
Deprecated. Gets the object that has the given contract. |
|
|
getByContract(String contractType)
Deprecated. |
|
|
getByType(Class<T> implType)
Deprecated. Gets the object of the given type. |
|
|
getByType(String implType)
Deprecated. Gets the object of the given type. |
|
|
getComponent(Class<T> clazz)
Deprecated. |
|
|
getComponent(Class<T> contract,
String name)
Deprecated. Loads a component that implements the given contract and has the given name. |
|
|
getComponent(String fullQualifiedName,
String name)
Deprecated. Analogous to the following: |
Method Detail |
---|
<T> T getComponent(Class<T> contract, String name) throws ComponentException
name
- can be null, in which case it'll only match to the unnamed
component.
ComponentException
<T> T getComponent(String fullQualifiedName, String name)
getComponent(contractClass.getName(), name);
fullQualifiedName
- the contract class namename
- can be null, in which case it'll only match to the unnamed
component.
<T> T getComponent(Class<T> clazz) throws ComponentException
ComponentException
<T> T getByType(Class<T> implType)
<T> T getByType(String implType)
<T> T getByContract(Class<T> contractType)
<T> T getByContract(String contractType)
<T> Collection<T> getAllByContract(Class<T> contractType)
Contract
.
This is an example of heterogeneous type-safe container.
<T> Collection<T> getAllByContract(String contractType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |