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
<T> com.google.inject.Provider<T>
guicify(javax.inject.Provider<T> provider)
          This is a copy of com.google.inject.util.Providers#guicify(javax.inject.Provider) with added @PreDestroy methods.
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)

guicify

public static <T> com.google.inject.Provider<T> guicify(javax.inject.Provider<T> provider)
This is a copy of com.google.inject.util.Providers#guicify(javax.inject.Provider) with added @PreDestroy methods.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.