Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACTIVE - Enum constant in enum class org.glassfish.hk2.extras.operation.OperationState
-
The Operation is open and is active on at least one thread
B
- bridgeServiceLocator(ServiceLocator, ServiceLocator) - Static method in class org.glassfish.hk2.extras.ExtrasUtilities
-
This method will bridge all non-local services from the from ServiceLocator into the into ServiceLocator.
C
- close() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- close() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Suspends this Operation on all threads where it is associated and closes the operation.
- CLOSED - Enum constant in enum class org.glassfish.hk2.extras.operation.OperationState
-
The Operation has been closed
- closeOperation() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- closeOperation() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Deprecated.replaced by close()
- closeOperation(OperationHandleImpl<T>) - Method in class org.glassfish.hk2.extras.operation.OperationContext
- configurationChanged() - Method in class org.glassfish.hk2.extras.events.internal.DefaultTopicDistributionService
- configurationChanged() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.Hk2BridgeImpl
- configurationChanged() - Method in class org.glassfish.hk2.extras.provides.ProvidesListener
- configure() - Method in class org.glassfish.hk2.extras.events.internal.TopicDistributionModule
- containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.extras.operation.OperationContext
- contracts() - Element in annotation interface org.glassfish.hk2.extras.provides.Provides
-
If non-empty, specifies a list of contracts provided that overrides the default contracts.
- create(ServiceHandle<?>) - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- create(ServiceHandle<?>) - Method in class org.glassfish.hk2.extras.operation.internal.OperationDescriptor
- createAndStartOperation(T) - Method in class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- createAndStartOperation(T) - Method in interface org.glassfish.hk2.extras.operation.OperationManager
-
Creates an OperationHandle that will be associated with the thread calling this method.
- createOperation() - Method in class org.glassfish.hk2.extras.operation.internal.SingleOperationManager
- createOperation(T) - Method in class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- createOperation(T) - Method in interface org.glassfish.hk2.extras.operation.OperationManager
-
Creates an OperationHandle.
- CrossOverDescriptor<T> - Class in org.glassfish.hk2.extras.hk2bridge.internal
- CrossOverDescriptor(ServiceLocator, ActiveDescriptor<T>) - Constructor for class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
D
- DefaultFilter() - Constructor for class org.glassfish.hk2.extras.provides.NoInstancesFilter.DefaultFilter
- DefaultInterceptionService - Class in org.glassfish.hk2.extras.interception.internal
-
A default implementation of the interception service using annotation to denote services that are to be intercepted and other annotations to match methods or constructors to interceptors
- DefaultInterceptionService() - Constructor for class org.glassfish.hk2.extras.interception.internal.DefaultInterceptionService
- DefaultTopicDistributionErrorService - Interface in org.glassfish.hk2.extras.events
-
When using the TopicDistributionService added with
ServiceLocatorUtilities#enableTopicDistribution(org.glassfish.hk2.api.ServiceLocator)if a subscriber throws an exception this service will be called. - DefaultTopicDistributionService - Class in org.glassfish.hk2.extras.events.internal
-
This is the default implementation of the TopicDistributionService.
- DefaultTopicDistributionService() - Constructor for class org.glassfish.hk2.extras.events.internal.DefaultTopicDistributionService
- destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.extras.operation.OperationContext
- disposalHandledBy() - Element in annotation interface org.glassfish.hk2.extras.provides.Provides
-
Specifies who is responsible for the disposal of instances of the provided service, assuming that
Provides.disposeMethod()is non-empty. - dispose(T) - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- disposeMethod() - Element in annotation interface org.glassfish.hk2.extras.provides.Provides
-
If non-empty, specifies the name of the method to be invoked when disposing of an instance of the provided service.
- distributeMessage(Topic<?>, Object) - Method in class org.glassfish.hk2.extras.events.internal.DefaultTopicDistributionService
E
- enableDefaultInterceptorServiceImplementation(ServiceLocator) - Static method in class org.glassfish.hk2.extras.ExtrasUtilities
-
This method adds in a default implementation of the
InterceptionServicewhich uses annotations to denote which services should intercept other services. - enableNoInstancesFilter(ServiceLocator) - Static method in interface org.glassfish.hk2.extras.provides.NoInstancesFilter
-
Enables the default
NoInstancesFilter. - enableOperations(ServiceLocator) - Static method in class org.glassfish.hk2.extras.ExtrasUtilities
-
This method adds in the infrastructure necessary to enable HK2 Operations support.
- enableTopicDistribution(ServiceLocator) - Static method in class org.glassfish.hk2.extras.ExtrasUtilities
-
This method will enable the default topic distribution service.
- equals(Object) - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- equals(Object) - Method in class org.glassfish.hk2.extras.operation.internal.OperationIdentifierImpl
- ExtrasUtilities - Class in org.glassfish.hk2.extras
-
These are utilities for the extra features of hk2.
- ExtrasUtilities() - Constructor for class org.glassfish.hk2.extras.ExtrasUtilities
F
- findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.extras.operation.OperationContext
G
- getActiveThreads() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- getActiveThreads() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Gets a set of threads upon which this Operation is active
- getAllBindingsFromClass(Class<?>) - Static method in class org.glassfish.hk2.extras.interception.internal.ReflectionUtilities
- getAllBindingsFromConstructor(Constructor<?>) - Static method in class org.glassfish.hk2.extras.interception.internal.ReflectionUtilities
- getAllBindingsFromMethod(Method) - Static method in class org.glassfish.hk2.extras.interception.internal.ReflectionUtilities
- getConstructorInterceptors(Constructor<?>) - Method in class org.glassfish.hk2.extras.interception.internal.DefaultInterceptionService
- getContractTypes() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getCurrentOperation(T) - Method in class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- getCurrentOperation(T) - Method in interface org.glassfish.hk2.extras.operation.OperationManager
-
Gets the current operation of scope type on the current thread.
- getCurrentOperationOnThisThread() - Method in class org.glassfish.hk2.extras.operation.internal.SingleOperationManager
-
OperationLock need NOT be held
- getCurrentOperations(T) - Method in class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- getCurrentOperations(T) - Method in interface org.glassfish.hk2.extras.operation.OperationManager
-
Gets a set of all Operations that are in state
OperationState.ACTIVEorOperationState.SUSPENDED. - getDescriptorFilter() - Method in class org.glassfish.hk2.extras.interception.internal.DefaultInterceptionService
- getFactoryLocatorId() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getFactoryServiceId() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getFilter() - Method in class org.glassfish.hk2.extras.events.internal.DefaultTopicDistributionService
- getFilter() - Method in class org.glassfish.hk2.extras.provides.ProvidesListener
-
Matches services whose implementation classes are scanned for
Providesannotations. - getIdentifier() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- getIdentifier() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Returns a unique identifier for this operation
- getImplementationClass() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getImplementationClass() - Method in class org.glassfish.hk2.extras.operation.internal.OperationDescriptor
- getImplementationType() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getImplementationType() - Method in class org.glassfish.hk2.extras.operation.internal.OperationDescriptor
- getInjectees() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getMethodInterceptors(Method) - Method in class org.glassfish.hk2.extras.interception.internal.DefaultInterceptionService
- getOperationData() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- getOperationData() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Gets arbitrary Operation data to be associated with this Operation
- getOperationIdentifier() - Method in class org.glassfish.hk2.extras.operation.internal.OperationIdentifierImpl
- getOperationIdentifier() - Method in interface org.glassfish.hk2.extras.operation.OperationIdentifier
-
A uniquely generated name for an Operation identifier
- getOperationScope() - Method in class org.glassfish.hk2.extras.operation.internal.OperationIdentifierImpl
- getOperationScope() - Method in interface org.glassfish.hk2.extras.operation.OperationIdentifier
-
Returns the scope associated with this annotation type
- getQualifierAnnotations() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getScopeAnnotation() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getScopeAsAnnotation() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- getState() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- getState() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Gets the current state of this operation
H
- hashCode() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- hashCode() - Method in class org.glassfish.hk2.extras.operation.internal.OperationIdentifierImpl
- HK2BRIDGE_LOCATOR_ID - Static variable in class org.glassfish.hk2.extras.ExtrasUtilities
-
This will be put into the metadata of a descriptor that is bridged from another service locator.
- HK2BRIDGE_SERVICE_ID - Static variable in class org.glassfish.hk2.extras.ExtrasUtilities
-
This will be put into the metadata of a descriptor that is bridged from another service locator.
- Hk2BridgeImpl - Class in org.glassfish.hk2.extras.hk2bridge.internal
I
- Intercepted - Annotation Interface in org.glassfish.hk2.extras.interception
-
Classes annotated with this qualifier are to be intercepted with the default interception service implementation.
- InterceptionBinder - Annotation Interface in org.glassfish.hk2.extras.interception
-
This annotation is placed on an annotation that can be used to indicate a binding between an interceptor (annotated with
Interceptor) and a class to be intercepted (annotated withIntercepted). - Interceptor - Annotation Interface in org.glassfish.hk2.extras.interception
-
This annotation is placed on an implementation of either
MethodInterceptororConstructorInterceptorin order to signify that these services should be automatically bound with the default interception service implementation. - InterceptorOrderingService - Interface in org.glassfish.hk2.extras.interception
-
This service can be used to modify, add or remove interceptors to the set of interceptors that will be called on a Method or Constructor in the default implementation of the interception service.
- isActive() - Method in class org.glassfish.hk2.extras.operation.OperationContext
- isReified() - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
-
This method returns true if this descriptor has been reified (class loaded).
L
- lifecycleEvent(InstanceLifecycleEvent) - Method in class org.glassfish.hk2.extras.events.internal.DefaultTopicDistributionService
M
- matches(Class<?>) - Method in class org.glassfish.hk2.extras.provides.NoInstancesFilter.DefaultFilter
- matches(Class<?>) - Method in interface org.glassfish.hk2.extras.provides.NoInstancesFilter
-
Returns
trueif the specified class does not provide instances of itself through automatic invocation of a constructor. - modifyConstructorInterceptors(Constructor<?>, List<ServiceHandle<ConstructorInterceptor>>) - Method in interface org.glassfish.hk2.extras.interception.InterceptorOrderingService
-
This method is called for each constructor that may be intercepted by the default interception service.
- modifyMethodInterceptors(Method, List<ServiceHandle<MethodInterceptor>>) - Method in interface org.glassfish.hk2.extras.interception.InterceptorOrderingService
-
This method is called for each method that may be intercepted by the default interception service.
N
- NoInstancesFilter - Interface in org.glassfish.hk2.extras.provides
-
Matches service classes that do not provide instances of themselves through automatic invocation of a constructor.
- NoInstancesFilter.DefaultFilter - Class in org.glassfish.hk2.extras.provides
-
Matches abstract classes and classes with no public constructors.
O
- onInvalidProvidesAnnotation(ActiveDescriptor<?>, Provides, AnnotatedElement, String) - Method in class org.glassfish.hk2.extras.provides.ProvidesListener
-
Called when an invalid
Providesannotation is found. - OperationContext<T extends Annotation> - Class in org.glassfish.hk2.extras.operation
-
The implementation of
Contextfor an Operation. - OperationContext() - Constructor for class org.glassfish.hk2.extras.operation.OperationContext
- OperationDescriptor<T extends Annotation> - Class in org.glassfish.hk2.extras.operation.internal
- OperationDescriptor(T, SingleOperationManager<T>) - Constructor for class org.glassfish.hk2.extras.operation.internal.OperationDescriptor
- OperationHandle<T extends Annotation> - Interface in org.glassfish.hk2.extras.operation
-
This handle is used to associate or dis-associate threads with Operations.
- OperationHandleImpl<T extends Annotation> - Class in org.glassfish.hk2.extras.operation.internal
- OperationIdentifier<T extends Annotation> - Interface in org.glassfish.hk2.extras.operation
-
Unique identifier for an Operation.
- OperationIdentifierImpl<T extends Annotation> - Class in org.glassfish.hk2.extras.operation.internal
- OperationManager - Interface in org.glassfish.hk2.extras.operation
-
Manages HK2 operations, allowing the user to create new operations of a particular type or discover the current set of active operations or find the current operation on the current thread
- OperationManagerImpl - Class in org.glassfish.hk2.extras.operation.internal
- OperationManagerImpl() - Constructor for class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- OperationState - Enum Class in org.glassfish.hk2.extras.operation
-
Describes the general state of the Operation
- org.glassfish.hk2.extras - module org.glassfish.hk2.extras
- org.glassfish.hk2.extras - package org.glassfish.hk2.extras
- org.glassfish.hk2.extras.events - package org.glassfish.hk2.extras.events
- org.glassfish.hk2.extras.events.internal - package org.glassfish.hk2.extras.events.internal
- org.glassfish.hk2.extras.hk2bridge.internal - package org.glassfish.hk2.extras.hk2bridge.internal
- org.glassfish.hk2.extras.interception - package org.glassfish.hk2.extras.interception
- org.glassfish.hk2.extras.interception.internal - package org.glassfish.hk2.extras.interception.internal
- org.glassfish.hk2.extras.operation - package org.glassfish.hk2.extras.operation
- org.glassfish.hk2.extras.operation.internal - package org.glassfish.hk2.extras.operation.internal
- org.glassfish.hk2.extras.provides - package org.glassfish.hk2.extras.provides
P
- PROVIDED_INSTANCE - Enum constant in enum class org.glassfish.hk2.extras.provides.Provides.DisposalHandledBy
-
The instance of the service that is provided is responsible for its own disposal.
- PROVIDER - Enum constant in enum class org.glassfish.hk2.extras.provides.Provides.DisposalHandledBy
-
The instance or class that provides the service — the one declaring the method annotated with
Provides— is responsible for the disposal of instances of the provided service. - Provides - Annotation Interface in org.glassfish.hk2.extras.provides
-
An annotation indicating that a method or field is the provider of a service.
- Provides.DisposalHandledBy - Enum Class in org.glassfish.hk2.extras.provides
-
Specifies who is responsible for the disposal of instances of a service.
- ProvidesListener - Class in org.glassfish.hk2.extras.provides
-
Enables the
Providesannotation. - ProvidesListener(ServiceLocator) - Constructor for class org.glassfish.hk2.extras.provides.ProvidesListener
R
- ReflectionUtilities - Class in org.glassfish.hk2.extras.interception.internal
- ReflectionUtilities() - Constructor for class org.glassfish.hk2.extras.interception.internal.ReflectionUtilities
- resume() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- resume() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Resumes this operation on the current thread.
- resume(long) - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- resume(long) - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Resumes this operation on the given thread id.
S
- setImplementationType(Type) - Method in class org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor
- setImplementationType(Type) - Method in class org.glassfish.hk2.extras.operation.internal.OperationDescriptor
- setOperationData(Object) - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- setOperationData(Object) - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Sets arbitrary Operation data to be associated with this Operation
- setOperationManager(SingleOperationManager<T>) - Method in class org.glassfish.hk2.extras.operation.OperationContext
- setRemote(ServiceLocator) - Method in class org.glassfish.hk2.extras.hk2bridge.internal.Hk2BridgeImpl
- shutdown() - Method in class org.glassfish.hk2.extras.operation.OperationContext
- shutdownAllOperations(Annotation) - Method in class org.glassfish.hk2.extras.operation.internal.OperationManagerImpl
- shutdownAllOperations(Annotation) - Method in interface org.glassfish.hk2.extras.operation.OperationManager
-
This method will suspend all currently open operations on all threads and then close them.
- SingleOperationManager<T extends Annotation> - Class in org.glassfish.hk2.extras.operation.internal
- subscribersFailed(Topic<?>, Object, MultiException) - Method in interface org.glassfish.hk2.extras.events.DefaultTopicDistributionErrorService
-
This method will be called once per
Topic.publish(Object)call after the message has been distributed to all subscribers. - supportsNullCreation() - Method in class org.glassfish.hk2.extras.operation.OperationContext
- suspend() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- suspend() - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Suspends this operation on the current thread.
- suspend(long) - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- suspend(long) - Method in interface org.glassfish.hk2.extras.operation.OperationHandle
-
Suspends this operation on the given thread id.
- SUSPENDED - Enum constant in enum class org.glassfish.hk2.extras.operation.OperationState
-
The Operation is open but not active on any thread
T
- TopicDistributionModule - Class in org.glassfish.hk2.extras.events.internal
-
This module can be used to enable the default HK2 implementation of Topic distribution.
- TopicDistributionModule() - Constructor for class org.glassfish.hk2.extras.events.internal.TopicDistributionModule
- toString() - Method in class org.glassfish.hk2.extras.operation.internal.OperationHandleImpl
- toString() - Method in class org.glassfish.hk2.extras.operation.internal.OperationIdentifierImpl
- toString() - Method in class org.glassfish.hk2.extras.operation.internal.SingleOperationManager
- toString() - Method in class org.glassfish.hk2.extras.operation.OperationContext
U
- unbridgeServiceLocator(ServiceLocator, ServiceLocator) - Static method in class org.glassfish.hk2.extras.ExtrasUtilities
-
This method will remove all non-local services from the from ServiceLocator into the into ServiceLocator.
V
- valueOf(String) - Static method in enum class org.glassfish.hk2.extras.operation.OperationState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.glassfish.hk2.extras.provides.Provides.DisposalHandledBy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.glassfish.hk2.extras.operation.OperationState
-
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.extras.provides.Provides.DisposalHandledBy
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form