Uses of Interface
org.glassfish.hk2.api.Descriptor
Packages that use Descriptor
Package
Description
-
Uses of Descriptor in org.glassfish.hk2.api
Subinterfaces of Descriptor in org.glassfish.hk2.apiModifier and TypeInterfaceDescriptioninterfaceAn ActiveDescriptor contains information about a Descriptor after it has been reified.Methods in org.glassfish.hk2.api that return DescriptorModifier and TypeMethodDescriptionErrorInformation.getDescriptor()This will contain the active descriptor that is associated with this failure.DuplicateServiceException.getExistingDescriptor()Gets the descriptor that matched one of the idempotent filtersFactoryDescriptors.getFactoryAsAFactory()This returns the factory as a factory for some other type.FactoryDescriptors.getFactoryAsAService()This returns the factory as a service itself.Methods in org.glassfish.hk2.api with parameters of type DescriptorModifier and TypeMethodDescription<T> ActiveDescriptor<T>DynamicConfiguration.bind(Descriptor key) This method will bind the given descriptor to this Module.<T> ActiveDescriptor<T>DynamicConfiguration.bind(Descriptor key, boolean requiresDeepCopy) This method will bind the given descriptor to this Module.booleanFilter.matches(Descriptor d) Returns true if this filter matches the given objectServiceLocator.reifyDescriptor(Descriptor descriptor) Converts a descriptor to an ActiveDescriptor.ServiceLocator.reifyDescriptor(Descriptor descriptor, Injectee injectee) Converts a descriptor to an ActiveDescriptor.Constructors in org.glassfish.hk2.api with parameters of type DescriptorModifierConstructorDescriptionDuplicateServiceException(Descriptor existingDescriptor) Called by the system to initialize the existing descriptor that matchedDuplicateServiceException(Descriptor existingDescriptor, String serviceLocatorName) Called by the system to initialize the existing descriptor that matched -
Uses of Descriptor in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement DescriptorMethods in org.glassfish.hk2.internal with parameters of type DescriptorModifier and TypeMethodDescriptionbooleanImmediateLocalLocatorFilter.matches(Descriptor d) booleanIndexedFilterImpl.matches(Descriptor d) booleanSpecificFilterImpl.matches(Descriptor d) booleanStarFilter.matches(Descriptor d) -
Uses of Descriptor in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement DescriptorModifier and TypeClassDescriptionclassThis class can be used as a starting point for those writing their own ActiveDescriptor.classAn active descriptor class that serves as an alias for another descriptor.classThe implementation of the descriptor itself, with the bonus of being externalizable, and having writeable fieldsMethods in org.glassfish.hk2.utilities that return DescriptorModifier and TypeMethodDescriptionFactoryDescriptorsImpl.getFactoryAsAFactory()FactoryDescriptorsImpl.getFactoryAsAService()Methods in org.glassfish.hk2.utilities with parameters of type DescriptorModifier and TypeMethodDescriptionstatic <T> ActiveDescriptor<T>ServiceLocatorUtilities.addOneDescriptor(ServiceLocator locator, Descriptor descriptor) It is very often the case that one wishes to add a single descriptor to a service locator.static <T> ActiveDescriptor<T>ServiceLocatorUtilities.addOneDescriptor(ServiceLocator locator, Descriptor descriptor, boolean requiresDeepCopy) It is very often the case that one wishes to add a single descriptor to a service locator.static IndexedFilterBuilderHelper.createDescriptorFilter(Descriptor descriptorImpl) Returns a filter that will return true an IndexedFilter that will match theDescriptorImpl.equals(Object)returnstatic IndexedFilterBuilderHelper.createDescriptorFilter(Descriptor descriptorImpl, boolean deepCopy) Returns a filter that will return true an IndexedFilter that will match theDescriptorImpl.equals(Object)returnstatic IndexedFilterBuilderHelper.createSpecificDescriptorFilter(Descriptor descriptor) This method creates a filter that will match one and only one descriptor.static DescriptorImplBuilderHelper.deepCopyDescriptor(Descriptor copyMe) Makes a deep copy of the incoming descriptorstatic booleanDescriptorImpl.descriptorEquals(Descriptor a, Descriptor b) Tests if two descriptors are equal not taking into account the locator-id and server-id by comparing the following fields: implementation contracts name scope qualifiers descriptorType descriptorVisibility metadata proxiable proxyForSameScope analysisNamestatic booleanBuilderHelper.filterMatches(Descriptor baseDescriptor, Filter filter) Determines if the given descriptor matches the given filter.static <T> ActiveDescriptor<T>ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator, Descriptor descriptor) Finds a descriptor in the given service locator.static StringServiceLocatorUtilities.getOneMetadataField(Descriptor d, String field) Gets one value from a metadata field from the given descriptorstatic <T> TServiceLocatorUtilities.getService(ServiceLocator locator, Descriptor descriptor) Returns the service in this service locator given the current descriptor.booleanOrFilter.matches(Descriptor d) static voidDescriptorImpl.pretty(StringBuffer sb, Descriptor d) Will pretty print a descriptorstatic voidServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) This method will attempt to remove descriptors matching the passed in descriptor from the given locator.static voidServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator, Descriptor descriptor, boolean includeAliasDescriptors) This method will attempt to remove descriptors matching the passed in descriptor from the given locator.Constructors in org.glassfish.hk2.utilities with parameters of type DescriptorModifierConstructorDescriptionprotectedAbstractActiveDescriptor(Descriptor baseDescriptor) Creates a NON reified ActiveDescriptor based on a copy of the given baseDescriptor.DescriptorImpl(Descriptor copyMe) Does a deep copy of the incoming descriptorFactoryDescriptorsImpl(Descriptor asService, Descriptor asProvideMethod) This creates a descriptor pair describing aFactoryand the associatedFactory.provide()method -
Uses of Descriptor in org.glassfish.hk2.utilities.binding
Methods in org.glassfish.hk2.utilities.binding with parameters of type DescriptorModifier and TypeMethodDescription<T> ActiveDescriptor<T>AbstractBinder.bind(Descriptor descriptor) This method will bind the given descriptor to this Module.<T> ActiveDescriptor<T>AbstractBinder.bind(Descriptor descriptor, boolean requiresDeepCopy)