|
||||||||||
| 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 | ||
|---|---|---|
|
getInhabitantsByContract(String contractName)
|
|
|
getInhabitantsByContract(Type contract)
Gets all the inhabitants that has the given contract. |
|
|
getInhabitantsByType(Class<T> type)
Gets all the inhabitants that has the given type. |
|
|
getInhabitantsByType(String typeName)
|
|
|
getProvider(String fqcn,
String name)
|
|
|
getProvider(Type type,
String name)
Gets an inhabitant from its type and optionally name |
|
| Methods inherited from interface org.jvnet.hk2.component.BaseServiceLocator |
|---|
getAllByContract, getAllByContract, getByContract, getByContract, getByType, getByType, getComponent, getComponent, getComponent |
| Method Detail |
|---|
<T> Inhabitant<T> getProvider(Type type,
String name)
type - requested inhabitant typename - optional name
<T> Inhabitant<T> getProvider(String fqcn,
String name)
<T> Collection<Inhabitant<T>> getInhabitantsByContract(Type contract)
throws ComponentException
ComponentException
<T> Collection<Inhabitant<T>> getInhabitantsByContract(String contractName)
throws ComponentException
ComponentException
<T> Collection<Inhabitant<T>> getInhabitantsByType(Class<T> type)
throws ComponentException
ComponentException
<T> Collection<Inhabitant<T>> getInhabitantsByType(String typeName)
throws ComponentException
ComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||