Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- 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(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
- AbstractActiveDescriptor(Descriptor) - Constructor for class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Creates a NON reified ActiveDescriptor based on a copy of the given baseDescriptor.
- 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
-
This method creates an
ActiveDescriptorBuilder
, whose job it is to create an unreifiedActiveDescriptor
. - 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(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.
- 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>) - 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 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 class org.glassfish.hk2.utilities.binding.AbstractBinder
- 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, boolean, FactoryDescriptors...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Adds the given factory descriptors to the service locator
- addFactoryDescriptors(ServiceLocator, 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(String, String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Adds a value to the list of values associated with this key
- 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.
- 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
- analyzer() - Element in annotation interface org.jvnet.hk2.annotations.Service
-
The name of the
ClassAnalyzer
service that should be used to analyze this class - 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
-
Set the name of the
ClassAnalyzer
on the binding. - analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Set the name of the
ClassAnalyzer
on the binding. - analyzeWith(String) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Set the name of the
ClassAnalyzer
on the binding. - 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.
B
- bind(Class<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new class-based service binding.
- 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(Descriptor) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the given descriptor to this Module.
- 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 interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the given descriptor to this Module.
- bind(Descriptor, boolean) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
- bind(DynamicConfiguration) - Method in interface org.glassfish.hk2.utilities.Binder
-
This method will be called by the
ServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method for each binder given. - bind(DynamicConfiguration) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
- bind(FactoryDescriptors) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the descriptors found in the
FactoryDescriptors
. - bind(FactoryDescriptors) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
This method will bind the descriptors found in the
FactoryDescriptors
. - bind(FactoryDescriptors, boolean) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
This method will bind the descriptors found in the
FactoryDescriptors
. - 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(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.
- bind(T) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new instance-based service binding.
- BIND - Enum constant in enum class org.glassfish.hk2.api.Operation
-
The descriptor is being bound
- bindAsContract(Class<T>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new class-based service binding.
- bindAsContract(Type) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new generic type-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
-
The binder is used in conjunction with the
ServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method in order to add (or remove) services to a ServiceLocator. - bindFactory(Class<? extends Factory<T>>) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
-
Start building a new factory class-based service binding.
- 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(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() - 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(Class<? extends Annotation>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- buildFactory(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
Generates a factory descriptor that can be used in binding operations.
- buildFactory(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- buildFactory(String) - 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
C
- CLASS - Enum constant in enum class org.glassfish.hk2.api.DescriptorType
-
This is a class based descriptor, and so the associated implementation class must have a proper constructor (either a no-argument constructor or one marked with Inject)
- 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
-
This is a
PopulatorPostProcessor
that adds anHK2Loader
based on a ClassLoader. - ClassLoaderPostProcessor(ClassLoader) - Constructor for class org.glassfish.hk2.utilities.ClassLoaderPostProcessor
-
Creates a
PopulatorPostProcessor
that will set the HK2Loader of descriptors added withPopulator.populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)
. - ClassLoaderPostProcessor(ClassLoader, boolean) - Constructor for class org.glassfish.hk2.utilities.ClassLoaderPostProcessor
-
Creates a
PopulatorPostProcessor
that will set the HK2Loader of descriptors added withPopulator.populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)
- 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.
- ClasspathDescriptorFileFinder(String, ClassLoader) - Constructor for class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
This constructor can be used to select the particular classloader to search for all files from the given locator directory.
- CleanerFactory - Class in org.glassfish.hk2.utilities
-
CleanerFactory provides a Cleaner reference which is created on the first reference to the CleanerFactory.
- CleanerFactory() - Constructor for class org.glassfish.hk2.utilities.CleanerFactory
- 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
-
Used by several contexts for keeping the inputs of
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
. - ContextualInput(ActiveDescriptor<T>, ServiceHandle<?>) - Constructor for class org.glassfish.hk2.utilities.ContextualInput
-
The inputs from the
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
method - Contract - Annotation Interface 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 Interface in org.glassfish.hk2.api
-
This annotation is put on annotations that are used to mark things as hk2 contracts.
- ContractsProvided - Annotation Interface in org.jvnet.hk2.annotations
-
An explicit list of contracts provided.
- create() - Static method in class org.glassfish.hk2.utilities.CleanerFactory
-
This Cleaner will run on a thread whose context class loader is
null
. - 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) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- create(String, ServiceLocator) - 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(String, ServiceLocator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates or finds a ServiceLocator.
- create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- create(String, ServiceLocator, ServiceLocatorGenerator, ServiceLocatorFactory.CreatePolicy) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Creates a ServiceLocator.
- create(String, ServiceLocator, ServiceLocatorGenerator, ServiceLocatorFactory.CreatePolicy) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- create(ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.ActiveDescriptor
-
Creates an instance of the ActiveDescriptor.
- create(ServiceHandle<?>) - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
- 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() - 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(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.
- 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
-
Creates a ServiceHandle that will always return the given object from the
ServiceHandle.getService()
method. - 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) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns a filter that will return true an IndexedFilter that will match the
DescriptorImpl.equals(Object)
return - createDescriptorFilter(Descriptor, boolean) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Returns a filter that will return true an IndexedFilter that will match the
DescriptorImpl.equals(Object)
return - 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
-
This method returns a
DynamicConfiguration
for use with adding and removing services to the givenServiceLocator
. - 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 Interface in org.glassfish.hk2.api
-
Indicates that a method should be customized.
- Customizer - Annotation Interface 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.
D
- 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
-
This is a simple implementation of the
DescriptorBuilder
- 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
-
Returns information about the
InputStream
returned byDescriptorFileFinder.findDescriptorFiles()
that can be used to give better information when one of the streams fails. - 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(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
- DescriptorImpl(Descriptor) - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
-
Does a deep copy of the incoming descriptor
- DescriptorType - Enum Class in org.glassfish.hk2.api
-
This describes the type of descriptor
- DescriptorVisibility - Enum Class in org.glassfish.hk2.api
-
This enumeration determines how visibility of a descriptor
- destroy() - Method in interface org.glassfish.hk2.api.ServiceHandle
-
Deprecated.since 2.6. Use
ServiceHandle.close()
instead - destroy(String) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Removes the ServiceLocator with this name
- destroy(String) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- destroy(ServiceLocator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Removes the given ServiceLocator
- destroy(ServiceLocator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- DESTROY - Enum constant in enum class org.glassfish.hk2.api.ServiceLocatorFactory.CreatePolicy
-
Destroy the existing ServiceLocator
- destroyOne(ActiveDescriptor<?>) - Method in interface org.glassfish.hk2.api.Context
-
This method is called when
ServiceHandle.destroy()
method is called. - 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 Class 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
- DuplicateServiceException(Descriptor, String) - Constructor for exception org.glassfish.hk2.api.DuplicateServiceException
-
Called by the system to initialize the existing descriptor that matched
- DYNAMIC_CONFIGURATION_FAILURE - Enum constant in enum class org.glassfish.hk2.api.ErrorType
-
This type is set if a dynamic configuration operation fails
- DynamicConfiguration - Interface in org.glassfish.hk2.api
-
This class is used to add
Descriptor
s to aServiceLocator
instance. - 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
E
- enableGreedyResolution(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Enables greedy service resolution in this service locator by adding the
GreedyResolver
into the service locator. - enableImmediateScope(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will add the ability to use the
Immediate
scope to the given locator. - enableImmediateScopeSuspended(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will add the ability to use the
Immediate
scope to the given locator. - enableInheritableThreadScope(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will add the ability to use the
InheritableThread
scope to the given locator. - enableLookupExceptions(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will cause lookup operations to throw exceptions when exceptions are encountered in underlying operations such as classloading.
- EnableLookupExceptionsModule - Class in org.glassfish.hk2.utilities
-
This module can be used to enable exceptions to be thrown from getService API when a descriptor throws an exception during reification or other errors.
- EnableLookupExceptionsModule() - Constructor for class org.glassfish.hk2.utilities.EnableLookupExceptionsModule
- enablePerThreadScope(ServiceLocator) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will add the ability to use the
PerThread
scope to the given locator. - equals(Object) - Method in class org.glassfish.hk2.api.AnnotationLiteral
- equals(Object) - Method in class org.glassfish.hk2.api.TypeLiteral
- equals(Object) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
- equals(Object) - Method in class org.glassfish.hk2.utilities.AliasDescriptor
- equals(Object) - Method in class org.glassfish.hk2.utilities.ContextualInput
- equals(Object) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
This equals matches only if the following fields of the descriptor match: implementation contracts name scope qualifiers descriptorType descriptorVisibility metadata proxiable proxyForSameScope analysisName
- equals(Object) - Method in class org.glassfish.hk2.utilities.FactoryDescriptorsImpl
- ERROR - Enum constant in enum class org.glassfish.hk2.api.ServiceLocatorFactory.CreatePolicy
-
Throw an IllegalStateException
- ErrorInformation - Interface in org.glassfish.hk2.api
-
This class has information in it about the error that has occurred
- ErrorService - Interface in org.glassfish.hk2.api
-
This interface should be implemented by those who wish to be notified of error conditions that occur within HK2.
- ErrorType - Enum Class in org.glassfish.hk2.api
-
This enumeration describes the types of errors that might occur
- EVENT_RECEIVER_TYPES - Static variable in annotation interface org.glassfish.hk2.api.messaging.MessageReceiver
- EXCEPTIONS - Enum constant in enum class org.glassfish.hk2.utilities.Stub.Type
-
The generated methods of this stub will throw an UnsupportedOperationException
F
- Factory<T> - Interface in org.glassfish.hk2.api
-
This interface should be implemented in order to provide a factory for another type.
- FactoryDescriptors - Interface in org.glassfish.hk2.api
-
This is a convenience class that links together the factory descriptor as a factory for another type and the factory as a service itself.
- FactoryDescriptorsImpl - Class in org.glassfish.hk2.utilities
-
This is an implementation of FactoryDescriptors that can be used by hk2 uses when creating descriptors that describe a
Factory
- FactoryDescriptorsImpl(Descriptor, Descriptor) - Constructor for class org.glassfish.hk2.utilities.FactoryDescriptorsImpl
-
This creates a descriptor pair describing a
Factory
and the associatedFactory.provide()
method - FAILURE_TO_REIFY - Enum constant in enum class org.glassfish.hk2.api.ErrorType
-
This type is set if an ActiveDescriptor fails to reify during a lookup operation
- failWhenMethodNotFound() - Element in annotation interface org.glassfish.hk2.api.Customizer
-
If true then if a bean method is not mirrored in the customizer a RuntimeException will be thrown.
- Filter - Interface in org.glassfish.hk2.api
-
This object is used to search for items in the service registry
- filterMatches(Descriptor, Filter) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
Determines if the given descriptor matches the given filter.
- find(String) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Finds the ServiceLocator with this name
- find(String) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- findDescriptorFiles() - Method in interface org.glassfish.hk2.api.DescriptorFileFinder
-
Returns a list of input streams for hk2 locator files
- findDescriptorFiles() - Method in class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
-
Simple implementation of the findDescriptorFiles which does a simple getResources on the classloader in order to find the hk2 descriptor files
- findOneDescriptor(ServiceLocator, Descriptor) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Finds a descriptor in the given service locator.
- findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.Context
-
Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance.
- findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.internal.InheritableThreadContext
- findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.internal.PerThreadContext
- findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.utilities.ImmediateContext
- findOrCreateService(ServiceLocator, Class<T>, Annotation...) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will first attempt to find a service corresponding to the type and qualifiers passed in to the method, and if one is found simply returns it.
G
- 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(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(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(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a list of
ServiceHandle
whoseActiveDescriptor
s match the supplied filter. - getAllServices(Annotation, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets all services from this locator that have the provided qualifiers
- 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(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
-
The single chosen constructor of a service that passes the
InterceptionService.getDescriptorFilter()
method will be passed to this method to determine if it will intercepted - 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
-
This list must have the same cardinality as
DescriptorFileFinder.findDescriptorFiles()
. - getDescriptorFileInformation() - Method in class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
- getDescriptorFilter() - Method in interface org.glassfish.hk2.api.InterceptionService
-
If the returned filter returns true then the methods of the service will be passed to
InterceptionService.getMethodInterceptors(Method)
to determine if a method should be intercepted and the constructor of the service will be passed toInterceptionService.getConstructorInterceptors(Constructor)
to determine if the constructor should be intercepted - 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
-
Returns a
Immediate
Annotation
implementation - 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
-
Returns a
InheritableThread
Annotation
implementation - 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() - 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
- 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
-
Each non-final method of a service that passes the
InterceptionService.getDescriptorFilter()
method will be passed to this method to determine if it will intercepted - 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
-
Returns the index of the parameter for which the
MethodParameter.getParameterValue()
result should go - 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
-
The value that should be given to the method at the parameter position specified by
MethodParameter.getParameterPosition()
- 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
-
Returns the
Injectee
of the service that is being instantiated with thisFactory.provide()
method - getPerLookupAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Returns a
PerLookup
Annotation
implementation - getPerThreadAnnotation() - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Returns a
PerThread
Annotation
implementation - 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() - Method in class org.glassfish.hk2.internal.HandleAndService
- 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(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, 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, 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
-
This method should be called by code resolving injectee's on behalf of some root service, usually by an implementation of
InjectionResolver.resolve(Injectee, ServiceHandle)
. - 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(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, 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>) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
. - getServiceHandle(ActiveDescriptor<T>, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Gets a
ServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
. - 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
-
Returns a
Singleton
Annotation
implementation - 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 aDescriptor
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 Interface 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.
H
- HandleAndService - Class in org.glassfish.hk2.internal
-
Data structure with the handle and the service
- HandleAndService(ServiceHandle<?>, Object) - Constructor for class org.glassfish.hk2.internal.HandleAndService
- handleIterator() - Method in interface org.glassfish.hk2.api.IterableProvider
-
This version of iterator returns an iterator of ServiceHandles rather than returning the services (which then have no way to be properly destroyed)
- has(String, String) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- has(String, String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- has(String, String) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
An instance of data to be associated with this descriptor
- has(String, String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
An instance of data to be associated with this descriptor
- has(String, List<String>) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- has(String, List<String>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- has(String, List<String>) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
An instance of data to be associated with this descriptor
- has(String, List<String>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
An instance of data to be associated with this descriptor
- hashCode() - Method in class org.glassfish.hk2.api.AnnotationLiteral
- hashCode() - Method in class org.glassfish.hk2.api.TypeLiteral
- hashCode() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
- hashCode() - Method in class org.glassfish.hk2.utilities.AliasDescriptor
- hashCode() - Method in class org.glassfish.hk2.utilities.ContextualInput
- hashCode() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
- hashCode() - Method in class org.glassfish.hk2.utilities.FactoryDescriptorsImpl
- HK2_DEFAULT_TOPIC_DISTRIBUTOR - Static variable in interface org.glassfish.hk2.api.messaging.TopicDistributionService
-
The name of the default TopicDistributionService that is added by
ServiceLocatorUtilities
- HK2Exception - Exception in org.glassfish.hk2.api
-
Base class for HK2 defined checked exceptions
- HK2Exception() - Constructor for exception org.glassfish.hk2.api.HK2Exception
- HK2Exception(String) - Constructor for exception org.glassfish.hk2.api.HK2Exception
- HK2Exception(String, Throwable) - Constructor for exception org.glassfish.hk2.api.HK2Exception
- HK2Exception(Throwable) - Constructor for exception org.glassfish.hk2.api.HK2Exception
- HK2Invocation - Interface in org.glassfish.hk2.api
-
This is an interface that is also implemented by the
MethodInvocation
object passed to the invoke method ofMethodInterceptor
and theConstructorInvocation
object passed to the invoke method ofConstructorInterceptor
. - HK2Loader - Interface in org.glassfish.hk2.api
-
This class is responsible for loading classes, and different implementations can be used for different descriptors.
- HK2LoaderImpl - Class in org.glassfish.hk2.utilities
-
This is an implementation of an
HK2Loader
that uses a given classloader - HK2LoaderImpl() - Constructor for class org.glassfish.hk2.utilities.HK2LoaderImpl
-
Initializes this HK2Loader with the system classloader
- HK2LoaderImpl(ClassLoader) - Constructor for class org.glassfish.hk2.utilities.HK2LoaderImpl
-
Initializes this HK2Loader with the given ClassLoader
- HK2RuntimeException - Exception in org.glassfish.hk2.api
-
Base class for HK2 defined runtime exceptions
- HK2RuntimeException() - Constructor for exception org.glassfish.hk2.api.HK2RuntimeException
- HK2RuntimeException(String) - Constructor for exception org.glassfish.hk2.api.HK2RuntimeException
- HK2RuntimeException(String, Throwable) - Constructor for exception org.glassfish.hk2.api.HK2RuntimeException
- HK2RuntimeException(Throwable) - Constructor for exception org.glassfish.hk2.api.HK2RuntimeException
I
- IgnoringErrorService - Class in org.glassfish.hk2.utilities
-
This is an implementation of
ErrorService
that simply swallows the exception caught. - IgnoringErrorService() - Constructor for class org.glassfish.hk2.utilities.IgnoringErrorService
- Immediate - Annotation Interface in org.glassfish.hk2.api
-
Immediate is a scope that operates like
Singleton
scope, except that instances are created as soon as their correspondingDescriptor
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 Class 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
- IMPLEMENTATION_ONLY - Enum constant in enum class org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Uses the
Descriptor.getImplementation()
method andDescriptor.getDescriptorType()
to compare descriptors - in(Annotation) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- in(Annotation) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
A scope to be associated with this descriptor object.
- in(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Scope a binding.
- 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(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 class org.glassfish.hk2.internal.DescriptorBuilderImpl
- 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 Interface in org.jvnet.hk2.annotations
-
Meta-annotation indicating that the annotation designates a resident service of a
ServiceLocator
. - InheritableThread - Annotation Interface 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
-
This module can be used to enable the
InheritableThread
scope feature. - 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 Interface 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 Class 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
-
Contains information about the caller of a
Factory.provide()
method - 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
- isShutdown() - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Returns whether the state of this service locator is shutdown.
- 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.
J
- JustInTimeInjectionResolver - Interface in org.glassfish.hk2.api
-
The JustInTimeInjectionResolver is called when an injection point cannot find anything to inject.
- justInTimeResolution(Injectee) - Method in interface org.glassfish.hk2.api.JustInTimeInjectionResolver
-
This method will be called whenever an injection point cannot be resolved.
- justInTimeResolution(Injectee) - Method in class org.glassfish.hk2.utilities.GreedyResolver
L
- lifecycleEvent(InstanceLifecycleEvent) - Method in interface org.glassfish.hk2.api.InstanceLifecycleListener
-
This method will be called when any lifecycle event occurs.
- link(Class<?>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This method links an implementation class with a
DescriptorBuilder
, to be used to further build theDescriptor
. - link(Class<?>, boolean) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This method links an implementation class with a
DescriptorBuilder
, to be used to further build theDescriptor
- link(String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This method links an implementation class with a
DescriptorBuilder
, to be used to further build theDescriptor
. - link(String, boolean) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
-
This method links an implementation class with a
DescriptorBuilder
, to be used to further build theDescriptor
. - loadClass(String) - Method in interface org.glassfish.hk2.api.HK2Loader
-
Loads a class given the class name to instantiate
- loadClass(String) - Method in class org.glassfish.hk2.utilities.HK2LoaderImpl
- loadedBy(HK2Loader) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Custom HK2 loader to be used when service class is about to be loaded.
- loadedBy(HK2Loader) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Custom HK2 loader to be used when service class is about to be loaded.
- loadedBy(HK2Loader) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Custom HK2 loader to be used when service class is about to be loaded.
- loadedBy(HK2Loader) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Custom HK2 loader to be used when service class is about to be loaded.
- LOCAL - Enum constant in enum class org.glassfish.hk2.api.DescriptorVisibility
-
This descriptor may only be seen by the service locator in which it is bound, and not by any of that service locators children
- localOnly() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- localOnly() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- localOnly() - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
This will cause the descriptorVisibility field of the returned descriptor to return LOCAL
- localOnly() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the descriptorVisibility field of the returned descriptor to return LOCAL
- locatorAdded(ServiceLocator) - Method in interface org.glassfish.hk2.api.ServiceLocatorListener
-
This method is called whenever a ServiceLocator has been added to the set of ServiceLocators.
- locatorDestroyed(ServiceLocator) - Method in interface org.glassfish.hk2.api.ServiceLocatorListener
-
This method is called whenever a ServiceLocator will be removed from the set of ServiceLocators.
- LOOKUP - Enum constant in enum class org.glassfish.hk2.api.Operation
-
The descriptor is being looked up
M
- matches(Descriptor) - Method in interface org.glassfish.hk2.api.Filter
-
Returns true if this filter matches the given object
- matches(Descriptor) - Method in class org.glassfish.hk2.internal.ImmediateLocalLocatorFilter
- matches(Descriptor) - Method in class org.glassfish.hk2.internal.IndexedFilterImpl
- matches(Descriptor) - Method in class org.glassfish.hk2.internal.SpecificFilterImpl
- matches(Descriptor) - Method in class org.glassfish.hk2.internal.StarFilter
- matches(Descriptor) - Method in class org.glassfish.hk2.utilities.OrFilter
- MessageReceiver - Annotation Interface in org.glassfish.hk2.api.messaging
-
This qualifier must be placed on any hk2 descriptor that can receive messages.
- metadata() - Element in annotation interface org.jvnet.hk2.annotations.Service
-
Additional metadata that goes into the inhabitants file.
- Metadata - Annotation Interface in org.glassfish.hk2.api
-
This annotation marks a method of an annotation as providing a value that should be placed into the metadata of a
Descriptor
. - MethodParameter - Interface in org.glassfish.hk2.api
-
This is used to describe the values to be given to the method in the
ServiceLocator.assistedInject(Object, java.lang.reflect.Method, MethodParameter...)
method - MethodParameterImpl - Class in org.glassfish.hk2.utilities
-
An implementation of
MethodParameter
that has immutable position and value - MethodParameterImpl(int, Object) - Constructor for class org.glassfish.hk2.utilities.MethodParameterImpl
- MultiException - Exception in org.glassfish.hk2.api
-
This exception can contain multiple other exceptions.
- MultiException() - Constructor for exception org.glassfish.hk2.api.MultiException
-
Creates an empty MultiException
- MultiException(Throwable) - Constructor for exception org.glassfish.hk2.api.MultiException
-
This allows for construction of a MultiException with one element in its list
- MultiException(Throwable, boolean) - Constructor for exception org.glassfish.hk2.api.MultiException
-
This allows for construction of a MultiException with one element in its list
- MultiException(List<Throwable>) - Constructor for exception org.glassfish.hk2.api.MultiException
-
This list must have at least one element in it.
N
- name() - Element in annotation interface org.glassfish.hk2.api.Customizer
-
The name of the customizer to lookup for this bean
- name() - Element in annotation interface org.jvnet.hk2.annotations.Service
-
Name of the service.
- NAME_KEY - Static variable in class org.glassfish.hk2.utilities.BuilderHelper
-
The key for the name field of the tokenized string
- named(String) - Method in interface org.glassfish.hk2.api.IterableProvider
-
Returns an IterableProvider that is further qualified with the given name
- named(String) - Method in interface org.glassfish.hk2.api.messaging.Topic
-
Returns an Topic that is further qualified with the given name
- named(String) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- named(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- named(String) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
The name for this descriptor object.
- named(String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Name
the binding. - named(String) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Name
the binding. - named(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
The name for this descriptor object.
- NamedBindingBuilder<T> - Interface in org.glassfish.hk2.utilities.binding
-
Named service binding builder.
- NamedImpl - Class in org.glassfish.hk2.utilities
-
This is an implementation of the
Named
annotation. - NamedImpl(String) - Constructor for class org.glassfish.hk2.utilities.NamedImpl
-
Creates a
Named
annotation with the given name - newBinder(Class<T>) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Get a new class-based service binding builder.
- newBinder(T) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Get a new instance-based service binding builder.
- newFactoryBinder(Class<? extends Factory<T>>) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Get a new factory class-based service binding builder.
- newFactoryBinder(Class<? extends Factory<T>>, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Get a new factory class-based service binding builder.
- newFactoryBinder(Factory<T>) - Static method in class org.glassfish.hk2.utilities.binding.BindingBuilderFactory
-
Get a new factory instance-based service binding builder.
- NORMAL - Enum constant in enum class org.glassfish.hk2.api.DescriptorVisibility
-
This descriptor may be seen by all the children service locators of the service locator in which this descriptor is bound
O
- ofRank(int) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- ofRank(int) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- ofRank(int) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
The rank to be associated with this descriptor.
- ofRank(int) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
The rank to be associated with this descriptor.
- ofType(Type) - Method in interface org.glassfish.hk2.api.IterableProvider
-
Returns an IterableProvider that is of the given type.
- ofType(Type) - Method in interface org.glassfish.hk2.api.messaging.Topic
-
Returns an Topic that is of the given type.
- onFailure(ErrorInformation) - Method in interface org.glassfish.hk2.api.ErrorService
-
This method is called when a failure occurs in the system.
- onFailure(ErrorInformation) - Method in class org.glassfish.hk2.internal.ImmediateHelper
- onFailure(ErrorInformation) - Method in class org.glassfish.hk2.utilities.IgnoringErrorService
- onFailure(ErrorInformation) - Method in class org.glassfish.hk2.utilities.RethrowErrorService
- Operation - Enum Class in org.glassfish.hk2.api
-
This defines the operations that may be validated
- Optional - Annotation Interface in org.jvnet.hk2.annotations
-
Marker annotation indicating that an instance variable or method marked with
Inject
is not required to be present at run-time. - OrFilter - Class in org.glassfish.hk2.utilities
-
Creates a filter that matches if at least one of the sub-filters is a match.
- OrFilter(Filter...) - Constructor for class org.glassfish.hk2.utilities.OrFilter
-
Creates an OrFilter whose matches methods returns true if at least one of the filters given returns true.
- org.glassfish.hk2.api - module org.glassfish.hk2.api
- org.glassfish.hk2.api - package org.glassfish.hk2.api
- org.glassfish.hk2.api.messaging - package org.glassfish.hk2.api.messaging
- org.glassfish.hk2.extension - package org.glassfish.hk2.extension
- org.glassfish.hk2.internal - package org.glassfish.hk2.internal
- org.glassfish.hk2.utilities - package org.glassfish.hk2.utilities
- org.glassfish.hk2.utilities.binding - package org.glassfish.hk2.utilities.binding
- org.jvnet.hk2.annotations - package org.jvnet.hk2.annotations
-
HK2 annotations that mark components and their required dependencies. Primary API surface of HK2.
P
- PerLookup - Annotation Interface in org.glassfish.hk2.api
-
PerLookup is the scope for objects that are created every time they are looked up.
- PerThread - Annotation Interface 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() - 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.
- 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. - 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.
- POST_PRODUCTION - Enum constant in enum class org.glassfish.hk2.api.InstanceLifecycleEventType
-
This lifecycle event is called after an object has been created
- 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.
- 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.
- 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.
- PRE_DESTRUCTION - Enum constant in enum class org.glassfish.hk2.api.InstanceLifecycleEventType
-
This lifecycle event is called prior to an object being destroyed
- PRE_PRODUCTION - Enum constant in enum class org.glassfish.hk2.api.InstanceLifecycleEventType
-
This lifecycle event is called before an object will be created
- 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.
- PreDestroy - Interface in org.glassfish.hk2.api
-
Components implementing this interface registers an interest in being notified when they are about to be decommissioned.
- 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.
- PROVIDE_METHOD - Enum constant in enum class org.glassfish.hk2.api.DescriptorType
-
This is a description of the contracts, scope and qualifiers on the
Factory.provide()
method. - Proxiable - Annotation Interface 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() - 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() - 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 class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- proxy(boolean) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- 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(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() - Element in annotation interface org.glassfish.hk2.api.Proxiable
-
This value determines whether or not services in this scope should be proxied when being injected into other services of the same scope.
- proxyForSameScope() - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- proxyForSameScope() - 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() - 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 class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- proxyForSameScope(boolean) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- 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(boolean) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
This will cause the isProxyForSameScope field of the returned descriptor to return the given value.
- ProxyForSameScope - Annotation Interface 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. - publish(T) - Method in interface org.glassfish.hk2.api.messaging.Topic
-
Publishes a message to all subscribers
Q
- qualifiedBy(Annotation) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- qualifiedBy(Annotation) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
A qualifier to be associated with this descriptor object
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Add a binging qualifier annotation.
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Add a binging qualifier annotation.
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Add a binging qualifier annotation.
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Add a binding qualifier annotation.
- qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A qualifier to be associated with this descriptor object.
- qualifiedBy(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- qualifiedBy(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A qualifier to be associated with this descriptor object
- qualifiedWith(Annotation...) - Method in interface org.glassfish.hk2.api.IterableProvider
-
A set of qualifiers to further restrict this iterator to.
- qualifiedWith(Annotation...) - Method in interface org.glassfish.hk2.api.messaging.Topic
-
A set of qualifiers to further restrict this Topic to.
- QUALIFIER_KEY - Static variable in class org.glassfish.hk2.utilities.BuilderHelper
-
The key for the qualifier field of the tokenized string
R
- Rank - Annotation Interface in org.glassfish.hk2.api
-
This annotation is used to provide the initial rank of a service marked with
Service
. - ranked(int) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Rank the binding.
- ranked(int) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Rank the binding.
- ranked(int) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Rank the binding.
- ranked(int) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Rank the binding.
- readExternal(ObjectInput) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
- readObject(BufferedReader) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
This can be used to read in instances of this object that were previously written out with writeObject.
- registerTwoPhaseResources(TwoPhaseResource...) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
-
Registers two-phase resources in the order in which they are to run.
- registerTwoPhaseResources(TwoPhaseResource...) - Method in class org.glassfish.hk2.utilities.binding.AbstractBinder
- reifyDescriptor(Descriptor) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Converts a descriptor to an ActiveDescriptor.
- reifyDescriptor(Descriptor, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
-
Converts a descriptor to an ActiveDescriptor.
- releaseCache() - Method in interface org.glassfish.hk2.api.SingleCache
-
Removes the cached value and makes it such that this cache has not been set
- releaseCache() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
- removeAdvertisedContract(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes an advertised contract from the set of contracts advertised by this descriptor
- removeAllMetadata(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes all the metadata values associated with key
- removeContractType(Type) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Removes an advertised contract from the set of contracts advertised by this descriptor
- removeFilter(ServiceLocator, Filter) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Removes all the descriptors from the given locator that match the given filter
- removeFilter(ServiceLocator, Filter, boolean) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
Removes all the descriptors from the given locator that match the given filter
- removeListener(ServiceLocatorListener) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
-
Removes a service listener from the set of listeners that are notified when named listeners are added or removed from the system
- removeListener(ServiceLocatorListener) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
- removeMetadata(String, String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes the given value from the given key
- removeOneDescriptor(ServiceLocator, Descriptor) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will attempt to remove descriptors matching the passed in descriptor from the given locator.
- removeOneDescriptor(ServiceLocator, Descriptor, boolean) - Static method in class org.glassfish.hk2.utilities.ServiceLocatorUtilities
-
This method will attempt to remove descriptors matching the passed in descriptor from the given locator.
- removeQualifier(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
Removes the given qualifier from the list of qualifiers
- removeQualifierAnnotation(Annotation) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
Removes the given qualifier from the list of qualifiers
- resolve(Injectee, ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.InjectionResolver
-
This method will return the object that should be injected into the given injection point.
- RESOURCE_BASE - Static variable in interface org.glassfish.hk2.api.DescriptorFileFinder
-
The name of the default location for hk2 inhabitant files
- RethrowErrorService - Class in org.glassfish.hk2.utilities
-
This is an implementation of
ErrorService
that simply rethrows the exception caught. - RethrowErrorService() - Constructor for class org.glassfish.hk2.utilities.RethrowErrorService
- RETURN - Enum constant in enum class org.glassfish.hk2.api.ServiceLocatorFactory.CreatePolicy
-
Return the existing ServiceLocator
- rollbackDynamicConfiguration(TwoPhaseTransactionData) - Method in interface org.glassfish.hk2.api.TwoPhaseResource
-
If any TwoPhaseResource fails then all TwoPhaseResources that successfully completed their prepare method will get this method invoked.
- run() - Method in class org.glassfish.hk2.internal.ImmediateHelper
-
This thread will wait twenty seconds for new work to come in, and then kill itself
- RUNNING - Enum constant in enum class org.glassfish.hk2.api.ImmediateController.ImmediateServiceState
-
The system will create new Immediate services as soon as they are found
- RUNNING - Enum constant in enum class org.glassfish.hk2.api.ServiceLocatorState
-
In this state the ServiceLocator is able to service requests, do injections and generally operate in a normal manner
S
- 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 Interface 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 Interface in org.jvnet.hk2.annotations
-
Annotation placed on classes that are to be automatically added to an hk2
ServiceLocator
. - SERVICE_CREATION_FAILURE - Enum constant in enum class org.glassfish.hk2.api.ErrorType
-
A service threw an error upon creation
- SERVICE_DESTRUCTION_FAILURE - Enum constant in enum class org.glassfish.hk2.api.ErrorType
-
A service threw an error upon destruction
- 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 Class 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
-
This is added to the
ServiceLocatorFactory
in order to listen on service locators coming and going. - ServiceLocatorState - Enum Class in org.glassfish.hk2.api
-
The possible states in which a service locator can be in.
- ServiceLocatorUtilities - Class in org.glassfish.hk2.utilities
-
This is a set of useful utilities for working with
ServiceLocator
. - 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
-
Sets the scope as an
Annotation
implementation. - 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
- SHUTDOWN - Enum constant in enum class org.glassfish.hk2.api.ServiceLocatorState
-
In this state the ServiceLocator has been shutdown, and only a few selected operations will not throw an IllegalStateException
- 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
- STRICT - Enum constant in enum class org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Uses the equals method of
DescriptorImpl
which includes most of the fields of the descriptor - Stub - Annotation Interface 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 Class in org.glassfish.hk2.utilities
- SubscribeTo - Annotation Interface 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
- SUSPENDED - Enum constant in enum class org.glassfish.hk2.api.ImmediateController.ImmediateServiceState
-
The system will not create new Immediate services when in SUSPENDED state.
- SYSTEM_RESOLVER_NAME - Static variable in interface org.glassfish.hk2.api.InjectionResolver
-
This is the name of the system provided resolver for 330 injections
T
- to(Class<?>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- to(Class<?>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A contract to be associated with this descriptor object.
- to(Class<? super T>) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Bind a new contract to a service.
- to(Class<? super T>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Bind a new contract to a service.
- to(Class<? super T>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Bind a new contract to a service.
- to(Class<? super T>) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Bind a new contract to a service.
- to(Type) - Method in class org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
- to(Type) - Method in interface org.glassfish.hk2.utilities.ActiveDescriptorBuilder
-
A contract to be associated with this descriptor object.
- to(Type) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Bind a new contract to a service.
- to(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
- to(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
-
A contract to be associated with this descriptor object.
- to(TypeLiteral<?>) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Bind a new contract to a service.
- to(TypeLiteral<?>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Bind a new contract to a service.
- to(TypeLiteral<?>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Bind a new contract to a service.
- to(TypeLiteral<?>) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Bind a new contract to a service.
- TOKEN_SEPARATOR - Static variable in class org.glassfish.hk2.utilities.BuilderHelper
-
The token separator
- Topic<T> - Interface in org.glassfish.hk2.api.messaging
-
This service is used for publishing events to subscribers.
- TopicDistributionService - Interface in org.glassfish.hk2.api.messaging
-
This service is responsible for distributing messages to Topic subscribers
- toString() - Method in exception org.glassfish.hk2.api.DuplicateServiceException
- toString() - Method in exception org.glassfish.hk2.api.MultiException
- toString() - Method in class org.glassfish.hk2.api.TypeLiteral
- toString() - Method in class org.glassfish.hk2.internal.IndexedFilterImpl
- toString() - Method in class org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
- toString() - Method in class org.glassfish.hk2.utilities.ContextualInput
- toString() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
- toString() - Method in class org.glassfish.hk2.utilities.DuplicatePostProcessor
- toString() - Method in class org.glassfish.hk2.utilities.FactoryDescriptorsImpl
- toString() - Method in class org.glassfish.hk2.utilities.HK2LoaderImpl
- toString() - Method in class org.glassfish.hk2.utilities.InjecteeImpl
- toString() - Method in class org.glassfish.hk2.utilities.MethodParameterImpl
- toString() - Method in class org.glassfish.hk2.utilities.NamedImpl
- toString() - Method in class org.glassfish.hk2.utilities.UnqualifiedImpl
- TwoPhaseResource - Interface in org.glassfish.hk2.api
-
Implementations of this interface can be added to a
DynamicConfiguration
in order to atomically participate in the changes being made to theServiceLocator
. - TwoPhaseTransactionData - Interface in org.glassfish.hk2.api
- TypeLiteral<T> - Class in org.glassfish.hk2.api
-
Supports inline instantiation of objects that represent parameterized types with actual type parameters.
- TypeLiteral() - Constructor for class org.glassfish.hk2.api.TypeLiteral
U
- UNBIND - Enum constant in enum class org.glassfish.hk2.api.Operation
-
The descriptor is being unbound
- UNDERLYING_METHOD_NAME - Static variable in interface org.glassfish.hk2.api.AOPProxyCtl
-
The name of the method of this interface
- Unproxiable - Annotation Interface in org.glassfish.hk2.api
-
This annotation must go on a scope annotation in order to indicate that no services from this scope may be proxied.
- Unqualified - Annotation Interface in org.glassfish.hk2.api
-
An injection point can be annotated with @Unqualified if it should only be injected with services that have no qualifiers at all
- UnqualifiedImpl - Class in org.glassfish.hk2.utilities
-
This is an implementation of
Unqualified
. - UnqualifiedImpl(Class<? extends Annotation>...) - Constructor for class org.glassfish.hk2.utilities.UnqualifiedImpl
-
Makes a copy of the annotation classes values and initializes this
Unqualified
annotation with those values - UnsatisfiedDependencyException - Exception in org.glassfish.hk2.api
-
This exception will be found in a
MultiException
when a class has a dependency that should be satisfied but cannot be. - UnsatisfiedDependencyException() - Constructor for exception org.glassfish.hk2.api.UnsatisfiedDependencyException
-
Use this if the injectee is unknown
- UnsatisfiedDependencyException(Injectee) - Constructor for exception org.glassfish.hk2.api.UnsatisfiedDependencyException
-
Constructs the exception with the given injectee
- UnsatisfiedDependencyException(Injectee, String) - Constructor for exception org.glassfish.hk2.api.UnsatisfiedDependencyException
- UseProxy - Annotation Interface 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 use a proxy.
V
- 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
- VALIDATE_FAILURE - Enum constant in enum class org.glassfish.hk2.api.ErrorType
-
The
Validator.validate(ValidationInformation)
method failed - 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() - Element in annotation interface org.glassfish.hk2.api.Customizer
-
The class of the customizer to lookup for this bean
- value() - Element in annotation interface org.glassfish.hk2.api.messaging.MessageReceiver
-
A list of message types that this service may receive.
- value() - Element in annotation interface org.glassfish.hk2.api.Metadata
-
This is the key that will be used in the metadata field of the descriptor.
- value() - Element in annotation interface org.glassfish.hk2.api.ProxyForSameScope
-
If this returns true then the isProxyForSameScope will be set to true, but if this returns false then the isProxyForSameScope will be set to false
- value() - Element in annotation interface org.glassfish.hk2.api.Rank
-
The value this service should take initially
- value() - Element in annotation interface org.glassfish.hk2.api.Unqualified
-
The list of qualifiers that must NOT be present on the service.
- value() - Element in annotation interface org.glassfish.hk2.api.UseProxy
-
If this returns true then the isProxiable will be set to true, but if this returns false then the isProxiable will be set to false
- value() - Element in annotation interface org.glassfish.hk2.api.Visibility
-
The visibility value this descriptor should have
- value() - Element in annotation interface org.glassfish.hk2.utilities.GreedyDefaultImplementation
-
A class that implements this interface that should be used as a default if there are no other implementations of this class.
- value() - Method in class org.glassfish.hk2.utilities.NamedImpl
- value() - Element in annotation interface org.glassfish.hk2.utilities.Stub
-
This value determines what the generated methods do
- value() - Method in class org.glassfish.hk2.utilities.UnqualifiedImpl
-
The set of annotations that must not be associated with the service being injected
- value() - Element in annotation interface org.jvnet.hk2.annotations.ContractsProvided
-
The set of contracts that should be explicitly provided by this service.
- value() - Element in annotation interface org.jvnet.hk2.annotations.InhabitantAnnotation
-
Name of the habitat.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.DescriptorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.DescriptorVisibility
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.ErrorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.ImmediateController.ImmediateServiceState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.InstanceLifecycleEventType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.Operation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.ServiceLocatorFactory.CreatePolicy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.api.ServiceLocatorState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.utilities.Stub.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.glassfish.hk2.api.DescriptorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.DescriptorVisibility
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.ErrorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.ImmediateController.ImmediateServiceState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.InstanceLifecycleEventType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.Operation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.ServiceLocatorFactory.CreatePolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.api.ServiceLocatorState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.utilities.DuplicatePostProcessorMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.glassfish.hk2.utilities.Stub.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VALUES - Enum constant in enum class org.glassfish.hk2.utilities.Stub.Type
-
The generated methods of this stub will return null and fixed values
- 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
- Visibility - Annotation Interface 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.
W
- withMetadata(String, String) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, String) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, String) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, List<String>) - Method in interface org.glassfish.hk2.utilities.binding.NamedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, List<String>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, List<String>) - Method in interface org.glassfish.hk2.utilities.binding.ScopedNamedBindingBuilder
-
Add binding descriptor metadata.
- withMetadata(String, List<String>) - Method in interface org.glassfish.hk2.utilities.binding.ServiceBindingBuilder
-
Add binding descriptor metadata.
- writeExternal(ObjectOutput) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
- writeObject(PrintWriter) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
-
This writes this object to the data output stream in a human-readable format, excellent for writing out data files
_
- __getUnderlyingDescriptor() - Method in interface org.glassfish.hk2.api.AOPProxyCtl
-
This method returns the ActiveDescriptor underlying the service for which this object is a proxy
- __make() - Method in interface org.glassfish.hk2.api.ProxyCtl
-
This method causes the proxy instance to get created at the current time, without calling any of the methods on the underlying class itself.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form