|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Qualify this ContractLocator to identify services have the given annotations. |
ContractLocator<T> |
in(Scope scope)
Qualify this ContractLocator to identify services that are scoped scope. |
ContractLocator<T> |
named(java.lang.String name)
Qualify this ContractLocator to identify services that are named name. |
| Methods inherited from interface org.glassfish.hk2.Providers |
|---|
all, get, getProvider |
| Method Detail |
|---|
ContractLocator<T> named(java.lang.String name)
name - the name of the service
ContractLocator<T> in(Scope scope)
scope - the scope of the service
ContractLocator<T> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
annotations - the annotations that the service must have
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||