- AbstractActiveDescriptor<T> - Class in org.glassfish.hk2.utilities
-
This class can be used as a starting point for those writing their own
ActiveDescriptor.
- AbstractActiveDescriptor() - Constructor for class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
For serialization
- AbstractActiveDescriptor(Descriptor) - Constructor for class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Creates a NON reified ActiveDescriptor based on a copy of the given
baseDescriptor.
- AbstractActiveDescriptor(Set<Type>, Class<? extends Annotation>, String, Set<Annotation>, DescriptorType, DescriptorVisibility, int, Boolean, String, Map<String, List<String>>) - Constructor for class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
This constructor must be called with the information about
this descriptor
- AbstractBinder - Class in org.glassfish.hk2.utilities.binding
-
Skeleton implementation of injection binder with convenience methods for
binding definitions.
- AbstractBinder() - Constructor for class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- ActiveDescriptor<T> - Interface in org.glassfish.hk2.api
-
An ActiveDescriptor contains information about a Descriptor after it has been reified.
- ActiveDescriptorBuilder - Interface in org.glassfish.hk2.utilities
-
The active descriptor build is for building up a
non-reified ActiveDescriptor.
- ActiveDescriptorBuilderImpl - Class in org.glassfish.hk2.internal
-
- ActiveDescriptorBuilderImpl(Class<?>) - Constructor for class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- activeLink(Class<?>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
- addActiveDescriptor(ActiveDescriptor<T>) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This allows third party systems to add reified active descriptors to the system.
- addActiveDescriptor(ActiveDescriptor<T>, boolean) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This allows third party systems to add reified active descriptors to the system.
- addActiveDescriptor(Class<T>) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This adds an active descriptor to the system based completely on the analysis
of the given class.
- addActiveDescriptor(ActiveDescriptor<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This allows third party systems to add reified active descriptors to the system.
- addActiveDescriptor(ActiveDescriptor<T>, boolean) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- addActiveDescriptor(Class<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This adds an active descriptor to the system based completely on the analysis
of the given class.
- addAdvertisedContract(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Adds an advertised contract to the set of contracts advertised by this descriptor
- addBinding(BindingBuilder<?>, DynamicConfiguration) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Add a binding represented by the binding builder to the HK2 dynamic configuration.
- addBinding(BindingBuilder<?>, DynamicConfiguration, HK2Loader) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Add a binding represented by the binding builder to the HK2 dynamic configuration.
- addContractType(Type) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Adds an advertised contract to the set of contracts advertised by this descriptor
- addError(Throwable) - Method in exception org.glassfish.hk2.api.MultiException
-
Adds an error to an existing exception
- addListener(ServiceLocatorListener) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Adds a service listener to the unordered set of listeners that
will be notified when named listeners are added or removed
from the system.
- addListener(ServiceLocatorListener) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- addMetadata(Map<String, List<String>>) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Adds all of the entries from this map to the existing descriptor's
metadata.
- addMetadata(String, String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Adds a value to the list of values associated with this key
- addOneConstant(ServiceLocator, Object) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method adds one existing object to the given service locator.
- addOneConstant(ServiceLocator, Object, String, Type...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method adds one existing object to the given service locator.
- addOneDescriptor(ServiceLocator, Descriptor) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
It is very often the case that one wishes to add a single descriptor to
a service locator.
- addOneDescriptor(ServiceLocator, Descriptor, boolean) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
It is very often the case that one wishes to add a single descriptor to
a service locator.
- addQualifier(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Adds the given string to the list of qualifiers
- addQualifierAnnotation(Annotation) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Adds the given string to the list of qualifiers
- addUnbindFilter(Filter) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This filter will added to the list of filters in this Configuration that will
determine which Descriptors will be removed from the system.
- addUnbindFilter(Filter) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This filter will added to the list of filters in this Configuration that will
determine which Descriptors will be removed from the system.
- AliasDescriptor<T> - Class in org.glassfish.hk2.utilities
-
A descriptor class that serves as an alias for another descriptor.
- AliasDescriptor(ServiceLocator, ActiveDescriptor<T>, String, String) - Constructor for class org.glassfish.hk2.utilities.AliasDescriptor
-
Construct an AliasDescriptor.
- allFilter() - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns a filter of type Descriptor that matches
all descriptors
- analyzeWith(String) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- analyzeWith(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Call this if the descriptor should be analyzed with the
ClassAnalyzer service of the given name
- analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
- analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
- analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
- analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Call this if the descriptor should be analyzed with the
ClassAnalyzer service of the given name
- andLoadWith(HK2Loader) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- andLoadWith(HK2Loader) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- andLoadWith(HK2Loader) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Call this if this descriptor should be loaded with the given HK2Loader
- andLoadWith(HK2Loader) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Call this if this descriptor should be loaded with the given HK2Loader
- AnnotationLiteral<T extends java.lang.annotation.Annotation> - Class in org.glassfish.hk2.api
-
Supports inline instantiation of annotation type instances.
- AnnotationLiteral() - Constructor for class org.glassfish.hk2.api.AnnotationLiteral
-
- annotationType() - Method in class org.glassfish.hk2.api.AnnotationLiteral
-
- bind(Descriptor) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the given descriptor to this Module.
- bind(Descriptor, boolean) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the given descriptor to this Module.
- bind(FactoryDescriptors) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
- bind(FactoryDescriptors, boolean) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
- bind(DynamicConfiguration) - Method in interface org.glassfish.hk2.utilities.Binder
-
- bind(Class<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new class-based service binding.
- bind(T) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new instance-based service binding.
- bind(DynamicConfiguration) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- bind(Descriptor) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This method will bind the given descriptor to this Module.
- bind(Descriptor, boolean) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- bind(FactoryDescriptors) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- bind(FactoryDescriptors, boolean) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
- bind(ServiceLocator, Binder...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will bind all of the binders given together in a
single config transaction.
- bind(String, Binder...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will create or find a ServiceLocator with the given name and
bind all of the binders given together in a single config transaction.
- bind(Binder...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will create or find a ServiceLocator with the name "default" and
bind all of the binders given together in a single config transaction.
- bindAsContract(Class<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new class-based service binding.
- bindAsContract(TypeLiteral<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new generic type-based service binding.
- Binder - Interface in org.glassfish.hk2.utilities
-
- bindFactory(Class<? extends Factory<T>>, Class<? extends Annotation>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new factory class-based service binding.
- bindFactory(Class<? extends Factory<T>>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new factory class-based service binding.
- bindFactory(Factory<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new factory instance-based service binding.
- BindingBuilder<T> - Interface in org.glassfish.hk2.utilities.binding
-
Base binding builder (marker) interface.
- BindingBuilderFactory - Class in org.glassfish.hk2.utilities.binding
-
HK2 injection binding utility methods.
- BindingBuilderFactory() - Constructor for class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
- build() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- build() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- build() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Generates a descriptor that can be used in binding operations
- build() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Generates a descriptor that can be used in binding operations
- BuilderHelper - Class in org.glassfish.hk2.utilities
-
This class is used to generate DescriptorBuilders to be used
as a simple mechanism to create a Filter or Descriptor.
- BuilderHelper() - Constructor for class org.glassfish.hk2.utilities.BuilderHelper
-
- buildFactory() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
Deprecated.
- buildFactory(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- buildFactory() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- buildFactory(Class<? extends Annotation>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- buildFactory() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Deprecated.
Use buildProvideMethod instead
- buildFactory() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Generates a factory descriptor that can be used in binding operations.
- buildFactory(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Generates a factory descriptor that can be used in binding operations.
- buildFactory(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Generates a factory descriptor that can be used in binding operations.
- buildProvideMethod() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- buildProvideMethod() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Generates a descriptor that can be used in binding operations that
describes a factorys provide method
- ClassAnalyzer - Interface in org.glassfish.hk2.api
-
When HK2 automatically analyzes a class to find the constructor, fields,
initializer methods and postConstruct and preDestroy methods it uses this
service to analyze the class.
- clearMetadata() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes all metadata values
- commit() - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This causes the configuration to get committed.
- commit() - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This causes the configuration to get committed.
- configure() - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Implement to provide binding definitions using the exposed binding
methods.
- ConstantActiveDescriptor<T> - Class in org.glassfish.hk2.internal
-
- ConstantActiveDescriptor() - Constructor for class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
For serializable
- ConstantActiveDescriptor(T, Set<Type>, Class<? extends Annotation>, String, Set<Annotation>, DescriptorVisibility, Boolean, String, Map<String, List<String>>) - Constructor for class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
Creates the constant descriptor
- containsKey(ActiveDescriptor<?>) - Method in interface org.glassfish.hk2.api.Context
-
Determines if this context has a value for the given key
- containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- Context<T> - Interface in org.glassfish.hk2.api
-
An implementation of this must be put into the system in order to
create contextual instances of services.
- Contract - Annotation Type in org.jvnet.hk2.annotations
-
Marker annotation to allow implementations to be discovered from
the contract they implement.
- ContractsProvided - Annotation Type in org.jvnet.hk2.annotations
-
An explicit list of contracts provided.
- create(ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Creates an instance of the ActiveDescriptor.
- create(Class<T>) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method will analyze the given class, and create it if can.
- create(Class<T>, String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method will analyze the given class, and create it if can.
- create(String) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates (or finds) a ServiceLocator.
- create(String, ServiceLocator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates or finds a ServiceLocator.
- create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates or finds a ServiceLocator.
- create(String, ServiceLocator) - Method in interface org.glassfish.hk2.extension.ServiceLocatorGenerator
-
Creates the ServiceLocator that will be used to
generate the ServiceLocators
- create(ServiceHandle<?>) - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- create(String) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- create(String, ServiceLocator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- create(ServiceHandle<?>) - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- createAndInitialize(Class<U>) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method creates, injects and post-constructs an object with the given
class.
- createAndInitialize(Class<U>, String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method creates, injects and post-constructs an object with the given
class.
- createConstantDescriptor(T) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This creates a descriptor that will always return the given object.
- createConstantDescriptor(T, String, Type...) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This creates a descriptor that will always return the given object.
- createContractFilter(String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns an indexed filter that will return all descriptors that
have contract as an advertised contract
- createDescriptorFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This returns a DescriptorImpl based on the given class.
- createDynamicConfiguration() - Method in interface org.glassfish.hk2.api.DynamicConfigurationService
-
Creates a dynamic configuration that can be used to add or remove values
to the system
- createDynamicConfiguration(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- createNameAndContractFilter(String, String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns an indexed filter that will return all descriptors that
have the given name and given contract
- createNameFilter(String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns an indexed filter that will return all descriptors that
have the given name
- createSpecificDescriptorFilter(Descriptor) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This method creates a filter that will match one and only one descriptor.
- getActiveDescriptor() - Method in interface org.glassfish.hk2.api.InstanceLifecycleEvent
-
The active descriptor that is being used for the operation.
- getActiveDescriptor() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Returns the ActiveDescriptor associated with this service handle
- getAdvertisedContract() - Method in interface org.glassfish.hk2.api.IndexedFilter
-
If this returns non-null then this index will
be used to limit the set of Descriptors that
will be passed to the matches method.
- getAdvertisedContract() - Method in class org.glassfish.hk2.internal.IndexedFilterImpl
-
- getAdvertisedContract() - Method in class org.glassfish.hk2.internal.SpecificFilterImpl
-
- getAdvertisedContracts() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the base class name of the contracts that
this service describes.
- getAdvertisedContracts() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getAllServiceHandles(Class<T>, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria
- getAllServiceHandles(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria
- getAllServiceHandles(Annotation, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria
- getAllServiceHandles(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
- getAllServices(Class<T>, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the all the services from this locator that implements
this contract or has this implementation
- getAllServices(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the all the services from this locator that implements
this contract or has this implementation
- getAllServices(Annotation, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the all the services from this locator that has the given
qualifier or qualifiers
- getAllServices(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the all the services from this locator that matches the
Filter
- getAssociatedException() - Method in interface org.glassfish.hk2.api.ErrorInformation
-
This will contain the associated exception or exceptions that caused
the failure.
- getBestDescriptor(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the descriptor that best matches this filter, taking ranking
and service id into account
- getCache() - Method in interface org.glassfish.hk2.api.SingleCache
-
This can be used for scopes that will only every be created once.
- getCache() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- getCache() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getCandidate() - Method in interface org.glassfish.hk2.api.ValidationInformation
-
The candidate descriptor for this operation
- getClassAnalysisName() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the name of the ClassAnalysis service that
should be used to discover the constructors, initialization methods,
field and postConstruct and preDestory methods.
- getClassAnalysisName() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getConstructor(Class<T>) - Method in interface org.glassfish.hk2.api.ClassAnalyzer
-
Will return the constructor that it to be used when constructing this
service
- getContractTypes() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
The set of types that this ActiveDescriptor must produce.
- getContractTypes() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getContractTypes() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getDefaultClassAnalyzerName() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the name of the default class analyzer service
- getDescriptor() - Method in interface org.glassfish.hk2.api.ErrorInformation
-
This will contain the active descriptor that is associated
with this failure.
- getDescriptor() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
Get the descriptor being aliased.
- getDescriptorFilter() - Static method in class org.glassfish.hk2.internal.StarFilter
-
- getDescriptors(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the list of descriptors that match the given filter
- getDescriptorType() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns CLASS if this is a class descriptor
and FACTORY if this is a descriptor describing
a factory for a type, in which case the
implClass should point to the implementation
class of the factory
- getDescriptorType() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getDescriptorVisibility() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the visibility of this descriptor.
- getDescriptorVisibility() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getErrors() - Method in exception org.glassfish.hk2.api.MultiException
-
Gets all the errors associated with this MultiException
- getErrorType() - Method in interface org.glassfish.hk2.api.ErrorInformation
-
Gets the type of error that has occurred.
- getEventType() - Method in interface org.glassfish.hk2.api.InstanceLifecycleEvent
-
Gets the type of even this describes.
- getFactoryAsAFactory() - Method in interface org.glassfish.hk2.api.FactoryDescriptors
-
This returns the factory as a factory for some other type.
- getFactoryAsAFactory() - Method in class org.glassfish.hk2.internal.FactoryDescriptorsImpl
-
- getFactoryAsAService() - Method in interface org.glassfish.hk2.api.FactoryDescriptors
-
This returns the factory as a service itself.
- getFactoryAsAService() - Method in class org.glassfish.hk2.internal.FactoryDescriptorsImpl
-
- getFactoryLocatorId() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then
this field will return the ServiceId of its associated Factory
service.
- getFactoryLocatorId() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getFactoryServiceId() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then
this field will return the ServiceId of its associated Factory
service.
- getFactoryServiceId() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getFields(Class<T>) - Method in interface org.glassfish.hk2.api.ClassAnalyzer
-
Will return the set of initializer fields to be used when initializing
this service
- getFilter() - Method in interface org.glassfish.hk2.api.InstanceLifecycleListener
-
This returns a filter that tells the system whether a particular descriptor should be handled by this lifecycle
listener.
- getFilter() - Method in interface org.glassfish.hk2.api.ValidationInformation
-
On a LOOKUP operation the
Filter that was used in the
lookup operation.
- getHandle() - Method in interface org.glassfish.hk2.api.IterableProvider
-
Rather than getting the service directly with get (in which
case the returned service cannot be disposed of) this method
will instead return a service handle for the current best service.
- getImplementation() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the fully qualified class
name of the implementation
class.
- getImplementation() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- getImplementation() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getImplementation() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getImplementationClass() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
The implementation class that should be used
to generate new instances of this descriptor.
- getImplementationClass() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- getImplementationClass() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getInitializerMethods(Class<T>) - Method in interface org.glassfish.hk2.api.ClassAnalyzer
-
Will return the set of initializer method to be used when initializing
this service
- getInjectee() - Method in interface org.glassfish.hk2.api.ErrorInformation
-
This will contain information about the Injectee that was being
injected into when the error occurred.
- getInjectee() - Method in exception org.glassfish.hk2.api.UnsatisfiedDependencyException
-
Returns the injectee that is unsatisfied
- getInjectee() - Method in interface org.glassfish.hk2.api.ValidationInformation
-
On a LOOKUP operation if the lookup is being performed due to an
injection point (as opposed to a lookup via the API) then this
method will return a non-null
Injectee that is the injection
point that would be injected into
- getInjecteeClass() - Method in interface org.glassfish.hk2.api.Injectee
-
Returns the parent class for this injectee.
- getInjecteeClass() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getInjecteeDescriptor(Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method will first find a descriptor for this injectee, and then
reify that descriptor.
- getInjectees() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Returns the full list of Injectees this class has.
- getInjectees() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getInjectees() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getInstance() - Static method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
This will return a factory where the ServiceLocatorGenerator
is discovered from the META-INF/services of the process
- getKnownInjectees() - Method in interface org.glassfish.hk2.api.InstanceLifecycleEvent
-
A map from the Injectee to the object actually used
in the production, if known.
- getLifecycleObject() - Method in interface org.glassfish.hk2.api.InstanceLifecycleEvent
-
The object that is being described by this event.
- getLoader() - Method in interface org.glassfish.hk2.api.Descriptor
-
This returns the loader that should be used when
classloading this descriptor.
- getLoader() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getLocatorId() - Method in interface org.glassfish.hk2.api.Descriptor
-
This returns the id of the ServiceLocator which this descriptor
is registered with.
- getLocatorId() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This returns the unique locator ID for this locator.
- getLocatorId() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getLookupFilter() - Method in interface org.glassfish.hk2.api.ValidationService
-
This filter will be run at least once per descriptor at the point that the descriptor
is being looked up, either with the
ServiceLocator API or due to
an @Inject resolution.
- getMessage() - Method in exception org.glassfish.hk2.api.MultiException
-
- getMetadata() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns all of the metadata associated
that this object should be registered
with or looked up by
- getMetadata() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getMetadataValues(Annotation, Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This is a helper method that gets the metadata values from the
Metadata annotations found in an annotation.
- getName() - Method in interface org.glassfish.hk2.api.Descriptor
-
The name of this descriptor.
- getName() - Method in interface org.glassfish.hk2.api.IndexedFilter
-
If this returns non-null then this name will
be used to limit the set of Descriptors that
will be passed to the matches method.
- getName() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Returns the name of this ServiceLocator
- getName() - Method in class org.glassfish.hk2.internal.IndexedFilterImpl
-
- getName() - Method in class org.glassfish.hk2.internal.SpecificFilterImpl
-
- getName() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getOneMetadataField(Descriptor, String) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Gets one value from a metadata field from the given descriptor
- getOneMetadataField(ServiceHandle<?>, String) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Gets one value from a metadata field from the given service handle
- getOperation() - Method in interface org.glassfish.hk2.api.ValidationInformation
-
The operation that is to be performed, one of
BIND - The candidate descriptor is being added to the system
UNBIND - The candidate descriptor is being removed from the system
LOOKUP - The candidate descriptor is being looked up
- getParameterTypes() - Method in class org.glassfish.hk2.api.TypeLiteral
-
- getParent() - Method in interface org.glassfish.hk2.api.Injectee
-
If this Injectee is in a constructor this will return the
constructor being injected into.
- getParent() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getPosition() - Method in interface org.glassfish.hk2.api.Injectee
-
If this Injectee is a constructor or method parameter, this will
return the index of the parameter.
- getPosition() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getPostConstructMethod(Class<T>) - Method in interface org.glassfish.hk2.api.ClassAnalyzer
-
Will return the postConstruct method of the class
- getPreDestroyMethod(Class<T>) - Method in interface org.glassfish.hk2.api.ClassAnalyzer
-
Will return the preDestroy method of the class
- getQualifierAnnotations() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
The full set of qualifiers that this ActiveDescriptor
provides
- getQualifierAnnotations() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getQualifierAnnotations() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getQualifiers() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns all of the annotation classes
that this object should be registered
with or looked up by
- getQualifiers() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getRanking() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the ranking of this descriptor.
- getRanking() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getRawType() - Method in class org.glassfish.hk2.api.TypeLiteral
-
- getRawType(Type) - Static method in class org.glassfish.hk2.api.TypeLiteral
-
- getRequiredQualifiers() - Method in interface org.glassfish.hk2.api.Injectee
-
This is the set of required qualifiers for this injectee.
- getRequiredQualifiers() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getRequiredType() - Method in interface org.glassfish.hk2.api.Injectee
-
This is the required type of the injectee.
- getRequiredType() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getScope() - Method in interface org.glassfish.hk2.api.Context
-
The scope for which this is the context
- getScope() - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the fully qualified class name of
the scope annotation that should be
associated with this descriptor.
- getScope() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- getScope() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getScopeAnnotation() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Returns the scope that this ActiveDescriptor belongs to
- getScopeAnnotation() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- getScopeAnnotation() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getService() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Gets the underlying service object
- getService(Class<T>, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the best service from this locator that implements
this contract or has this implementation
- getService(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the best service from this locator that implements
this contract or has this implementation
- getService(Class<T>, String, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the best service from this locator that implements
this contract or has this implementation and has the given
name
- getService(Type, String, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets the best service from this locator that implements
this contract or has this implementation and has the given
name
- getService(ActiveDescriptor<T>, ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
- getService(ActiveDescriptor<T>, ServiceHandle<?>, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
- getService(ServiceLocator, String) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Returns the best service matching the passed in fully qualified
class name of the service
- getService(ServiceLocator, Descriptor) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Returns the service in this service locator given the current descriptor.
- getServiceHandle(Class<T>, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria
- getServiceHandle(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria
- getServiceHandle(Class<T>, String, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria
- getServiceHandle(Type, String, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria
- getServiceHandle(ActiveDescriptor<T>, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
- getServiceHandle(ActiveDescriptor<T>) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
- getServiceId() - Method in interface org.glassfish.hk2.api.Descriptor
-
This returns the unique identifier for this descriptor.
- getServiceId() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getSize() - Method in interface org.glassfish.hk2.api.IterableProvider
-
Returns the size of the iterator that would be returned
- getState() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Returns the current state of this service locator.
- getType() - Method in class org.glassfish.hk2.api.TypeLiteral
-
- getUnqualified() - Method in interface org.glassfish.hk2.api.Injectee
-
This method returns the
Unqualified annotation if it is present
on the injection point.
- getUnqualified() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getValidator() - Method in interface org.glassfish.hk2.api.ValidationService
-
Returns the
Validator that will be run whenever
a
Descriptor that passed the filter is to be looked up with the API
or injected into an injection point, or on any bind or unbind operation.
- in(Class<? extends Annotation>) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- in(Class<? extends Annotation>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- in(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- in(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
A scope to be associated with this descriptor object.
- in(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Scope a binding.
- in(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Scope a binding.
- in(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A scope to be associated with this descriptor object.
- in(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A scope to be associated with this descriptor object.
- Index - Annotation Type in org.jvnet.hk2.annotations
-
Marks the index property of the
Contract annotations.
- IndexedFilter - Interface in org.glassfish.hk2.api
-
This filter can be used to limit the set of Descriptors
passed to the matches method.
- IndexedFilterImpl - Class in org.glassfish.hk2.internal
-
- IndexedFilterImpl(String, String) - Constructor for class org.glassfish.hk2.internal.IndexedFilterImpl
-
- InhabitantAnnotation - Annotation Type in org.jvnet.hk2.annotations
-
Meta-annotation indicating that the annotation designates
a resident service of a org.glassfish.hk2.Services.
- initialize(Set<ServiceLocator>) - Method in interface org.glassfish.hk2.api.ServiceLocatorListener
-
This method returns the complete list of named service
locators at the time that this listener is registered.
- inject(Object) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and inject into its fields and methods.
- inject(Object, String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and inject into its fields and methods.
- Injectee - Interface in org.glassfish.hk2.api
-
An Injectee represents the point of injection.
- InjecteeImpl - Class in org.glassfish.hk2.utilities
-
This is a writeable version of the Injectee interface.
- InjecteeImpl() - Constructor for class org.glassfish.hk2.utilities.InjecteeImpl
-
None of the fields of the returned object will be set
- InjecteeImpl(Type) - Constructor for class org.glassfish.hk2.utilities.InjecteeImpl
-
Only the requiredType field will be set
- InjecteeImpl(Injectee) - Constructor for class org.glassfish.hk2.utilities.InjecteeImpl
-
This is the copy constructor, which will copy all the values from the incoming Injectee
- InjectionResolver<T> - Interface in org.glassfish.hk2.api
-
This class allows users to provide a custom injection target for
any annotation (including @Inject).
- install(Binder...) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Adds all binding definitions from the binders to the binding configuration.
- InstanceLifecycleEvent - Interface in org.glassfish.hk2.api
-
This object contains information about a lifecycle
event.
- InstanceLifecycleEventType - Enum in org.glassfish.hk2.api
-
This describes the type of lifecycle events
that can happen in the system
- InstanceLifecycleListener - Interface in org.glassfish.hk2.api
-
This processor is called for certain events in the lifecycle of instances
of services.
- isActive() - Method in interface org.glassfish.hk2.api.Context
-
True if this context is active, false otherwise
- isActive() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
This returns true if the underlying service has already been
created
- isActive() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- isCacheSet() - Method in interface org.glassfish.hk2.api.SingleCache
-
Returns true if this cache has been set
- isCacheSet() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- isCacheSet() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- isConstructorParameterIndicator() - Method in interface org.glassfish.hk2.api.InjectionResolver
-
This method should return true if the annotation that indicates that this is
an injection point can appear in the parameter list of a constructor.
- isMethodParameterIndicator() - Method in interface org.glassfish.hk2.api.InjectionResolver
-
This method should return true if the annotation that indicates that this is
an injection point can appear in the parameter list of a method.
- isOptional() - Method in interface org.glassfish.hk2.api.Injectee
-
This method returns true if this injection point is annotated
with VOptional.
- isOptional() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- isProxiable() - Method in interface org.glassfish.hk2.api.Descriptor
-
If this returns true then the system will create a proxy for
instances of this descriptor.
- isProxiable() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- isReified() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
This method returns true if this descriptor has been reified
(class loaded).
- isReified() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- isReified() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- isSelf() - Method in interface org.glassfish.hk2.api.Injectee
-
This method returns true if this injection point is annotated
with VSelf.
- isSelf() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- IterableProvider<T> - Interface in org.glassfish.hk2.api
-
This object can be injected rather than Provider or ExtendedProvider when
it is desired to iterate over more than one returned instance of the type.
- PerLookup - Annotation Type in org.glassfish.hk2.api
-
PerLookup is the scope for objects that are created every time they are looked up.
- PerThread - Annotation Type in org.glassfish.hk2.api
-
PerThread is a scope that operates like Singleton scope, except on a per-thread basis.
- PerThreadContext - Class in org.glassfish.hk2.internal
-
- PerThreadContext() - Constructor for class org.glassfish.hk2.internal.PerThreadContext
-
- PostConstruct - Interface in org.glassfish.hk2.api
-
Classes implementing this interface register an interest in
being notified when the instance has been created and the
component is about to be place into commission.
- postConstruct() - Method in interface org.glassfish.hk2.api.PostConstruct
-
The component has been injected with any dependency and
will be placed into commission by the subsystem.
- postConstruct(Object) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and call the postConstruct method.
- postConstruct(Object, String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and call the postConstruct method.
- PreDestroy - Interface in org.glassfish.hk2.api
-
Components implementing this interface registers an interest
in being notified when they are about to be decommissioned.
- preDestroy() - Method in interface org.glassfish.hk2.api.PreDestroy
-
The component is about to be removed from the registry.
- preDestroy(Object) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and call the preDestroy method.
- preDestroy(Object, String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will analyze the given object and call the preDestroy method.
- pretty(StringBuffer, Descriptor) - Static method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Will pretty print a descriptor
- printStackTrace(PrintStream) - Method in exception org.glassfish.hk2.api.MultiException
-
- printStackTrace(PrintWriter) - Method in exception org.glassfish.hk2.api.MultiException
-
- provide() - Method in interface org.glassfish.hk2.api.Factory
-
This method will create instances of the type of this factory.
- Proxiable - Annotation Type in org.glassfish.hk2.api
-
Scope annotations that are also marked with this
annotation are proxiable.
- proxy() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- proxy(boolean) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- proxy() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- proxy(boolean) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- proxy() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will cause the isProxiable field of the returned
descriptor to return true (it will force this
descriptor to use proxies).
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will cause the isProxiable field of the returned
descriptor to return the given value.
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Set proxy flag on the binding.
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Set proxy flag on the binding.
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Set proxy flag on the binding.
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Set proxy flag on the binding.
- proxy() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the isProxiable field of the returned
descriptor to return true (it will force this
descriptor to use proxies).
- proxy(boolean) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the isProxiable field of the returned
descriptor to return the given value.
- ProxyCtl - Interface in org.glassfish.hk2.api
-
Every proxy generated by HK2 will implement this interface, which can be used to have finer
control on the behavior of the proxy
- ScopedBindingBuilder<T> - Interface in org.glassfish.hk2.utilities.binding
-
Scoped service binding builder.
- ScopedNamedBindingBuilder<T> - Interface in org.glassfish.hk2.utilities.binding
-
Scoped and named service binding builder.
- Self - Annotation Type in org.glassfish.hk2.api
-
This annotation is placed on an injection point that is to be injected with the
ActiveDescriptor that was used
to create the instance.
- Service - Annotation Type in org.jvnet.hk2.annotations
-
Marker interface for service implementation.
- ServiceBindingBuilder<T> - Interface in org.glassfish.hk2.utilities.binding
-
Service binding builder.
- ServiceHandle<T> - Interface in org.glassfish.hk2.api
-
This service handle can be used to get a specific instance
of a service, and can be used to destroy that service as well
- ServiceLocator - Interface in org.glassfish.hk2.api
-
ServiceLocator is the registry for HK2 services
- ServiceLocatorFactory - Class in org.glassfish.hk2.api
-
This factory can be used to create new named ServiceLocators
- ServiceLocatorFactory() - Constructor for class org.glassfish.hk2.api.ServiceLocatorFactory
-
- ServiceLocatorFactoryImpl - Class in org.glassfish.hk2.internal
-
The implementation of the
ServiceLocatorFactory that looks
in the OSGi service registry or the META-INF/services for the implementation
to use.
- ServiceLocatorFactoryImpl() - Constructor for class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
This will create a new set of name to locator mappings
- ServiceLocatorGenerator - Interface in org.glassfish.hk2.extension
-
An implementation of this class can be placed in META-INF/services
in order to customize the creation of the ServiceLocator
- ServiceLocatorListener - Interface in org.glassfish.hk2.api
-
- ServiceLocatorState - Enum in org.glassfish.hk2.api
-
The possible states in which a service locator can be in.
- ServiceLocatorUtilities - Class in org.glassfish.hk2.utilities
-
- ServiceLocatorUtilities() - Constructor for class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- setCache(T) - Method in interface org.glassfish.hk2.api.SingleCache
-
Sets the value into the cache
- setCache(T) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- setClassAnalysisName(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- setDefaultClassAnalyzerName(String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Sets the name of the default class analyzer that should be used for all
Descriptors that return null as their class analyzer.
- setDescriptorType(DescriptorType) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the descriptor type
- setDescriptorVisibility(DescriptorVisibility) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the descriptor visilibity
- setFactoryId(Long, Long) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- setImplementation(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the implementation
- setLoader(HK2Loader) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the loader to use with this descriptor
- setLocatorId(Long) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the locator id for this descriptor
- setMetadata(Map<String, List<String>>) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the metadata of this DescriptorImpl to exactly the set
of metadata in the incoming map.
- setName(String) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- setName(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the name this descriptor should have
- setOptional(boolean) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets whether or not this Injectee should be considered optional
- setParent(AnnotatedElement) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
This setter sets both the parent and the injecteeClass fields.
- setPosition(int) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets the position of this Injectee.
- setProxiable(Boolean) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- setRanking(int) - Method in interface org.glassfish.hk2.api.Descriptor
-
Returns the ranking of this descriptor.
- setRanking(int) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- setReified(boolean) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
This method is called to change the state of the
reification of this descriptor
- setRequiredQualifiers(Set<Annotation>) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets the required qualifiers for this Injectee
- setRequiredType(Type) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets the required type of this Injectee
- setScope(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the scope this descriptor should have
- setSelf(boolean) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets whether or not this is a self-referencing injectee
- setServiceId(Long) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the service id for this descriptor
- setUnqualified(Unqualified) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- shutdown() - Method in interface org.glassfish.hk2.api.Context
-
Shut down this context.
- shutdown() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This method will shutdown every service associated with this ServiceLocator.
- shutdown() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- SingleCache<T> - Interface in org.glassfish.hk2.api
-
This cache can be used in some circumstances when there can be only one
of a service.
- SpecificFilterImpl - Class in org.glassfish.hk2.internal
-
This is a filter that matches an exact descriptor
- SpecificFilterImpl(String, String, long, long) - Constructor for class org.glassfish.hk2.internal.SpecificFilterImpl
-
- StarFilter - Class in org.glassfish.hk2.internal
-
A filter that gets everything! w00t w00t!
- StarFilter() - Constructor for class org.glassfish.hk2.internal.StarFilter
-
- supportsNullCreation() - Method in interface org.glassfish.hk2.api.Context
-
Returns true if the findOrCreate method can return null
- supportsNullCreation() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- SYSTEM_RESOLVER_NAME - Static variable in interface org.glassfish.hk2.api.InjectionResolver
-
This is the name of the system provided resolver for 330 injections
- validate(ValidationInformation) - Method in interface org.glassfish.hk2.api.Validator
-
This method is called whenever it has been determined that a validating
class is to be injected into an injection point, or when a descriptor
is being looked up explicitly with the API, or a descriptor is being
bound or unbound into the registry.
- ValidationInformation - Interface in org.glassfish.hk2.api
-
This object contains information about the validation
point.
- ValidationService - Interface in org.glassfish.hk2.api
-
This service can be used to add validation points to Descriptors.
- Validator - Interface in org.glassfish.hk2.api
-
This method is called when it determined that a type that is
annotated with a Validating annotation is to be injected into
any other class.
- value() - Method in class org.glassfish.hk2.utilities.NamedImpl
-
- valueOf(String) - Static method in enum org.glassfish.hk2.api.DescriptorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.api.DescriptorVisibility
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.api.ErrorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.api.InstanceLifecycleEventType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.api.Operation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.api.ServiceLocatorState
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.glassfish.hk2.api.DescriptorType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.api.DescriptorVisibility
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.api.ErrorType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.api.InstanceLifecycleEventType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.api.Operation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.api.ServiceLocatorState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Visibility - Annotation Type in org.glassfish.hk2.api
-
This annotation is used when automatically analyzing a class or a
{link
Factory.provide() method to indicate that the descriptor
either should or should not have LOCAL visibility.
- visibility(DescriptorVisibility) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- visibility(DescriptorVisibility) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- visibility(DescriptorVisibility) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will set the descriptorVisibility field of the returned
descriptor
- visibility(DescriptorVisibility) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will set the descriptorVisibility field of the returned
descriptor