|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.deprecated.internal.BaseServiceLocatorImpl
@Deprecated public class BaseServiceLocatorImpl
This will be added in GlassFish to help keep the porting of new HK2 down to a reasonable size
Constructor Summary | |
---|---|
BaseServiceLocatorImpl()
Deprecated. |
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: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseServiceLocatorImpl()
Method Detail |
---|
public <T> T getComponent(Class<T> contract, String name) throws ComponentException
BaseServiceLocator
getComponent
in interface BaseServiceLocator
name
- can be null, in which case it'll only match to the unnamed
component.
ComponentException
public <T> T getComponent(String fullQualifiedName, String name)
BaseServiceLocator
getComponent(contractClass.getName(), name);
getComponent
in interface BaseServiceLocator
fullQualifiedName
- the contract class namename
- can be null, in which case it'll only match to the unnamed
component.
public <T> T getComponent(Class<T> clazz) throws ComponentException
getComponent
in interface BaseServiceLocator
ComponentException
public <T> T getByType(Class<T> implType)
BaseServiceLocator
getByType
in interface BaseServiceLocator
public <T> T getByType(String implType)
BaseServiceLocator
getByType
in interface BaseServiceLocator
public <T> T getByContract(Class<T> contractType)
BaseServiceLocator
getByContract
in interface BaseServiceLocator
public <T> T getByContract(String contractType)
getByContract
in interface BaseServiceLocator
public <T> Collection<T> getAllByContract(Class<T> contractType)
BaseServiceLocator
Contract
.
This is an example of heterogeneous type-safe container.
getAllByContract
in interface BaseServiceLocator
public <T> Collection<T> getAllByContract(String contractType)
getAllByContract
in interface BaseServiceLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |