info.magnolia.objectfactory.guice
Class GuiceUtils

java.lang.Object
  extended by info.magnolia.objectfactory.guice.GuiceUtils

public class GuiceUtils
extends Object

Utilities for guice.

Version:
$Id$

Constructor Summary
GuiceUtils()
           
 
Method Summary
static boolean hasExplicitBindingFor(com.google.inject.Injector injector, Class<?> type)
           
static
<T> javax.inject.Provider<T>
providerForComponentFactory(Class<? extends ComponentFactory<T>> componentFactoryClass)
           
static
<T> javax.inject.Provider<T>
providerForComponentFactory(ComponentFactory<T> componentFactory)
           
static
<T> javax.inject.Provider<T>
providerForInstance(T instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceUtils

public GuiceUtils()
Method Detail

providerForInstance

public static <T> javax.inject.Provider<T> providerForInstance(T instance)

providerForComponentFactory

public static <T> javax.inject.Provider<T> providerForComponentFactory(Class<? extends ComponentFactory<T>> componentFactoryClass)

providerForComponentFactory

public static <T> javax.inject.Provider<T> providerForComponentFactory(ComponentFactory<T> componentFactory)

hasExplicitBindingFor

public static boolean hasExplicitBindingFor(com.google.inject.Injector injector,
                                            Class<?> type)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.