|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleServiceLocator
Provide a simple abstraction for getting services by contract or type.
| Method Summary | ||
|---|---|---|
|
getByType(java.lang.Class<T> implType)
Gets the object of the given type. |
|
|
getByType(java.lang.String implType)
Gets the object of the given type. |
|
|
getComponent(java.lang.Class<T> contract,
java.lang.String name)
Loads a component that implements the given contract and has the given name. |
|
|
getComponent(java.lang.String fullQualifiedName,
java.lang.String name)
Analogous to the following: |
|
| Method Detail |
|---|
<T> T getComponent(java.lang.Class<T> contract,
java.lang.String name)
throws ComponentException
name - can be null, in which case it'll only match to the unnamed
component.
ComponentException
<T> T getComponent(java.lang.String fullQualifiedName,
java.lang.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 getByType(java.lang.Class<T> implType)
<T> T getByType(java.lang.String implType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||