|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface SimpleServiceLocator
Provide a simple abstraction for getting services by contract or type.
Method Summary | ||
---|---|---|
|
getInhabitantsByContract(String contractName)
Deprecated. |
|
|
getInhabitantsByContract(Type contract)
Deprecated. Gets all the inhabitants that has the given contract. |
|
|
getInhabitantsByType(Class<T> type)
Deprecated. Gets all the inhabitants that has the given type. |
|
|
getInhabitantsByType(String typeName)
Deprecated. |
|
|
getProvider(Type type,
String name)
Deprecated. 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> 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 |