Uses of Interface
org.glassfish.hk2.api.ServiceHandle
-
-
Uses of ServiceHandle in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return ServiceHandle Modifier and Type Method Description ServiceHandle<T>IterableProvider. getHandle()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.<T> ServiceHandle<T>ServiceLocator. getServiceHandle(java.lang.Class<T> contractOrImpl, java.lang.annotation.Annotation... qualifiers)Gets aServiceHandlethat can be used to get and destroy the service that best matches the given criteria<T> ServiceHandle<T>ServiceLocator. getServiceHandle(java.lang.Class<T> contractOrImpl, java.lang.String name, java.lang.annotation.Annotation... qualifiers)Gets aServiceHandlethat can be used to get and destroy the service that best matches the given criteria<T> ServiceHandle<T>ServiceLocator. getServiceHandle(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)Gets aServiceHandlethat can be used to get and destroy the service that best matches the given criteria<T> ServiceHandle<T>ServiceLocator. getServiceHandle(java.lang.reflect.Type contractOrImpl, java.lang.String name, java.lang.annotation.Annotation... qualifiers)Gets aServiceHandlethat can be used to get and destroy the service that best matches the given criteria<T> ServiceHandle<T>ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor)Gets aServiceHandlethat can be used to get and destroy the service described by theActiveDescriptor.<T> ServiceHandle<T>ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)Gets aServiceHandlethat can be used to get and destroy the service described by theActiveDescriptor.Methods in org.glassfish.hk2.api that return types with arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<?>>ServiceLocator. getAllServiceHandles(java.lang.annotation.Annotation qualifier, java.lang.annotation.Annotation... qualifiers)Gets a list ofServiceHandlethat can be used to get and destroy services associated with descriptors that match the provided criteria<T> java.util.List<ServiceHandle<T>>ServiceLocator. getAllServiceHandles(java.lang.Class<T> contractOrImpl, java.lang.annotation.Annotation... qualifiers)Gets a list ofServiceHandlethat can be used to get and destroy services associated with descriptors that match the provided criteriajava.util.List<ServiceHandle<?>>ServiceLocator. getAllServiceHandles(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)Gets a list ofServiceHandlethat can be used to get and destroy services associated with descriptors that match the provided criteriajava.util.List<ServiceHandle<?>>ServiceLocator. getAllServiceHandles(Filter searchCriteria)Gets a list ofServiceHandlewhoseActiveDescriptors match the supplied filter.java.util.List<ServiceHandle<?>>ServiceHandle. getSubHandles()Returns a list of subordinate subhandles to this root handlejava.lang.Iterable<ServiceHandle<T>>IterableProvider. handleIterator()This version of iterator returns an iterator of ServiceHandles rather than returning the services (which then have no way to be properly destroyed)Methods in org.glassfish.hk2.api with parameters of type ServiceHandle Modifier and Type Method Description java.lang.ObjectServiceLocator. assistedInject(java.lang.Object injectMe, java.lang.reflect.Method method, ServiceHandle<?> root, MethodParameter... params)This will invoke the given method on the given object.TActiveDescriptor. create(ServiceHandle<?> root)Creates an instance of the ActiveDescriptor.<U> UContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance.<T> TServiceLocator. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)<T> TServiceLocator. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee injectee)This method should be called by code resolving injectee's on behalf of some root service, usually by an implementation ofInjectionResolver.resolve(Injectee, ServiceHandle).java.lang.ObjectInjectionResolver. resolve(Injectee injectee, ServiceHandle<?> root)This method will return the object that should be injected into the given injection point. -
Uses of ServiceHandle in org.glassfish.hk2.configuration.api
Methods in org.glassfish.hk2.configuration.api that return types with arguments of type ServiceHandle Modifier and Type Method Description java.lang.Iterable<ServiceHandle<T>>ChildIterable. handleIterator()Returns an iterator of the children's Service Handle, rather than their services -
Uses of ServiceHandle in org.glassfish.hk2.configuration.internal
Methods in org.glassfish.hk2.configuration.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description java.lang.Iterable<ServiceHandle<T>>ChildIterableImpl. handleIterator()Methods in org.glassfish.hk2.configuration.internal with parameters of type ServiceHandle Modifier and Type Method Description java.lang.ObjectDelegatingNamedActiveDescriptor. create(ServiceHandle<?> root)<U> UConfiguredByContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)private <U> UConfiguredByContext. internalFindOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)java.lang.ObjectChildInjectResolverImpl. resolve(Injectee injectee, ServiceHandle<?> root)java.lang.ObjectConfiguredByInjectionResolver. resolve(Injectee injectee, ServiceHandle<?> root) -
Uses of ServiceHandle in org.glassfish.hk2.extras.hk2bridge.internal
Methods in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ServiceHandle Modifier and Type Method Description TCrossOverDescriptor. create(ServiceHandle<?> root) -
Uses of ServiceHandle in org.glassfish.hk2.extras.interception
Methods in org.glassfish.hk2.extras.interception that return types with arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>>InterceptorOrderingService. modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor, java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)This method is called for each constructor that may be intercepted by the default interception service.java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>>InterceptorOrderingService. modifyMethodInterceptors(java.lang.reflect.Method method, java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)This method is called for each method that may be intercepted by the default interception service.Method parameters in org.glassfish.hk2.extras.interception with type arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>>InterceptorOrderingService. modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor, java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)This method is called for each constructor that may be intercepted by the default interception service.java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>>InterceptorOrderingService. modifyMethodInterceptors(java.lang.reflect.Method method, java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)This method is called for each method that may be intercepted by the default interception service. -
Uses of ServiceHandle in org.glassfish.hk2.extras.interception.internal
Methods in org.glassfish.hk2.extras.interception.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description private java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>>DefaultInterceptionService. orderConstructors(java.lang.reflect.Constructor<?> constructor, java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current)private java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>>DefaultInterceptionService. orderMethods(java.lang.reflect.Method method, java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> current)Method parameters in org.glassfish.hk2.extras.interception.internal with type arguments of type ServiceHandle Modifier and Type Method Description private java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>>DefaultInterceptionService. orderConstructors(java.lang.reflect.Constructor<?> constructor, java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current)private java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>>DefaultInterceptionService. orderMethods(java.lang.reflect.Method method, java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> current) -
Uses of ServiceHandle in org.glassfish.hk2.extras.operation
Methods in org.glassfish.hk2.extras.operation with parameters of type ServiceHandle Modifier and Type Method Description <U> UOperationContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) -
Uses of ServiceHandle in org.glassfish.hk2.extras.operation.internal
Methods in org.glassfish.hk2.extras.operation.internal with parameters of type ServiceHandle Modifier and Type Method Description OperationHandle<T>OperationDescriptor. create(ServiceHandle<?> root) -
Uses of ServiceHandle in org.glassfish.hk2.internal
Fields in org.glassfish.hk2.internal declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>HandleAndService. handleMethods in org.glassfish.hk2.internal that return ServiceHandle Modifier and Type Method Description ServiceHandle<?>HandleAndService. getHandle()Methods in org.glassfish.hk2.internal with parameters of type ServiceHandle Modifier and Type Method Description TActiveDescriptorBuilderImpl.BuiltActiveDescriptor. create(ServiceHandle<?> root)TConstantActiveDescriptor. create(ServiceHandle<?> root)<U> UInheritableThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)<U> UPerThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)Constructors in org.glassfish.hk2.internal with parameters of type ServiceHandle Constructor Description HandleAndService(ServiceHandle<?> handle, java.lang.Object service) -
Uses of ServiceHandle in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel that return types with arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<?>>Sorter. sort(java.util.List<ServiceHandle<?>> descriptors)Sort the given list of run level service handles.Methods in org.glassfish.hk2.runlevel with parameters of type ServiceHandle Modifier and Type Method Description <U> URunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)Method parameters in org.glassfish.hk2.runlevel with type arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<?>>Sorter. sort(java.util.List<ServiceHandle<?>> descriptors)Sort the given list of run level service handles. -
Uses of ServiceHandle in org.glassfish.hk2.runlevel.internal
Fields in org.glassfish.hk2.runlevel.internal declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>CurrentTaskFuture.QueueRunner. wouldHaveBlockedFields in org.glassfish.hk2.runlevel.internal with type parameters of type ServiceHandle Modifier and Type Field Description private java.util.List<ServiceHandle<RunLevelListener>>CurrentTaskFuture. allListenerHandlesprivate java.util.List<ServiceHandle<ProgressStartedListener>>CurrentTaskFuture. allProgressStartedHandlesprivate java.util.List<ServiceHandle<Sorter>>CurrentTaskFuture. allSorterHandlesprivate java.util.List<ServiceHandle<RunLevelListener>>CurrentTaskFuture.DownAllTheWay. listenersprivate java.util.List<ServiceHandle<RunLevelListener>>CurrentTaskFuture.UpAllTheWay. listenersprivate java.util.List<ServiceHandle<RunLevelListener>>CurrentTaskFuture.UpOneLevel. listenersprivate java.util.HashSet<ServiceHandle<?>>CurrentTaskFuture.UpOneLevel. outstandingHandlesprivate java.util.List<ServiceHandle<?>>CurrentTaskFuture.QueueRunner. queueprivate java.util.List<ServiceHandle<Sorter>>CurrentTaskFuture.UpAllTheWay. sortersprivate java.util.List<ServiceHandle<Sorter>>CurrentTaskFuture.UpOneLevel. sortersMethods in org.glassfish.hk2.runlevel.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description private java.util.List<ServiceHandle<?>>CurrentTaskFuture.UpOneLevel. applySorters(java.util.List<ServiceHandle<?>> jobs)Methods in org.glassfish.hk2.runlevel.internal with parameters of type ServiceHandle Modifier and Type Method Description <U> UAsyncRunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)This is from theContextAPI, called by the wrapperprivate voidCurrentTaskFuture.UpOneLevel. jobFinished(ServiceHandle<?> handle)private voidCurrentTaskFuture.UpOneLevel. jobRunning(ServiceHandle<?> handle)private voidCurrentTaskFuture.QueueRunner. oneJob(ServiceHandle<?> fService, boolean block)private static java.lang.StringAsyncRunLevelContext. oneLineRoot(ServiceHandle<?> root)Method parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandle Modifier and Type Method Description private java.util.List<ServiceHandle<?>>CurrentTaskFuture.UpOneLevel. applySorters(java.util.List<ServiceHandle<?>> jobs)private static voidCurrentTaskFuture. invokeOnCancelled(CurrentTaskFuture job, int levelAchieved, java.util.List<ServiceHandle<RunLevelListener>> listeners)private static ErrorInformationCurrentTaskFuture. invokeOnError(CurrentTaskFuture job, java.lang.Throwable th, ErrorInformation.ErrorAction action, java.util.List<ServiceHandle<RunLevelListener>> listeners, Descriptor descriptor)private voidCurrentTaskFuture. invokeOnProgress(ChangeableRunLevelFuture job, int level, java.util.List<ServiceHandle<RunLevelListener>> listeners)private voidCurrentTaskFuture. invokeOnProgressStarted(ChangeableRunLevelFuture job, int level, java.util.List<ServiceHandle<ProgressStartedListener>> listeners)Constructor parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandle Constructor Description DownAllTheWay(int goingTo, CurrentTaskFuture future, java.util.List<ServiceHandle<RunLevelListener>> listeners)QueueRunner(ServiceLocator locator, AsyncRunLevelContext asyncContext, java.lang.Object queueLock, java.util.List<ServiceHandle<?>> queue, CurrentTaskFuture.UpOneLevel parent, java.lang.Object parentLock, int maxThreads)UpAllTheWay(int goingTo, CurrentTaskFuture future, java.util.List<ServiceHandle<RunLevelListener>> listeners, java.util.List<ServiceHandle<Sorter>> sorters, int maxThreads, boolean useThreads, long cancelTimeout)UpOneLevel(int paramUpToThisLevel, CurrentTaskFuture.UpAllTheWay master, CurrentTaskFuture currentTaskFuture, java.util.List<ServiceHandle<RunLevelListener>> listeners, java.util.List<ServiceHandle<Sorter>> sorters, int maxThreads, long cancelTimeout) -
Uses of ServiceHandle in org.glassfish.hk2.utilities
Fields in org.glassfish.hk2.utilities declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>ContextualInput. rootMethods in org.glassfish.hk2.utilities that return ServiceHandle Modifier and Type Method Description static <T> ServiceHandle<T>BuilderHelper. createConstantServiceHandle(T obj)Creates a ServiceHandle that will always return the given object from thegetService()method.ServiceHandle<?>ContextualInput. getRoot()Returns theServiceHandleroot associated with this contextual creationMethods in org.glassfish.hk2.utilities with parameters of type ServiceHandle Modifier and Type Method Description TAliasDescriptor. create(ServiceHandle<?> root)<U> UImmediateContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)static java.lang.StringServiceLocatorUtilities. getOneMetadataField(ServiceHandle<?> h, java.lang.String field)Gets one value from a metadata field from the given service handleConstructors in org.glassfish.hk2.utilities with parameters of type ServiceHandle Constructor Description ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root)The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)method -
Uses of ServiceHandle in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement ServiceHandle Modifier and Type Class Description classServiceHandleImpl<T>This handle does the underlying work of getting the service.Fields in org.jvnet.hk2.internal with type parameters of type ServiceHandle Modifier and Type Field Description private java.util.LinkedList<ServiceHandle<?>>ServiceLocatorImpl. configListenersprivate java.util.List<ServiceHandle<U>>IterableProviderImpl.HandleIterable. handlesprivate java.util.LinkedList<ServiceHandle<U>>IterableProviderImpl.MyHandleIterator. handlesprivate java.util.LinkedList<ServiceHandle<U>>IterableProviderImpl.MyIterator. handlesMethods in org.jvnet.hk2.internal that return ServiceHandle Modifier and Type Method Description private ServiceHandle<Factory<T>>FactoryCreator. getFactoryHandle()ServiceHandle<T>IterableProviderImpl. getHandle()<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(java.lang.Class<T> contractOrImpl, java.lang.annotation.Annotation... qualifiers)<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(java.lang.Class<T> contractOrImpl, java.lang.String name, java.lang.annotation.Annotation... qualifiers)<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(java.lang.reflect.Type contractOrImpl, java.lang.String name, java.lang.annotation.Annotation... qualifiers)<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor)<T> ServiceHandle<T>ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)(package private) <T> ServiceHandle<T>ServiceLocatorImpl. getUnqualifiedServiceHandle(java.lang.reflect.Type contractOrImpl, Unqualified unqualified, boolean isIterable, java.lang.annotation.Annotation... qualifiers)ServiceHandle<U>IterableProviderImpl.MyHandleIterator. next()Methods in org.jvnet.hk2.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description java.util.List<ServiceHandle<?>>ServiceLocatorImpl. getAllServiceHandles(java.lang.annotation.Annotation qualifier, java.lang.annotation.Annotation... qualifiers)<T> java.util.List<ServiceHandle<T>>ServiceLocatorImpl. getAllServiceHandles(java.lang.Class<T> contractOrImpl, java.lang.annotation.Annotation... qualifiers)java.util.List<ServiceHandle<?>>ServiceLocatorImpl. getAllServiceHandles(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)java.util.List<ServiceHandle<?>>ServiceLocatorImpl. getAllServiceHandles(Filter searchCriteria)(package private) java.util.List<ServiceHandle<?>>ServiceLocatorImpl. getAllUnqualifiedServiceHandles(java.lang.reflect.Type contractOrImpl, Unqualified unqualified, boolean isIterable, java.lang.annotation.Annotation... qualifiers)java.util.List<ServiceHandle<?>>ServiceHandleImpl. getSubHandles()java.lang.Iterable<ServiceHandle<T>>IterableProviderImpl. handleIterator()java.util.Iterator<ServiceHandle<U>>IterableProviderImpl.HandleIterable. iterator()private java.util.List<ServiceHandle<?>>ServiceLocatorImpl. protectedGetAllServiceHandles(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)Methods in org.jvnet.hk2.internal with parameters of type ServiceHandle Modifier and Type Method Description java.lang.ObjectServiceLocatorImpl. assistedInject(java.lang.Object injectMe, java.lang.reflect.Method method, ServiceHandle<?> root, MethodParameter... params)intServiceHandleComparator. compare(ServiceHandle<?> o1, ServiceHandle<?> o2)TAutoActiveDescriptor. create(ServiceHandle<?> root)TClazzCreator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)TConstantActiveDescriptor. create(ServiceHandle<?> root)TCreator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)Creates an instance of the given typeTFactoryCreator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)TSystemDescriptor. create(ServiceHandle<?> root)static <T> TUtilities. createService(ActiveDescriptor<T> root, Injectee injectee, ServiceLocatorImpl locator, ServiceHandle<T> handle, java.lang.Class<?> requestedClass)Creates the service (without the need for an intermediate ServiceHandle to be created)<T> TPerLookupContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)<T> TSingletonContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)(package private) TServiceHandleImpl. getService(ServiceHandle<T> handle)<T> TServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)Deprecated.<T> TServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee originalRequest)static java.lang.ObjectUtilities. justAssistedInject(java.lang.Object injectMe, java.lang.reflect.Method method, ServiceLocatorImpl locator, ServiceHandle<?> root, MethodParameter... givenValues)Just injects this one methodprivate voidClazzCreator. resolve(java.util.Map<SystemInjecteeImpl,java.lang.Object> addToMe, InjectionResolver<?> resolver, SystemInjecteeImpl injectee, ServiceHandle<?> root, Collector errorCollection)java.lang.ObjectThreeThirtyResolver. resolve(Injectee injectee, ServiceHandle<?> root)private java.util.Map<SystemInjecteeImpl,java.lang.Object>ClazzCreator. resolveAllDependencies(ServiceHandle<?> root)Method parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandle Modifier and Type Method Description private voidServiceLocatorImpl. callAllConfigurationListeners(java.util.List<ServiceHandle<?>> allListeners)Constructor parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandle Constructor Description HandleIterable(java.util.List<ServiceHandle<U>> handles)MyHandleIterator(java.util.List<ServiceHandle<U>> handles)MyIterator(java.util.List<ServiceHandle<U>> handles)
-