|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Descriptor
A Descriptor is a bean-like structure that describes a service declaration in HK2.
Services have a number of optional attributes such as name and scope. A service is required to minimally have a type name representing the concrete (i.e., byType) definition.
| Method Summary | |
|---|---|
Collection<String> |
getContracts()
The contracts that are used to index the service definition. |
MultiMap<String,String> |
getMetadata()
The meta data attributes for the service. |
Collection<String> |
getNames()
The name(s) for the service. |
Collection<String> |
getQualifiers()
Returns the qualifier annotations on the service. |
Scope |
getScope()
The optional scoping for the service. |
String |
getTypeName()
The implementation definition type. |
boolean |
hasContract(String contract)
Returns true if getContracts() contains the passed argument. |
boolean |
hasName(String name)
Returns true if getNames() contains the passed argument. |
boolean |
hasQualifier(String qualifier)
Returns true if getQualifiers() contains the passed argument. |
| Method Detail |
|---|
Collection<String> getNames()
boolean hasName(String name)
getNames() contains the passed argument.
Scope getScope()
MultiMap<String,String> getMetadata()
Collection<String> getQualifiers()
boolean hasQualifier(String qualifier)
getQualifiers() contains the passed argument.
Collection<String> getContracts()
boolean hasContract(String contract)
getContracts() contains the passed argument.
String getTypeName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||