| Modifier and Type | Field and Description |
|---|---|
| public static final String | NAME_KEY
The key for the name field of the tokenized string |
| public static final String | QUALIFIER_KEY
The key for the qualifier field of the tokenized string |
| public static final String | TOKEN_SEPARATOR
The token separator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ActiveDescriptorBuilder | activeLink(Class<?>
The implementation class to be associated
with the implementationClass)ActiveDescriptorBuilder.This method creates an |
| public static Filter | Returns: A filter that matches all descriptorsReturns a filter of type Descriptor that matches all descriptors |
| public static <T> AbstractActiveDescriptor | Returns: The descriptor returned can be used in calls to DynamicConfiguration.addActiveDescriptorThe non-null constant that should always be returned from
the create method of this ActiveDescriptor. constant)This creates a descriptor that will always return the given object. |
| public static <T> AbstractActiveDescriptor | Returns: The descriptor returned can be used in calls to DynamicConfiguration.addActiveDescriptorThe non-null constant that should always be returned from
the create method of this ActiveDescriptor. constant, String The possibly null name that should be associated with this constant descriptor name, Type... The possibly empty set of contracts that should be associated with this
descriptor contracts)This creates a descriptor that will always return the given object. |
| public static <T> ServiceHandle | Returns: AServiceHandle that will always return the given valueThe object to be associated with this ServiceHandle. May be null obj)Creates a ServiceHandle that will always return the given object from
the |
| public static IndexedFilter | Returns: The indexed filter that can be used to calls to ServiceLocator methodsThe advertised contract to look for contract)Returns an indexed filter that will return all descriptors that have contract as an advertised contract |
| public static IndexedFilter | Returns: An IndexedFilter that can be used to determine equality with the given filter based on the fields of the DescriptorA non-null Descriptor to compare against other Descriptors descriptorImpl, boolean If true then a copy will be made of the descriptorImpl to protect the filter
from the case where the incoming descriptorImpl may change. If false then the user
must ensure that the fields of the descriptorImpl cannot change after the filter is returned. deepCopy)Returns a filter that will return true an IndexedFilter that will match
the |
| public static IndexedFilter | Returns: An IndexedFilter that can be used to determine equality with the given filter based on the fields of the DescriptorA non-null Descriptor to compare against other Descriptors descriptorImpl)Returns a filter that will return true an IndexedFilter that will match
the |
| public static DescriptorImpl | Returns: The DescriptorImpl corresponding to this classThe class to analyze clazz)This returns a DescriptorImpl based on the given class. |
| public static IndexedFilter | Returns: The indexed filter that can be used to calls to ServiceLocator methodsThe advertised contract to look for contract, String The name to look for name)Returns an indexed filter that will return all descriptors that have the given name and given contract |
| public static IndexedFilter | Returns: The indexed filter that can be used to calls to ServiceLocator methodsThe name to look for name)Returns an indexed filter that will return all descriptors that have the given name |
| public static IndexedFilter | Returns: A filter to use that will match this descriptor exactlyThe descriptor from which to create a filter descriptor)This method creates a filter that will match one and only one descriptor. |
| public static IndexedFilter | Returns: A filter that will match the given stringA non-null string following the rules stated above tokenString)Creates a filter from a token string as per the following rules. |
| public static DescriptorImpl | Returns: A new descriptor with all fields copiedThe descriptor to copy copyMe)Makes a deep copy of the incoming descriptor |
| public static boolean | Returns: true if baseDescriptor matches, false otherwiseThe non-null descriptor to match the filter against baseDescriptor, final Filter The filter to match. If null will return true filter)Determines if the given descriptor matches the given filter. |
| public static void | getMetadataValues(Annotation
The annotation to find annotation, Map<String, List<String>> Metadata values
from. May not be null.A non-null metadata map. The values found in the
annotation will be added to this metadata map metadata)This is a helper method that gets the metadata values from the
|
| public static int | |
| public static DescriptorBuilder | link(String
The fully qualified name of the implementation
class to be associated with the DescriptorBuilder. implementationClass, boolean if true, this implementation class will be added to the
list of contracts addToContracts)This method links an implementation class with a |
| public static DescriptorBuilder | link(String
The fully qualified name of the implementation
class to be associated with the PredicateBuilder. implementationClass)This method links an implementation class with a |
| public static DescriptorBuilder | link(Class<?>
The implementation class to be associated
with the implementationClass, boolean DescriptorBuilder.true if this impl class should be automatically added to
the list of contracts addToContracts)This method links an implementation class with a |
| public static DescriptorBuilder | link(Class<?>
The implementation class to be associated
with the implementationClass)DescriptorBuilder.This method links an implementation class with a |
| NAME_KEY | back to summary |
|---|---|
| public static final String NAME_KEY The key for the name field of the tokenized string | |
| QUALIFIER_KEY | back to summary |
|---|---|
| public static final String QUALIFIER_KEY The key for the qualifier field of the tokenized string | |
| TOKEN_SEPARATOR | back to summary |
|---|---|
| public static final String TOKEN_SEPARATOR The token separator | |
| BuilderHelper | back to summary |
|---|---|
| public BuilderHelper() | |
| activeLink | back to summary |
|---|---|
| public static ActiveDescriptorBuilder activeLink(Class<?> implementationClass) throws IllegalArgumentException This method creates an
| |
| allFilter | back to summary |
|---|---|
| public static Filter allFilter() Returns a filter of type Descriptor that matches all descriptors
| |
| createConstantDescriptor | back to summary |
|---|---|
| public static <T> AbstractActiveDescriptor This creates a descriptor that will always return the given object. The set of types in the advertised contracts will contain the class of the constant along with:
| |
| createConstantDescriptor | back to summary |
|---|---|
| public static <T> AbstractActiveDescriptor This creates a descriptor that will always return the given object. The advertised contracts is given in the incoming parameter and the name on the descriptor also comes from the incoming parameter.
| |
| createConstantServiceHandle | back to summary |
|---|---|
| public static <T> ServiceHandle Creates a ServiceHandle that will always return the given object from
the
| |
| createContractFilter | back to summary |
|---|---|
| public static IndexedFilter createContractFilter(String contract) Returns an indexed filter that will return all descriptors that have contract as an advertised contract
| |
| createDescriptorFilter | back to summary |
|---|---|
| public static IndexedFilter createDescriptorFilter(Descriptor descriptorImpl, boolean deepCopy) Returns a filter that will return true an IndexedFilter that will match
the
| |
| createDescriptorFilter | back to summary |
|---|---|
| public static IndexedFilter createDescriptorFilter(Descriptor descriptorImpl) Returns a filter that will return true an IndexedFilter that will match
the
| |
| createDescriptorFromClass | back to summary |
|---|---|
| public static DescriptorImpl createDescriptorFromClass(Class<?> clazz) This returns a DescriptorImpl based on the given class. The returned descriptor will include the class itself as an advertised contract and all implemented interfaces that are marked @Contract
| |
| createNameAndContractFilter | back to summary |
|---|---|
| public static IndexedFilter createNameAndContractFilter(String contract, String name) Returns an indexed filter that will return all descriptors that have the given name and given contract
| |
| createNameFilter | back to summary |
|---|---|
| public static IndexedFilter createNameFilter(String name) Returns an indexed filter that will return all descriptors that have the given name
| |
| createSpecificDescriptorFilter | back to summary |
|---|---|
| public static IndexedFilter createSpecificDescriptorFilter(Descriptor descriptor) This method creates a filter that will match one and only one descriptor. The passed in descriptor must have both its serviceID and locatorId filled in, or else this method will throw an IllegalArgumentException
| |
| createTokenizedFilter | back to summary |
|---|---|
| public static IndexedFilter createTokenizedFilter(String tokenString) throws IllegalArgumentException Creates a filter from a token string as per the following rules.
The following are examples of valid token strings:
| |
| deepCopyDescriptor | back to summary |
|---|---|
| public static DescriptorImpl deepCopyDescriptor(Descriptor copyMe) Makes a deep copy of the incoming descriptor
| |
| filterMatches | back to summary |
|---|---|
| public static boolean filterMatches(final Descriptor baseDescriptor, final Filter filter) Determines if the given descriptor matches the given filter. A null
filter matches every descriptor. Takes into account if the
| |
| getMetadataValues | back to summary |
|---|---|
| public static void getMetadataValues(Annotation annotation, Map<String, List<String>> metadata) This is a helper method that gets the metadata values from the
| |
| getRank | back to summary |
|---|---|
| public static int getRank(Class<?> fromClass) Gets the rank from the given class
| |
| link | back to summary |
|---|---|
| public static DescriptorBuilder link(String implementationClass, boolean addToContracts) throws IllegalArgumentException This method links an implementation class with a
| |
| link | back to summary |
|---|---|
| public static DescriptorBuilder link(String implementationClass) throws IllegalArgumentException This method links an implementation class with a
| |
| link | back to summary |
|---|---|
| public static DescriptorBuilder link(Class<?> implementationClass, boolean addToContracts) throws IllegalArgumentException This method links an implementation class with a
| |
| link | back to summary |
|---|---|
| public static DescriptorBuilder link(Class<?> implementationClass) throws IllegalArgumentException This method links an implementation class with a
| |