A B C D E F G H I J K L M N O P Q R S T V W _

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, int) - Constructor for class org.glassfish.hk2.utilities.AbstractActiveDescriptor
This constructor must be called with the information about this descriptor
ActiveDescriptor<T> - Interface in org.glassfish.hk2.api
An ActiveDescriptor contains information about a Descriptor after it has been reified.
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(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.
addAdvertisedContract(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Adds an advertised contract to the set of contracts advertised by this descriptor
addContractType(Type) - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
Adds an advertised contract to the set of contracts advertised by this descriptor
addMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Adds a value to the list of values associated with this key
addMetadata(String, String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Adds a value to the list of values associated with this key
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.
all() - Method in interface org.glassfish.hk2.Providers
Return all applicable Providers.
allFilter() - Static method in class org.glassfish.hk2.utilities.BuilderHelper
Returns a filter of type Descriptor that matches all descriptors
andLoadWith(HK2Loader) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
andLoadWith(HK2Loader) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
Call this if this descriptor should be loaded with the given HK2Loader
annotatedWith(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.ContractLocator
Qualify this ContractLocator to identify services have the given annotation.
annotatedWith(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.NamedBinder
Append annotation to the binding.
AnnotationLiteral<T extends Annotation> - Class in org.glassfish.hk2
Supports inline instantiation of annotation type instances.
AnnotationLiteral() - Constructor for class org.glassfish.hk2.AnnotationLiteral
 
annotationType() - Method in class org.glassfish.hk2.AnnotationLiteral
 
AsyncPostConstruct - Interface in org.glassfish.hk2
Some service's PostConstruct may optionally spawn internal initializations on separate threads.

B

bind(Descriptor) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
This method will bind the given descriptor to this Module.
bind(FactoryDescriptors) - Method in interface org.glassfish.hk2.api.DynamicConfiguration
This method will bind the descriptors found in the FactoryDescriptors.
bind(String) - Method in interface org.glassfish.hk2.BinderFactory
Binds a service using a String interface name.
bind(String...) - Method in interface org.glassfish.hk2.BinderFactory
Starts the binding process of a service using String interfaces names that can be used to lookup the service.
bind(Class<T>, Class<?>...) - Method in interface org.glassfish.hk2.BinderFactory
Starts a binding process of a service using at least one interface or abstract class Class reference.
bind(TypeLiteral<T>) - Method in interface org.glassfish.hk2.BinderFactory
Binds a parameterized type by forcing users to create a subclass of TypeLiteral which will allow HK2 to retrieve the parameterized type at runtime.
bind() - Method in interface org.glassfish.hk2.BinderFactory
Binds a service which does not implement a contract or interface that can be used to look it up.
bindDynamically() - Method in interface org.glassfish.hk2.Services
Allow dynamic additions to this service registry.
Binder<T> - Interface in org.glassfish.hk2
A binder instance can be used to customize a binding by providing a name for the bound service.
BinderFactory - Interface in org.glassfish.hk2
Factory for adding services instances to a Services.
Binding<T> - Interface in org.glassfish.hk2
A Binding represents a single registered entry in the HK2 Services registry that provides a facility to get to contextual provider instances.
Bindings - Interface in org.glassfish.hk2
This represents the result of dynamically binding [services] to the underlying Services instance.
build() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
build() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
Generates a descriptor that can be used in binding operations
build() - Method in interface org.jvnet.hk2.annotations.Builder
 
Builder<T> - Interface in org.jvnet.hk2.annotations
Simple builder contract
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(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
buildFactory() - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
buildFactory() - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
Generates a factory descriptor that can be used in binding operations.
buildFactory(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
Generates a factory descriptor that can be used in binding operations.
byType(Class<U>) - Method in interface org.glassfish.hk2.Locator
Retrieve a service locator via a concrete service class type.
byType(String) - Method in interface org.glassfish.hk2.Locator
See Locator.forContract(Class), with the exception that the type is provided as a string instead of a class instance.

C

checkCharacters(String...) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Checks that no values come in that might mess up the parsing of the descriptor
commit() - Method in interface org.glassfish.hk2.api.DynamicConfiguration
This causes the configuration to get committed.
commit() - Method in interface org.glassfish.hk2.DynamicBinderFactory
Commits all the binders to the Services registry.
ComponentException - Exception in org.glassfish.hk2
Exception thrown when a component's dependency is not satisfied at the time the component is expected to be put in commission.
ComponentException(String) - Constructor for exception org.glassfish.hk2.ComponentException
 
ComponentException(Throwable) - Constructor for exception org.glassfish.hk2.ComponentException
 
ComponentException(String, Throwable) - Constructor for exception org.glassfish.hk2.ComponentException
 
ComponentException(String, Object...) - Constructor for exception org.glassfish.hk2.ComponentException
 
configure(BinderFactory) - Method in interface org.glassfish.hk2.Module
Main configuration hook for modules.
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>) - Constructor for class org.glassfish.hk2.internal.ConstantActiveDescriptor
Creates the constant descriptor
contains(K, V) - Method in interface org.glassfish.hk2.MultiMap
Checks if the map contains the given key(s), also extending the search to including the sub collection.
contains(Provider<T>) - Method in interface org.glassfish.hk2.ScopeInstance
Returns true if this scope instance contains a stored inhabitant for a given provider, returns false otherwise.
containsKey(K) - Method in interface org.glassfish.hk2.MultiMap
Checks if the map contains the given key.
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.
Context - Interface in org.glassfish.hk2
Used by Binding to describe how the Binding's Provider will be used.
Contract - Annotation Type in org.jvnet.hk2.annotations
Marker annotation to allow implementations to be discovered from the contract they implement.
ContractLocator<T> - Interface in org.glassfish.hk2
Provides a means to locate services in the HK2 services registry by contract.
ContractProvided - Annotation Type in org.jvnet.hk2.annotations
A service provider provides a service implementation, however, the provided service interface is not tagged with @Contract (a jdk interface for instance), therefore, it is specified through this annotation.
create(ServiceHandle<?>) - Method in interface org.glassfish.hk2.api.ActiveDescriptor
Creates an instance of the ActiveDescriptor.
create(Class<T>) - Method in interface org.glassfish.hk2.api.ServiceLocator
This method will analyze the given class, and create it if can.
create(String) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
Creates (or finds) a ServiceLocator.
create(String, ServiceLocator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
Creates or finds a ServiceLocator.
create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.api.ServiceLocatorFactory
Creates or finds a ServiceLocator.
create(String, ServiceLocator) - Method in interface org.glassfish.hk2.extension.ServiceLocatorGenerator
Creates the ServiceLocator that will be used to generate the ServiceLocators
create(Services, Class<? extends Module>...) - Method in class org.glassfish.hk2.HK2
Creates a new Services instances to register and lookup services to and from.
create(Services, Module...) - Method in class org.glassfish.hk2.HK2
Creates a new Services instances to register and lookup services to and from.
create(ServiceHandle<?>) - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
 
create(String) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
 
create(String, ServiceLocator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
 
create(String, ServiceLocator, ServiceLocatorGenerator) - Method in class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
 
create(Services, Class<? extends Module>...) - Method in interface org.glassfish.hk2.spi.HK2Provider
HK2.create(org.glassfish.hk2.Services, Class[])
create(Services, Module...) - Method in interface org.glassfish.hk2.spi.HK2Provider
HK2.create(org.glassfish.hk2.Services, org.glassfish.hk2.Module...)
createConstantDescriptor(T) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
This creates a descriptor that will always return the given object.
createContractFilter(String) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
Returns an indexed filter that will return all descriptors that have contract as an advertised contract
createDescriptorFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
This returns a DescriptorImpl based on the given class.
createDynamicConfiguration() - Method in interface org.glassfish.hk2.api.DynamicConfigurationService
Creates a dynamic configuration that can be used to add or remove values to the system
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
Creator - Interface in org.glassfish.hk2.inject
 
current() - Method in interface org.glassfish.hk2.Scope
 
current() - Method in class org.glassfish.hk2.scopes.PerLookup
 
current() - Method in class org.glassfish.hk2.scopes.PerThread
 
current() - Method in class org.glassfish.hk2.scopes.Singleton
Deprecated. Singleton instances are not stored in a single map.

D

Decorate - Annotation Type in org.jvnet.hk2.annotations
Decorates a Method with all the annotation which types are specified using the Decorate.with().
deepCopyDescriptor(Descriptor) - Static method in class org.glassfish.hk2.utilities.BuilderHelper
Makes a deep copy of the incoming descriptor
deepCopyMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
This method does a deep copy of the incoming meta-data, (which basically means we will also make copies of the value list)
Descriptor - Interface in org.glassfish.hk2.api
A Descriptor is a bean-like structure that describes a service declaration in HK2.
Descriptor - Interface in org.glassfish.hk2
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
DescriptorImpl - Class in org.glassfish.hk2.utilities
The implementation of the descriptor itself, with the bonus of being externalizable, and having writeable fields
DescriptorImpl() - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
For serialization
DescriptorImpl(Descriptor) - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
Does a deep copy of the incoming descriptor
DescriptorImpl(Set<String>, String, String, String, Map<String, List<String>>, Set<String>, DescriptorType, HK2Loader, int, Descriptor, Long, Long) - Constructor for class org.glassfish.hk2.utilities.DescriptorImpl
This creates this descriptor impl, taking all of the fields as given
DescriptorType - Enum in org.glassfish.hk2.api
This describes the type of descriptor
destroy() - Method in interface org.glassfish.hk2.api.ServiceHandle
Will destroy this object and all PerLookup instances created because of this service
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
 
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
 
DynamicBinderFactory - Interface in org.glassfish.hk2
Sub interfaces of the BinderFactory to allow dynamic registration of services.
DynamicConfiguration - Interface in org.glassfish.hk2.api
This class is used to add Descriptors to a ServiceLocator instance.
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

entrySet() - Method in interface org.glassfish.hk2.MultiMap
The complete read-only entry set.
equals(Object) - Method in class org.glassfish.hk2.AnnotationLiteral
 
equals(Object) - Method in class org.glassfish.hk2.TypeLiteral
 
equals(Object) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
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.

F

Factory<T> - Interface in org.glassfish.hk2.api
This interface should be implemented in order to provide a factory for another type.
Factory<T> - Interface in org.glassfish.hk2
Provides an instance of T either by creating a new one at each request or by returning an existing one.
Factory - Annotation Type in org.jvnet.hk2.annotations
Indicates that the object should be created by using the given factory component, instead of calling the constructor.
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.internal
 
FactoryFor - Annotation Type in org.jvnet.hk2.annotations
Indicates that the component serves as a factory for the specified type(s).
failureToReify(ActiveDescriptor<?>, Injectee, MultiException) - Method in interface org.glassfish.hk2.api.ErrorService
This method is called if an ActiveDescriptor fails to reify properly during a lookup operation.
Filter - Interface in org.glassfish.hk2.api
This object is used to search for items in the service registry
find(ActiveDescriptor<U>) - Method in interface org.glassfish.hk2.api.Context
Finds an existing contextual instance, without creating or loading any objects
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
 
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.
forContract(Class<U>) - Method in interface org.glassfish.hk2.Locator
Retrieve a service locator via a contract class.
forContract(String) - Method in interface org.glassfish.hk2.Locator
See Locator.forContract(Class), with the exception that the type is provided as a string instead of a class instance.
forContract(TypeLiteral<U>) - Method in interface org.glassfish.hk2.Locator
See Locator.forContract(Class), with the exception that the type is a TypeLiteral, a parameterized type.

G

get() - Method in interface org.glassfish.hk2.Factory
The system calls this method to obtain a reference to the component/service.
get() - Static method in class org.glassfish.hk2.HK2
Entry point to the HK2 public APIs, will initialize the implementation and return a valid instance that can be used to configure modules bindings.
get(K) - Method in interface org.glassfish.hk2.MultiMap
Returns the elements indexed by the provided key
get() - Method in interface org.glassfish.hk2.Provider
The system calls this method to obtain a reference to the component/service.
get() - Method in interface org.glassfish.hk2.Providers
A shortcut for
get(Provider<T>) - Method in interface org.glassfish.hk2.ScopeInstance
Retrieves a stored inhabitant if present in the scope instance.
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
 
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
 
getAdvertisedTypesFromObject(Object) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Returns the set of types this class advertises
getAllServiceHandles(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets service handles that can be used to get and destroy the returned services
getAllServiceHandles(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets a service handle that can be used to get and destroy the returned service.
getAllServices(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets the all the services from this locator that implements this contract or has this implementation
getAllServices(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets the all the services from this locator that implements this contract or has this implementation
getAnnotations() - Method in interface org.glassfish.hk2.Provider
The collection of annotations for this type.
getBaseDescriptor() - Method in interface org.glassfish.hk2.api.Descriptor
If this descriptor is based on another descriptor (for example via the Configuration bind call) then this method will return the original basis for this descriptor.
getBaseDescriptor() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
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
getBindings() - Method in interface org.glassfish.hk2.Services
Retrieve the collection of all registered bindings in this instance as well as in the parent service instance(s).
getBindings(Descriptor) - Method in interface org.glassfish.hk2.Services
Retrieve the collection of existing bindings in this as well as in parent service registries that matches the Descriptor.
getByType(Class<U>) - Method in interface org.glassfish.hk2.Provider
Obtain a reference to the associated component/service.
getByType(Class<U>) - Method in interface org.glassfish.hk2.Providers
Obtain a reference to the component/service from the associated provider.
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
 
getContracts() - Method in interface org.glassfish.hk2.Descriptor
The contracts that are used to index the service definition.
getContractsFromClass(Class<?>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Returns the set of types this class advertises
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
 
getDeclaredBindings() - Method in interface org.glassfish.hk2.Services
Retrieve the collection of all registered bindings in this, and only this, Services instance.
getDeclaredBindings(Descriptor) - Method in interface org.glassfish.hk2.Services
Retrieve the collection of registered bindings in this, and only this, Services instance that match the Descriptor argument.
getDefault() - Method in interface org.glassfish.hk2.Services
Retrieves the default Services registry.
getDescriptor() - Method in interface org.glassfish.hk2.Binding
The Descriptor fully characterizes the attributes of this Provider.
getDescriptorFilter() - Static method in class org.glassfish.hk2.internal.StarFilter
 
getDescriptors(Filter) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets the list of descriptors that match the given filter
getDescriptorType() - Method in interface org.glassfish.hk2.api.Descriptor
Returns CLASS if this is a class descriptor and FACTORY if this is a descriptor describing a factory for a type, in which case the implClass should point to the implementation class of the factory
getDescriptorType() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
getErrors() - Method in exception org.glassfish.hk2.api.MultiException
Gets all the errors associated with this MultiException
getFactoryAsAFactory() - Method in interface org.glassfish.hk2.api.FactoryDescriptors
This returns the factory as a factory for some other type.
getFactoryAsAFactory() - Method in class org.glassfish.hk2.internal.FactoryDescriptorsImpl
 
getFactoryAsAService() - Method in interface org.glassfish.hk2.api.FactoryDescriptors
This returns the factory as a service itself.
getFactoryAsAService() - Method in class org.glassfish.hk2.internal.FactoryDescriptorsImpl
 
getFirst(K) - Method in interface org.glassfish.hk2.MultiMap
Gets the first value if any, or null.
getHandle() - Method in interface org.glassfish.hk2.api.IterableProvider
Rather than getting the service directly with get (in which case the returned service cannot be disposed of) this method will instead return a service handle for the current best service.
getImplementation() - Method in interface org.glassfish.hk2.api.Descriptor
Returns the fully qualified class name of the implementation class.
getImplementation() - Method in class org.glassfish.hk2.internal.ConstantActiveDescriptor
 
getImplementation() - Method in class org.glassfish.hk2.utilities.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
 
getInjecteeClass() - Method in interface org.glassfish.hk2.api.Injectee
Returns the parent class for this injectee.
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
 
getInjectionPoint() - Method in interface org.glassfish.hk2.Context
The injection point information.
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
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.
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 interface org.glassfish.hk2.Descriptor
The meta data attributes for the service.
getMetadata() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
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(Class<?>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Returns the name that should be associated with this class
getName() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
getNames() - Method in interface org.glassfish.hk2.Descriptor
The name(s) for the service.
getParameterTypes() - Method in class org.glassfish.hk2.TypeLiteral
 
getParent() - Method in interface org.glassfish.hk2.api.Injectee
If this Injectee is in a constructor this will return the constructor being injected into.
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.
getProvider(Context) - Method in interface org.glassfish.hk2.Binding
Return a Provider optionally providing contextual information for how the component provider will be used (e.g., for contextual injection, etc).
getProvider() - Method in interface org.glassfish.hk2.Binding
Return a Provider with providing contextual information on how the provider will be used.
getProvider() - Method in interface org.glassfish.hk2.Providers
Return the "best" Provider from the collection that matches current criteria.
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
 
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 interface org.glassfish.hk2.Descriptor
Returns the qualifier annotations on the service.
getQualifiers() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
getQualifiersFromClass(Class<?>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Gets all the qualifiers from the object
getQualifiersFromObject(Object) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Gets all the qualifiers from the object
getRanking() - Method in interface org.glassfish.hk2.api.Descriptor
Returns the ranking of this descriptor.
getRanking() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
getRawClass(Type) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Given the type parameter gets the raw type represented by the type, or null if this has no associated raw class
getRawType() - Method in class org.glassfish.hk2.TypeLiteral
 
getRawType(Type) - Static method in class org.glassfish.hk2.TypeLiteral
 
getRequiredQualifiers() - Method in interface org.glassfish.hk2.api.Injectee
This is the set of required qualifiers for this injectee.
getRequiredType() - Method in interface org.glassfish.hk2.api.Injectee
This is the required type of the injectee.
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 interface org.glassfish.hk2.Descriptor
The optional scoping for the service.
getScope() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
getScopeAnnotation() - Method in interface org.glassfish.hk2.api.ActiveDescriptor
Returns the scope that this ActiveDescriptor belongs to
getScopeAnnotation() - Method in class org.glassfish.hk2.utilities.AbstractActiveDescriptor
 
getScopeFromClass(Class<?>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Gets the scope annotation from the object
getScopeFromObject(Object) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Gets the scope annotation from the object
getService() - Method in interface org.glassfish.hk2.api.ServiceHandle
Gets the underlying service object
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
This method should be called by code getting injectee's on behalf of some root object.
getServiceHandle(Type, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets a service handle that can be used to get and destroy the returned service.
getServiceHandle(Type, String, Annotation...) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets a service handle that can be used to get and destroy the returned service
getServiceHandle(ActiveDescriptor<T>, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets a service handle that can be used to get and destroy the returned service.
getServiceHandle(ActiveDescriptor<T>) - Method in interface org.glassfish.hk2.api.ServiceLocator
Gets a service handle that can be used to get and destroy the returned service.
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
 
getServices(String) - Method in interface org.glassfish.hk2.Services
Retrieves the service registry given a module name.
getSize() - Method in interface org.glassfish.hk2.api.IterableProvider
Returns the size of the iterator that would be returned
getType() - Method in class org.glassfish.hk2.TypeLiteral
 
getTypeName() - Method in interface org.glassfish.hk2.Descriptor
The implementation definition type.
getValidator() - Method in interface org.glassfish.hk2.api.ValidationService
Returns the Validator that will be run whenever a Descriptor that passed the filter is to be looked up with the API or injected into an injection point, or on any bind or unbind operation.

H

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.DescriptorBuilderImpl
 
has(String, List<String>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
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 interface org.glassfish.hk2.utilities.DescriptorBuilder
An instance of data to be associated with this descriptor
hasContract(String) - Method in interface org.glassfish.hk2.Descriptor
Returns true if Descriptor.getContracts() contains the passed argument.
hashCode() - Method in class org.glassfish.hk2.AnnotationLiteral
 
hashCode() - Method in class org.glassfish.hk2.TypeLiteral
 
hashCode() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
hasName(String) - Method in interface org.glassfish.hk2.Descriptor
Returns true if Descriptor.getNames() contains the passed argument.
hasQualifier(String) - Method in interface org.glassfish.hk2.Descriptor
Returns true if Descriptor.getQualifiers() contains the passed argument.
HK2 - Class in org.glassfish.hk2
Entry point to the HK2 services runtime.
HK2(HK2Provider) - Constructor for class org.glassfish.hk2.HK2
Provides an HK2 APIs implementation using the provided HK2Provider instance as the implementation backend.
HK2Loader - Interface in org.glassfish.hk2.api
This class is responsible for loading classes, and different implementations can be used for different descriptors.
HK2Provider - Interface in org.glassfish.hk2.spi
SPI for providing an implementation of the HK2 APIs.

I

Immediate - Annotation Type in org.jvnet.hk2.annotations
The RunLevel that indicates immediate activation for the default run level scope.
in(Scope) - Method in interface org.glassfish.hk2.ContractLocator
Qualify this ContractLocator to identify services that are scoped scope.
in(Class<? extends Annotation>) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
in(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
in(Class<? extends Scope>) - Method in interface org.glassfish.hk2.ResolvedBinder
Ascribe a scope to this Binder, terminating the builder-like process.
in(Class<? extends Annotation>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
A scope to be associated with this descriptor object.
in(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
A scope to be associated with this descriptor object.
Index - Annotation Type in org.jvnet.hk2.annotations
Marks the index property of the Contract annotations.
IndexedFilter - Interface in org.glassfish.hk2.api
This filter can be used to limit the set of Descriptors passed to the matches method.
IndexedFilterImpl - Class in org.glassfish.hk2.internal
 
IndexedFilterImpl(String, String) - Constructor for class org.glassfish.hk2.internal.IndexedFilterImpl
 
InhabitantAnnotation - Annotation Type in org.jvnet.hk2.annotations
Meta-annotation indicating that the annotation designates a resident service of a Services.
InhabitantMetadata - Annotation Type in org.jvnet.hk2.annotations
Meta-annotation to make annotation values readable as org.glassfish.hk2.Descriptor#metadata().
inject(Object) - Method in interface org.glassfish.hk2.api.ServiceLocator
This will analyze the given object and inject into its fields and methods.
inject(T) - Method in interface org.glassfish.hk2.inject.Injector
Injects all the Inject annotated fields and methods of the passed instance.
inject(Class<T>) - Method in interface org.glassfish.hk2.inject.Injector
Instantiate the passed type and injects all the Inject annotated fields and methods
Inject - Annotation Type in org.jvnet.hk2.annotations
Annotation to define a required resource for a component.
Injectee - Interface in org.glassfish.hk2.api
An Injectee represents the point of injection.
InjectionPoint - Interface in org.glassfish.hk2.inject
 
InjectionResolver<T> - Interface in org.glassfish.hk2.api
This class allows users to provide a custom injection target for any annotation (including @Inject).
Injector - Interface in org.glassfish.hk2.inject
Defines a simple API for injecting HK2 components
inParent() - Method in interface org.glassfish.hk2.BinderFactory
Return the parent binder factory instance which can be used to bind services for wider visibility outside of this module definition.
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 interface org.glassfish.hk2.Bindings
Indicates whether or not this Bindings instance is active.
isActive() - Method in interface org.glassfish.hk2.Provider
Returns true if the component has been instantiated.
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
 
isDone() - Method in interface org.glassfish.hk2.AsyncPostConstruct
Returns true if the service is fully ready to have methods called on it.
isOptional() - Method in interface org.glassfish.hk2.api.Injectee
This method returns true if this injection point is annotated with VOptional.
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
 
IterableProvider<T> - Interface in org.glassfish.hk2.api
This object can be injected rather than Provider or ExtendedProvider when it is desired to iterate over more than one returned instance of the type.

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.

K

KERNEL_RUNLEVEL - Static variable in annotation type org.jvnet.hk2.annotations.RunLevel
 
keySet() - Method in interface org.glassfish.hk2.MultiMap
Returns the keys of type K.

L

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 the Descriptor.
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 the Descriptor.
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 the Descriptor
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 the Descriptor.
loadClass(String) - Method in interface org.glassfish.hk2.api.HK2Loader
Loads a class given the class name to instantiate
Locator - Interface in org.glassfish.hk2
This contract provides the starting point for querying HK2's backing service registry either by contract (e.g., classes annotated with @Contract) or by concrete service type (e.g., classes annotated with @Service).

M

ManagedComponentProvider<T> - Interface in org.glassfish.hk2
A ManagedComponentProvider is one in which its backing component that it provides can either be in an active or inactive state.
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.IndexedFilterImpl
 
matches(Descriptor) - Method in class org.glassfish.hk2.internal.StarFilter
 
META_SCOPE_TAG - Static variable in annotation type org.jvnet.hk2.annotations.RunLevel
 
META_VAL_TAG - Static variable in annotation type org.jvnet.hk2.annotations.RunLevel
 
Module - Interface in org.glassfish.hk2
A module defines the binding for a Services instance.
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(List<Throwable>) - Constructor for exception org.glassfish.hk2.api.MultiException
This list must have at least one element in it.
MultiException(Throwable) - Constructor for exception org.glassfish.hk2.api.MultiException
This allows for construction of a MultiException with one element in its list
MultiMap<K,V> - Interface in org.glassfish.hk2
A read-nly Map from a key to multiple values.
Multiple - Annotation Type in org.jvnet.hk2.annotations
Annotates an annotation which value is an array of inhabitant annotations InhabitantAnnotation

N

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.Binder
Names a binding that will be used to register the service in the registry.
named(String) - Method in interface org.glassfish.hk2.ContractLocator
Qualify this ContractLocator to identify services that are named name.
named(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
named(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
The name for this descriptor object.
NamedBinder<U> - Interface in org.glassfish.hk2
Provides a means to more fully describe a binding that has already been named, or where the name has been assumed to be left blank.
newValueObject(Class<T>) - Method in interface org.glassfish.hk2.inject.Creator
Creates a new value object which will be instantiated using the empty parameter constructor.

O

ofRank(int) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
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.
Operation - Enum in org.glassfish.hk2.api
This defines the operations that may be validated
Optional - Annotation Type 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.
org.glassfish.hk2 - package org.glassfish.hk2
 
org.glassfish.hk2.api - package org.glassfish.hk2.api
 
org.glassfish.hk2.extension - package org.glassfish.hk2.extension
 
org.glassfish.hk2.inject - package org.glassfish.hk2.inject
 
org.glassfish.hk2.internal - package org.glassfish.hk2.internal
 
org.glassfish.hk2.scopes - package org.glassfish.hk2.scopes
 
org.glassfish.hk2.spi - package org.glassfish.hk2.spi
 
org.glassfish.hk2.utilities - package org.glassfish.hk2.utilities
 
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 Type in org.glassfish.hk2.api
PerLookup is the scope for objects that are created every time they are looked up.
PerLookup - Class in org.glassfish.hk2.scopes
Scope local to each invocation.
PerLookup() - Constructor for class org.glassfish.hk2.scopes.PerLookup
 
PerThread - Class in org.glassfish.hk2.scopes
Implementation of an HK2 Scope that will instantiate and store services per thread.
PerThread() - Constructor for class org.glassfish.hk2.scopes.PerThread
 
postConstruct(Object) - 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
Classes implementing this interface register an interest in being notified when the instance has been created and the component is about to be place into commission.
postConstruct() - Method in interface org.glassfish.hk2.PostConstruct
The component has been injected with any dependency and will be placed into commission by the subsystem.
preDestroy(Object) - 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
Components implementing this interface registers an interest in being notified when they are about to be decommissioned.
preDestroy() - Method in interface org.glassfish.hk2.PreDestroy
The component is about to be removed from the registry.
prettyPrintDescriptor(Descriptor) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Pretty prints this descriptor
Priority - Annotation Type in org.jvnet.hk2.annotations
Deprecated. Not fully supported in Hk2
provide() - Method in interface org.glassfish.hk2.api.Factory
This method will create instances of the type of this factory.
Provider<T> - Interface in org.glassfish.hk2
Similar to the Factory contract, providing a means to access the class type instance.
Providers<T> - Interface in org.glassfish.hk2
This contract provides a means to access runtime component providers.
Proxiable - Annotation Type in org.glassfish.hk2.api
Scope annotations that are also marked with this annotation are proxiable.
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
put(Provider<T>, T) - Method in interface org.glassfish.hk2.ScopeInstance
Stores a inhabitant component instance.

Q

qualifiedBy(Annotation) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
qualifiedBy(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
qualifiedBy(Annotation) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
A qualifier to be associated with this descriptor object
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.

R

readMetadataMap(String, Map<String, List<String>>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Writes a set in a way that can be read from an input stream as well
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.
readSet(String, Collection<String>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Writes a set in a way that can be read from an input stream as well.
ReflectionHelper - Class in org.glassfish.hk2.internal
 
ReflectionHelper() - Constructor for class org.glassfish.hk2.internal.ReflectionHelper
 
reifyDescriptor(Descriptor, Injectee) - Method in interface org.glassfish.hk2.api.ServiceLocator
Converts a descriptor to an ActiveDescriptor.
reifyDescriptor(Descriptor) - Method in interface org.glassfish.hk2.api.ServiceLocator
Converts a descriptor to an ActiveDescriptor.
Releasable - Interface in org.glassfish.hk2
Represents something that can be released.
release() - Method in interface org.glassfish.hk2.Releasable
Release the component/service if active.
release() - Method in interface org.glassfish.hk2.ScopeInstance
release the backend storage and call PreDestroy.preDestroy() on all instantiated components that implement the PreDestroy interface.
release() - Method in class org.glassfish.hk2.scopes.PerThread
 
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(Map<String, List<String>>, String) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Removes all the metadata values associated with key
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
removeMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Removes the given value from the given key
removeMetadata(String, String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Removes the given value from the given key
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.
ResolvedBinder<T> - Interface in org.glassfish.hk2
This contract is used to apply scope to an otherwise described / resolved Binder.
RunLevel - Annotation Type in org.jvnet.hk2.annotations
Defines a run/start level.
RunLevelDefaultScope - Interface in org.glassfish.hk2
Marker interface signifying the default RunLevel scope.

S

Scope - Interface in org.glassfish.hk2
 
Scoped - Annotation Type in org.jvnet.hk2.annotations
Indicates the scope that this managed object is tied to.
ScopeInstance - Interface in org.glassfish.hk2
A particular instantiation of a Scope.
Service - Annotation Type in org.jvnet.hk2.annotations
Marker interface for service implementation.
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
ServiceLocator<T> - Interface in org.glassfish.hk2
A ServiceLocator provides runtime access to a particular service in HK2.
ServiceLocatorFactory - Class in org.glassfish.hk2.api
This factory can be used to create new named ServiceLocators
ServiceLocatorFactory() - Constructor for class org.glassfish.hk2.api.ServiceLocatorFactory
 
ServiceLocatorFactoryImpl - Class in org.glassfish.hk2.internal
The implementation of the ServiceLocatorFactory that looks in the OSGi service registry or the META-INF/services for the implementation to use.
ServiceLocatorFactoryImpl() - Constructor for class org.glassfish.hk2.internal.ServiceLocatorFactoryImpl
This will create a new set of name to locator mappings
ServiceLocatorGenerator - Interface in org.glassfish.hk2.extension
An implementation of this class can be placed in META-INF/services in order to customize the creation of the ServiceLocator
ServiceProvider - Annotation Type in org.jvnet.hk2.annotations
Denotes the service provider implementation.
Services - Interface in org.glassfish.hk2
Services is the registry for HK2 services.
setBaseDescriptor(Descriptor) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the base descriptor to be associated with this descriptor
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
 
setDescriptorType(DescriptorType) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the descriptor type
setImplementation(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the implementation
setLoader(HK2Loader) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the loader to use with this descriptor
setLocatorId(Long) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the locator id for this descriptor
setName(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the name this descriptor should have
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
 
setScope(String) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the scope this descriptor should have
setServiceId(Long) - Method in class org.glassfish.hk2.utilities.DescriptorImpl
Sets the service id for this descriptor
shutdown() - Method in interface org.glassfish.hk2.api.ServiceLocator
This method will shutdown every service associated with this ServiceLocator.
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.
Singleton - Class in org.glassfish.hk2.scopes
Singleton scope.
Singleton() - Constructor for class org.glassfish.hk2.scopes.Singleton
 
size() - Method in interface org.glassfish.hk2.MultiMap
Returns the size of the map.
StarFilter - Class in org.glassfish.hk2.internal
A filter that gets everything! w00t w00t!
StarFilter() - Constructor for class org.glassfish.hk2.internal.StarFilter
 
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(String) - Method in class org.glassfish.hk2.internal.DescriptorBuilderImpl
 
to(String) - Method in interface org.glassfish.hk2.NamedBinder
Have this instance resolve to a particular target implementation class name.
to(Class<? extends T>) - Method in interface org.glassfish.hk2.NamedBinder
Resolve this binder to a particular target implementation class type.
to(TypeLiteral<T>) - Method in interface org.glassfish.hk2.NamedBinder
Resolve this binder to a particular parameterized type.
to(Class<?>) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
A contract to be associated with this descriptor object.
to(String) - Method in interface org.glassfish.hk2.utilities.DescriptorBuilder
A contract to be associated with this descriptor object.
toFactory(Factory<T>) - Method in interface org.glassfish.hk2.NamedBinder
Have this instance resolve to a particular target factory implementation.
toFactory(Class<? extends Factory<? extends T>>) - Method in interface org.glassfish.hk2.NamedBinder
Have this instance resolve to a particular target factory class type.
toFactory(TypeLiteral<? extends Factory<? extends T>>) - Method in interface org.glassfish.hk2.NamedBinder
Have this instance resolve to a particular target type literal factory.
toInstance(T) - Method in interface org.glassfish.hk2.NamedBinder
Have this instance resolve to a particular singleton implementation instance.
toString() - Method in exception org.glassfish.hk2.api.MultiException
 
toString() - Method in class org.glassfish.hk2.internal.FactoryDescriptorsImpl
 
toString() - Method in class org.glassfish.hk2.TypeLiteral
 
toString() - Method in class org.glassfish.hk2.utilities.DescriptorImpl
 
type() - Method in interface org.glassfish.hk2.Provider
The class type of the implementation.
TypeLiteral<T> - Class in org.glassfish.hk2
Supports inline instantiation of objects that represent parameterized types with actual type parameters.
TypeLiteral() - Constructor for class org.glassfish.hk2.TypeLiteral
 

V

validate(Operation, ActiveDescriptor<?>, Injectee) - 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.
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.
valueOf(String) - Static method in enum org.glassfish.hk2.api.DescriptorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.glassfish.hk2.api.Operation
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.glassfish.hk2.api.DescriptorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.glassfish.hk2.api.Operation
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitForDone() - Method in interface org.glassfish.hk2.AsyncPostConstruct
The implementation should block until the service is fully ready / initialized.
waitForDone(long, TimeUnit) - Method in interface org.glassfish.hk2.AsyncPostConstruct
The implementation should return true immediately if the service is fully ready / initialized.
writeMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Used to write the metadata out
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
writeSet(Set<?>) - Static method in class org.glassfish.hk2.internal.ReflectionHelper
Writes a set in a way that can be read from an input stream as well

_

__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.

A B C D E F G H I J K L M N O P Q R S T V W _

Copyright © 2012 Oracle Corporation. All Rights Reserved.