org.glassfish.jersey.internal.inject
Class Utilities

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.Utilities

public class Utilities
extends java.lang.Object

HK2 binding utilites.

Author:
Tom Beerbower

Nested Class Summary
static class Utilities.FactoryDescriptorsImpl
           
 
Constructor Summary
Utilities()
           
 
Method Summary
static ServiceLocator create(java.lang.String name, ServiceLocator parent, Module... modules)
          Create a ServiceLocator.
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)
           
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)
           
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)
           
static
<T> T
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
 

Constructor Detail

Utilities

public Utilities()
Method Detail

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 create
parent - the parent locator this one should have; may be null
modules - 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.