org.glassfish.jersey.internal.inject
Class Utilities
java.lang.Object
org.glassfish.jersey.internal.inject.Utilities
public class Utilities
- extends java.lang.Object
HK2 binding utilites.
- Author:
- Tom Beerbower
|
Method Summary |
static ServiceLocator |
create(java.lang.String name,
ServiceLocator parent,
Module... modules)
Create a ServiceLocator. |
static
|
createActiveDescriptor(java.lang.Class<T> implClass,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
java.lang.reflect.Type... types)
|
static
|
createConstantFactoryDescriptor(Factory<?> factory,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.Class<? extends java.lang.annotation.Annotation> factoryScope,
java.lang.String name,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Type... types)
|
static
|
createFactoryDescriptor(java.lang.Class<T> implClass,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.Class<? extends java.lang.annotation.Annotation> factoryScope,
java.lang.String name,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Type... types)
|
static
|
getOrCreateComponent(ServiceLocator serviceLocator,
java.lang.Class<T> clazz)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utilities
public Utilities()
create
public static ServiceLocator create(java.lang.String name,
ServiceLocator parent,
Module... modules)
- Create a
ServiceLocator.
- Parameters:
name - the name of the service locator to createparent - the parent locator this one should have; may be nullmodules - the modules
- Returns:
- a service locator with all the bindings
getOrCreateComponent
public static <T> T getOrCreateComponent(ServiceLocator serviceLocator,
java.lang.Class<T> clazz)
createActiveDescriptor
public static <T> AbstractActiveDescriptor<T> createActiveDescriptor(java.lang.Class<T> implClass,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
java.lang.reflect.Type... types)
createFactoryDescriptor
public static <T> FactoryDescriptors createFactoryDescriptor(java.lang.Class<T> implClass,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.Class<? extends java.lang.annotation.Annotation> factoryScope,
java.lang.String name,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Type... types)
createConstantFactoryDescriptor
public static <T> FactoryDescriptors createConstantFactoryDescriptor(Factory<?> factory,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.Class<? extends java.lang.annotation.Annotation> factoryScope,
java.lang.String name,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Type... types)
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.