- 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, 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
-
- activateDynamicConfiguration(TwoPhaseTransactionData) - Method in interface org.glassfish.hk2.api.TwoPhaseResource
-
Once all TwoPhaseResource prepare methods have completed successfully the activate method
will be called on all registered TwoPhaseResource implementations.
- 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
-
constructor with the impl class
- 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.
- addActiveFactoryDescriptor(Class<? extends Factory<T>>) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This adds two active descriptors to the system based completely on the analysis
of the given
Factory
class.
- addActiveFactoryDescriptor(Class<? extends Factory<T>>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This adds two active descriptors to the system based completely on the analysis
of the given
Factory
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.
- addClasses(ServiceLocator, boolean, Class<?>...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
It is very often the case that one wishes to add classes that hk2
will automatically analyze for contracts and qualifiers to
a service locator.
- addClasses(ServiceLocator, Class<?>...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
It is very often the case that one wishes to add classes that hk2
will automatically analyze for contracts and qualifiers to
a service locator.
- 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
- addFactoryConstants(ServiceLocator, Factory<?>...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method adds factory constants to the given locator.
- addFactoryDescriptors(ServiceLocator, FactoryDescriptors...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Adds the given factory descriptors to the service locator
- addFactoryDescriptors(ServiceLocator, boolean, FactoryDescriptors...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Adds the given factory descriptors to the service locator
- addIdempotentFilter(Filter...) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
At commit time all idempotent filters in this dynamic configuration will be run
against all validation-visible descriptors.
- addIdempotentFilter(Filter...) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
At commit time all idempotent filters in this dynamic configuration will be run
against all validation-visible descriptors.
- 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.
- ALIAS_FREE_DESCRIPTOR - Static variable in class org.glassfish.hk2.utilities.AliasDescriptor
-
This is the value the metadata field ALIAS_METADATA_MARKER will
take if the descriptor being aliased does not have a locator id
or a service id
- ALIAS_METADATA_MARKER - Static variable in class org.glassfish.hk2.utilities.AliasDescriptor
-
This will be put in all Alias descriptors.
- AliasDescriptor<T> - Class in org.glassfish.hk2.utilities
-
An active descriptor class that serves as an alias for another descriptor.
- AliasDescriptor() - Constructor for class org.glassfish.hk2.utilities.AliasDescriptor
-
For serialization
- 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 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
-
- AOPProxyCtl - Interface in org.glassfish.hk2.api
-
This interface is implemented by all services that use the
AOP Alliance Interceptor feature of HK2.
- assistedInject(Object, Method, MethodParameter...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will invoke the given method on the given object.
- assistedInject(Object, Method, ServiceHandle<?>, MethodParameter...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This will invoke the given method on the given object.
- asType(Type) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- asType(Type) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
Call this if the parameterized type of the implementation
class is known.
- asType(Type) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Call this if the parameterized type of the implementation
class is known.
- asType(Type) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Call this if the parameterized type of the implementation
class is known.
- 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.
- ClassLoaderPostProcessor - Class in org.glassfish.hk2.utilities
-
- ClassLoaderPostProcessor(ClassLoader, boolean) - Constructor for class org.glassfish.hk2.utilities.ClassLoaderPostProcessor
-
- ClassLoaderPostProcessor(ClassLoader) - Constructor for class org.glassfish.hk2.utilities.ClassLoaderPostProcessor
-
- ClasspathDescriptorFileFinder - Class in org.glassfish.hk2.utilities
-
This is an implementation of
DescriptorFileFinder
that
uses a particular classloader in order to find descriptor files.
- ClasspathDescriptorFileFinder() - Constructor for class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
If this constructor is used then HK2 descriptor files will be found
by looking in the classpath of the process.
- ClasspathDescriptorFileFinder(ClassLoader) - Constructor for class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
This constructor can be used to select the particular classloader
to search for HK2 descriptor files.
- ClasspathDescriptorFileFinder(ClassLoader, String...) - Constructor for class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
This constructor can be used to select the particular classloader
to search for HK2 descriptor files.
- clearMetadata() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes all metadata values
- close() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Will destroy this object and all PerLookup instances created
because of this service
- 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.
- configurationChanged() - Method in interface org.glassfish.hk2.api.DynamicConfigurationListener
-
This method is called when the set of descriptors
in this service locator has been changed.
- configurationChanged() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- configure() - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Implement to provide binding definitions using the exposed binding
methods.
- configure() - Method in class org.glassfish.hk2.utilities.EnableLookupExceptionsModule
-
- configure() - Method in class org.glassfish.hk2.utilities.ImmediateScopeModule
-
- configure() - Method in class org.glassfish.hk2.utilities.InheritableThreadScopeModule
-
- configure() - Method in class org.glassfish.hk2.utilities.PerThreadScopeModule
-
- 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, Boolean, String, Map<String, List<String>>, int) - 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.InheritableThreadContext
-
- containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- 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.
- ContextualInput<T> - Class in org.glassfish.hk2.utilities
-
- ContextualInput(ActiveDescriptor<T>, ServiceHandle<?>) - Constructor for class org.glassfish.hk2.utilities.ContextualInput
-
- Contract - Annotation Type in org.jvnet.hk2.annotations
-
This annotation is used by HK2 during automatic
class analysis to indicate that a class or
interface should be included in the list of
contracts for a service
- ContractIndicator - Annotation Type in org.glassfish.hk2.api
-
This annotation is put on annotations that are used
to mark things as hk2 contracts.
- 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, ServiceLocatorGenerator, ServiceLocatorFactory.CreatePolicy) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates 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(String, ServiceLocator, ServiceLocatorGenerator, ServiceLocatorFactory.CreatePolicy) - 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.
- createAndPopulateServiceLocator(String) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method is often the first line of a stand-alone client that wishes to use HK2.
- createAndPopulateServiceLocator() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method is often the first line of a stand-alone client that wishes to use HK2.
- 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.
- createConstantServiceHandle(T) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
- 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
- createDescriptorFilter(Descriptor, boolean) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
- createDescriptorFilter(Descriptor) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
- 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.
- createTokenizedFilter(String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Creates a filter from a token string as per the following rules.
The token delimiter is ;
The first token is the contract.
- Customize - Annotation Type in org.glassfish.hk2.api
-
Indicates that a method should be customized.
- Customizer - Annotation Type in org.glassfish.hk2.api
-
Gives the type (and optional name) of a customizer service
to use when an unknown method on a bean interface is
encountered.
- deepCopyDescriptor(Descriptor) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Makes a deep copy of the incoming descriptor
- DEFAULT_IMPLEMENTATION_NAME - Static variable in interface org.glassfish.hk2.api.ClassAnalyzer
-
The name of the default ClassAnalyzer service
- Descriptor - Interface in org.glassfish.hk2.api
-
A Descriptor is a bean-like structure that describes a service
declaration in HK2.
- DescriptorBuilder - Interface in org.glassfish.hk2.utilities
-
This is an object that uses the Builder pattern
in order to generate a Descriptor (for binding) or
a Filter (for searching).
- DescriptorBuilderImpl - Class in org.glassfish.hk2.internal
-
- DescriptorBuilderImpl() - Constructor for class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
The basid constructor
- DescriptorBuilderImpl(String, boolean) - Constructor for class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
A descriptor builder with the given implementation
- descriptorEquals(Descriptor, Descriptor) - Static method in class org.glassfish.hk2.utilities.DescriptorImpl
-
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
analysisName
- DescriptorFileFinder - Interface in org.glassfish.hk2.api
-
Implementations of this interface allow the customization of
how hk2 inhabitant files are found.
- DescriptorFileFinderInformation - Interface in org.glassfish.hk2.api
-
- DescriptorImpl - Class in org.glassfish.hk2.utilities
-
The implementation of the descriptor itself, with the
bonus of being externalizable, and having writeable fields
- DescriptorImpl() - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
-
For serialization
- DescriptorImpl(Descriptor) - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
-
Does a deep copy of the incoming descriptor
- DescriptorImpl(Set<String>, String, String, String, Map<String, List<String>>, Set<String>, DescriptorType, DescriptorVisibility, HK2Loader, int, Boolean, Boolean, String, Long, Long) - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
-
This creates this descriptor impl, taking all of the fields
as given
- DescriptorType - Enum in org.glassfish.hk2.api
-
This describes the type of descriptor
- DescriptorVisibility - Enum in org.glassfish.hk2.api
-
This enumeration determines how visibility of a descriptor
- destroy() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
- destroy(String) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Removes the ServiceLocator with this name
- destroy(ServiceLocator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Removes the given ServiceLocator
- destroy(String) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- destroy(ServiceLocator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
-
- destroyOne(ActiveDescriptor<?>) - Method in interface org.glassfish.hk2.api.Context
-
- destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.internal.InheritableThreadContext
-
- destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- dispose(T) - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Disposes this instance.
- dispose(T) - Method in interface org.glassfish.hk2.api.Factory
-
This method will dispose of objects created with this scope.
- dispose(T) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- dispose(T) - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- distributeMessage(Topic<?>, Object) - Method in interface org.glassfish.hk2.api.messaging.TopicDistributionService
-
Must distribute the message to all of the matching topic subscribers.
- doWork() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- dumpAllDescriptors(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Dumps all descriptors in this ServiceLocator to stderr
- dumpAllDescriptors(ServiceLocator, PrintStream) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Dumps all descriptors in this ServiceLocator to the given PrintStream
- DuplicatePostProcessor - Class in org.glassfish.hk2.utilities
-
This post-processor removes duplicate descriptors from the
set of descriptors being added to the service registry.
- DuplicatePostProcessor() - Constructor for class org.glassfish.hk2.utilities.DuplicatePostProcessor
-
Creates a DuplicatePostProcessor with the STRICT mode
for determining duplicates
- DuplicatePostProcessor(DuplicatePostProcessorMode) - Constructor for class org.glassfish.hk2.utilities.DuplicatePostProcessor
-
Creates a DuplicatePostProcessor with the
- DuplicatePostProcessorMode - Enum in org.glassfish.hk2.utilities
-
The mode of the duplicate post processor
- DuplicateServiceException - Exception in org.glassfish.hk2.api
-
This exception is thrown when an idempotent filter of a
DynamicConfiguration object matches an existing descriptor
in the ServiceLocator
- DuplicateServiceException() - Constructor for exception org.glassfish.hk2.api.DuplicateServiceException
-
For serialization
- DuplicateServiceException(Descriptor) - Constructor for exception org.glassfish.hk2.api.DuplicateServiceException
-
Called by the system to initialize the existing descriptor
that matched
- DynamicConfiguration - Interface in org.glassfish.hk2.api
-
- DynamicConfigurationListener - Interface in org.glassfish.hk2.api
-
A service that listens for dynamic configuration changes.
- DynamicConfigurationService - Interface in org.glassfish.hk2.api
-
The dynamic configuration service is the source of
DynamicConfiguration
instances, which can be used to bind and unbind entities into the system
- 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
-
- getAllAddedDescriptors() - Method in interface org.glassfish.hk2.api.TwoPhaseTransactionData
-
Gets all ActiveDescriptors that will be added in this transaction
- getAllRemovedDescriptors() - Method in interface org.glassfish.hk2.api.TwoPhaseTransactionData
-
Gets all ActiveDescriptors that will be removed by this transaction
- 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 all services from this locator that implement this contract or have this
implementation and have the provided qualifiers
- getAllServices(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets all services from this locator that implement this contract or have this
implementation and have the provided qualifiers
- getAllServices(Annotation, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets all services from this locator that have the provided qualifiers
- getAllServices(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets all services from this locator that match the provided
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
-
- getCaller() - Method in interface org.glassfish.hk2.api.ValidationInformation
-
This method attempts to return the StackTraceElement
of the code calling the HK2 method that caused
this validation to occur
- 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
ClassAnalyzer
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
- getConstructorInterceptors(Constructor<?>) - Method in interface org.glassfish.hk2.api.InterceptionService
-
- 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
- getDefaultUnqualified() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This returns the default
Unqualified
annotation that will be
put on all injection points that do not have any qualifiers.
- 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.
- getDescriptor() - Method in class org.glassfish.hk2.utilities.ContextualInput
-
Returns the descriptor associated with this contextual creation
- getDescriptorFileInformation() - Method in interface org.glassfish.hk2.api.DescriptorFileFinderInformation
-
- getDescriptorFileInformation() - Method in class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
- getDescriptorFilter() - Method in interface org.glassfish.hk2.api.InterceptionService
-
- getDescriptorFilter() - Static method in class org.glassfish.hk2.internal.StarFilter
-
Gets the static instance of this filter
- 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 event this describes.
- getExecutor() - Method in interface org.glassfish.hk2.api.ImmediateController
-
Returns the executor that is currently in use by the Immediate subsystem
- getExecutor() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- getExistingDescriptor() - Method in exception org.glassfish.hk2.api.DuplicateServiceException
-
Gets the descriptor that matched one of the idempotent
filters
- 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.utilities.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.utilities.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.
- getHandle() - Method in class org.glassfish.hk2.internal.HandleAndService
-
- getImmediateAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- getImmediateState() - Method in interface org.glassfish.hk2.api.ImmediateController
-
Returns the state the system is currently running under
- getImmediateState() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- 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
-
- getImplementationType() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
If known the Type of the implementation.
- getImplementationType() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
-
- getImplementationType() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
-
- getInheritableThreadAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- 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() - Method in interface org.glassfish.hk2.api.Injectee
-
This returns the ActiveDescriptor of the injectee
if it is known
- 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.
- getInjecteeDescriptor() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- 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
- getInstantiationData() - Method in interface org.glassfish.hk2.api.InstantiationService
-
This method may be called from inside the
implementation of
Factory.provide()
method to get more information about the
reason for instantiation.
- 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.
- getLookupFilter() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- getMessage() - Method in exception org.glassfish.hk2.api.MultiException
-
Gets the message associated with this exception
- 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.
- getMethodInterceptors(Method) - Method in interface org.glassfish.hk2.api.InterceptionService
-
- getMode() - Method in class org.glassfish.hk2.utilities.DuplicatePostProcessor
-
Returns the mode of this DuplicatePostProcessorMode of this processor
- 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
-
- getNeutralContextClassLoader() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This returns the value of neutralContextClassLoader.
- 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
- getParameterPosition() - Method in interface org.glassfish.hk2.api.MethodParameter
-
- getParameterPosition() - Method in class org.glassfish.hk2.utilities.MethodParameterImpl
-
- getParameterTypes() - Method in class org.glassfish.hk2.api.TypeLiteral
-
Gets the types associated with this literal
- getParameterValue() - Method in interface org.glassfish.hk2.api.MethodParameter
-
- getParameterValue() - Method in class org.glassfish.hk2.utilities.MethodParameterImpl
-
- 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 interface org.glassfish.hk2.api.ServiceLocator
-
Gets the parent service locator for this locator
- getParent() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
- getParentInjectee() - Method in interface org.glassfish.hk2.api.InstantiationData
-
- getPerLookupAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- getPerThreadAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- getPopulator() - Method in interface org.glassfish.hk2.api.DynamicConfigurationService
-
Returns a populator for this service locator that can be used to
automatically read in hk2 inhabitant files (or some other external
source)
- 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.AliasDescriptor
-
- getQualifiers() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getRank(Class<?>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Gets the rank from the given class
- 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
-
Gets the base associated class from this type
- getReportToErrorService() - Method in exception org.glassfish.hk2.api.MultiException
-
Returns true if this exception should be reported
to the error service when thrown during a creation
or deletion of a service
- 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
-
- getRoot() - Method in class org.glassfish.hk2.utilities.ContextualInput
-
Returns the
ServiceHandle
root associated with this
contextual creation
- 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.InheritableThreadContext
-
- getScope() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- getScope() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
- getScope() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- 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
-
- getScopeAsAnnotation() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Returns the scope as an
Annotation
implementation that this ActiveDescriptor belongs to
- getScopeAsAnnotation() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- 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() - Method in class org.glassfish.hk2.internal.HandleAndService
-
- 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.
- getServiceData() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Service data can be set on a service handle.
- 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
-
- getSingletonAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
- 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.
- getSubHandles() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Returns a list of subordinate subhandles
to this root handle
- getThreadInactivityTimeout() - Method in interface org.glassfish.hk2.api.ImmediateController
-
Returns the time in milliseconds a thread will wait for new Immediate
services before dying
- getThreadInactivityTimeout() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- getTopicQualifiers() - Method in interface org.glassfish.hk2.api.messaging.Topic
-
The qualifiers associated with this Topic.
- getTopicType() - Method in interface org.glassfish.hk2.api.messaging.Topic
-
Gets the type of the topic, in order to match the message
to subscribers
- 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
-
- getUserData(String) - Method in interface org.glassfish.hk2.api.HK2Invocation
-
Gets the user data associated with the given key
- getValidationFilter() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- 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.
- getValidator() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- GreedyDefaultImplementation - Annotation Type in org.glassfish.hk2.utilities
-
This annotation can be put on interfaces in order
to provide the
GreedyResolver
the default
implementation that should be bound when this
interface is injected and there are no other
implementations
- GreedyResolver - Class in org.glassfish.hk2.utilities
-
This is a greedy resolve that will add in any class
that has failed to be resolved.
- Immediate - Annotation Type in org.glassfish.hk2.api
-
Immediate is a scope that operates like
Singleton
scope, except that instances are created as soon as their
corresponding
Descriptor
s are added.
- ImmediateContext - Class in org.glassfish.hk2.utilities
-
- ImmediateController - Interface in org.glassfish.hk2.api
-
This service is advertised when the Immediate service is put into the
registry.
- ImmediateController.ImmediateServiceState - Enum in org.glassfish.hk2.api
-
- ImmediateErrorHandler - Interface in org.glassfish.hk2.utilities
-
Implementations of this service will be called whenever
an Immediate scoped service fails
- ImmediateHelper - Class in org.glassfish.hk2.internal
-
The implementation of the immediate context.
- ImmediateLocalLocatorFilter - Class in org.glassfish.hk2.internal
-
Filter only picks up local services
- ImmediateLocalLocatorFilter(long) - Constructor for class org.glassfish.hk2.internal.ImmediateLocalLocatorFilter
-
- ImmediateScopeModule - Class in org.glassfish.hk2.utilities
-
This module can be used to enable the
Immediate
scope
feature.
- ImmediateScopeModule() - Constructor for class org.glassfish.hk2.utilities.ImmediateScopeModule
-
- in(Annotation) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- 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(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.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(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
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.
- 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
-
Implementation created by the builder
- IndexedFilterImpl(String, String) - Constructor for class org.glassfish.hk2.internal.IndexedFilterImpl
-
Created by the builder
- InhabitantAnnotation - Annotation Type in org.jvnet.hk2.annotations
-
Meta-annotation indicating that the annotation designates
a resident service of a
ServiceLocator
.
- InheritableThread - Annotation Type in org.glassfish.hk2.api
-
InheritableThread is a scope that operates like
PerThread
scope, except with the caveat that
InheritableThread scoped services provide inheritance of values from parent
thread to child thread.
- InheritableThreadContext - Class in org.glassfish.hk2.internal
-
- InheritableThreadContext() - Constructor for class org.glassfish.hk2.internal.InheritableThreadContext
-
- InheritableThreadScopeModule - Class in org.glassfish.hk2.utilities
-
- InheritableThreadScopeModule() - Constructor for class org.glassfish.hk2.utilities.InheritableThreadScopeModule
-
- 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
- InjectionPointIndicator - Annotation Type in org.glassfish.hk2.api
-
This annotation is placed on another annotation to indicate that the annotation
may be used to indicate an injection point
- 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.
- InstantiationData - Interface in org.glassfish.hk2.api
-
- InstantiationService - Interface in org.glassfish.hk2.api
-
This service is used to get information about
the creation of a service from an
implementation of
Factory
.
- InterceptionService - Interface in org.glassfish.hk2.api
-
This service is implemented in order to configure
interceptors on methods or constructors provided by
hk2 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.InheritableThreadContext
-
- isActive() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- isActive() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- 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
-
- isProxyForSameScope() - Method in interface org.glassfish.hk2.api.Descriptor
-
This value determines whether or not this service should be
proxied when being injected into other services of the same
scope.
- isProxyForSameScope() - 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
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
-
- PerThreadScopeModule - Class in org.glassfish.hk2.utilities
-
This module can be used to enable the
PerThread
scope
feature.
- PerThreadScopeModule() - Constructor for class org.glassfish.hk2.utilities.PerThreadScopeModule
-
- populate(DescriptorFileFinder, PopulatorPostProcessor...) - Method in interface org.glassfish.hk2.api.Populator
-
This method can be used to populate the service locator with files that
have been written out using the
DescriptorImpl
writeObject method.
- populate() - Method in interface org.glassfish.hk2.api.Populator
-
This method will populate the service locator using the system classloader to
find the hk2-locator files from the default location of META-INF/hk2-locator/default.
- Populator - Interface in org.glassfish.hk2.api
-
Implementations of this interface are used to populate HK2
service locators from inhabitants files
- PopulatorPostProcessor - Interface in org.glassfish.hk2.api
-
This interface allows the customization of services read in from
an external source.
- 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.
- postConstructFailed(ActiveDescriptor<?>, Throwable) - Method in interface org.glassfish.hk2.utilities.ImmediateErrorHandler
-
This is called whenever an immediate service fails in its constructor or
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.
- preDestroyFailed(ActiveDescriptor<?>, Throwable) - Method in interface org.glassfish.hk2.utilities.ImmediateErrorHandler
-
This is called whenever an immediate service fails in its preDestroy method.
- prepareDynamicConfiguration(TwoPhaseTransactionData) - Method in interface org.glassfish.hk2.api.TwoPhaseResource
-
This method is called prior to any changes being made to the
ServiceLocator
but after the IdempotentFilters are called.
- 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
-
Prints the stack trace of this exception to the given PrintStream
- printStackTrace(PrintWriter) - Method in exception org.glassfish.hk2.api.MultiException
-
Prints the stack trace of this exception to the given PrintWriter
- process(ServiceLocator, DescriptorImpl) - Method in interface org.glassfish.hk2.api.PopulatorPostProcessor
-
This method can be used to alter the descriptor read in.
- process(ServiceLocator, DescriptorImpl) - Method in class org.glassfish.hk2.utilities.ClassLoaderPostProcessor
-
- process(ServiceLocator, DescriptorImpl) - Method in class org.glassfish.hk2.utilities.DuplicatePostProcessor
-
- 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
- ProxyForSameScope - 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 use a proxy when being injected into a service
from the same scope.
- proxyForSameScope() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- proxyForSameScope(boolean) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
-
- proxyForSameScope() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- proxyForSameScope(boolean) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
-
- proxyForSameScope() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will cause the isProxyForSameScope field of the returned
descriptor to return true (it will force this
descriptor to use proxies even when injecting into
the same scope).
- proxyForSameScope(boolean) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will cause the isProxyForSameScope field of the returned
descriptor to return the given value.
- proxyForSameScope(boolean) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Set proxyForSameScope flag on the binding
- proxyForSameScope(boolean) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Set proxyForSameScope flag on the binding
- proxyForSameScope() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the isProxyForSameScope field of the returned
descriptor to return true (it will force this
descriptor to proxy even when injecting into the same scope).
- proxyForSameScope(boolean) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the isProxyForSameScope field of the returned
descriptor to return the given value.
- publish(T) - Method in interface org.glassfish.hk2.api.messaging.Topic
-
Publishes a message to all subscribers
- 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
-
Annotation placed on classes that are to be automatically added
to an hk2
ServiceLocator
.
- 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
-
- ServiceLocatorFactory.CreatePolicy - Enum in org.glassfish.hk2.api
-
Tells the create method what to do if an existing ServiceLocator
with the given name exists
- 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
-
Sets the name of the service that will be used
to analyze this class
- setDefaultClassAnalyzerName(String) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Sets the name of the default class analyzer that should be used for all
Descriptor
s that return null as their class analyzer.
- setDefaultUnqualified(Unqualified) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This sets the default
Unqualified
annotation that will be
put on all injection points that do not have any qualifiers.
- 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
- setExecutor(Executor) - Method in interface org.glassfish.hk2.api.ImmediateController
-
Sets the executor to be used by the Immediate subsystem.
- setExecutor(Executor) - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- setFactoryId(Long, Long) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Sets the locator and serviceId for the factory.
- setImmediateState(ImmediateController.ImmediateServiceState) - Method in interface org.glassfish.hk2.api.ImmediateController
-
Sets the state the system is currently running under
- setImmediateState(ImmediateController.ImmediateServiceState) - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- setImplementation(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the implementation
- setImplementationType(Type) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- setInjecteeDescriptor(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets the descriptor to be associated with this injectee
- 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
-
Sets the name of this descriptor.
- setName(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the name this descriptor should have
- setNeutralContextClassLoader(boolean) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
This sets the value of neutralContextClassLoader.
- 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
-
Sets whether or not this descriptor should be proxied
- setProxyForSameScope(Boolean) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets whether or not to proxy this descriptor for other
services in the same scope
- 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
- setReportToErrorService(boolean) - Method in exception org.glassfish.hk2.api.MultiException
-
Sets if this exception should be reported
to the error service when thrown during a creation
or deletion of a service
- 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
- setScopeAnnotation(Class<? extends Annotation>) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Sets the scope annotation for this descriptor
- setScopeAsAnnotation(Annotation) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- setSelf(boolean) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets whether or not this is a self-referencing injectee
- setServiceData(Object) - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Service data can be set on a service handle.
- setServiceId(Long) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Sets the service id for this descriptor
- setThreadInactivityTimeout(long) - Method in interface org.glassfish.hk2.api.ImmediateController
-
Sets the time in milliseconds a thread will wait for new Immediate
services before dying
- setThreadInactivityTimeout(long) - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- setUnqualified(Unqualified) - Method in class org.glassfish.hk2.utilities.InjecteeImpl
-
Sets the unqualified annotation to be associated with this injectee
- setUserData(String, Object) - Method in interface org.glassfish.hk2.api.HK2Invocation
-
Sets the user data to be associated with the invocation
frame.
- 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.InheritableThreadContext
-
- shutdown() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- shutdown() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
For when the server shuts down
- 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
-
For matching an exact descriptor
- StarFilter - Class in org.glassfish.hk2.internal
-
A filter that gets everything! w00t w00t!
- StarFilter() - Constructor for class org.glassfish.hk2.internal.StarFilter
-
- Stub - Annotation Type in org.glassfish.hk2.utilities
-
When this annotation is placed on an abstract class the methods of
the class that are abstract will be generated into a subclass by
the hk2-metadata-generator along with an empty
Service
annotation
- Stub.Type - Enum in org.glassfish.hk2.utilities
-
- SubscribeTo - Annotation Type in org.glassfish.hk2.api.messaging
-
This annotation is put onto one parameter of a method to indicate that
this method should be called whenever a Topic sends a message.
- 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.InheritableThreadContext
-
- supportsNullCreation() - Method in class org.glassfish.hk2.internal.PerThreadContext
-
- supportsNullCreation() - Method in class org.glassfish.hk2.utilities.ImmediateContext
-
- 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.
- validate(ValidationInformation) - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
- 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
-
- value() - Method in class org.glassfish.hk2.utilities.UnqualifiedImpl
-
The set of annotations that must not be associated with
the service being injected
- 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.ImmediateController.ImmediateServiceState
-
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.ServiceLocatorFactory.CreatePolicy
-
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.
- valueOf(String) - Static method in enum org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.glassfish.hk2.utilities.Stub.Type
-
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.ImmediateController.ImmediateServiceState
-
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.ServiceLocatorFactory.CreatePolicy
-
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.
- values() - Static method in enum org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.glassfish.hk2.utilities.Stub.Type
-
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