|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface ContractLocator<T>
Provides a means to locate services in the HK2 services registry by contract.
ContractLocators are typically produced by calling one of theLocator
forContract() methods.
This interface provides a builder like pattern that can be used to
refine the criteria for the Providers
it will return.
Locator
,
Providers
Method Summary | |
---|---|
ContractLocator<T> |
annotatedWith(Class<? extends Annotation> annotation)
Deprecated. Qualify this ContractLocator to identify services have the given annotation. |
ContractLocator<T> |
in(Scope scope)
Deprecated. Qualify this ContractLocator to identify services that are scoped scope. |
ContractLocator<T> |
named(String name)
Deprecated. Qualify this ContractLocator to identify services that are named name. |
Methods inherited from interface org.glassfish.hk2.Providers |
---|
all, get, getByType, getProvider |
Method Detail |
---|
ContractLocator<T> named(String name)
name
- the name of the service
ContractLocator<T> in(Scope scope)
scope
- the scope of the service
ContractLocator<T> annotatedWith(Class<? extends Annotation> annotation)
annotation
- the annotation that the service must have
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |