org.sonatype.guice.bean.inject
Class BeanListener

java.lang.Object
  extended by org.sonatype.guice.bean.inject.BeanListener
All Implemented Interfaces:
com.google.inject.spi.TypeListener

public final class BeanListener
extends Object
implements com.google.inject.spi.TypeListener

TypeListener that listens for bean types and arranges for their properties to be injected.


Constructor Summary
BeanListener(BeanBinder beanBinder)
           
 
Method Summary
<B> void
hear(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter)
           
static boolean isInjecting()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanListener

public BeanListener(BeanBinder beanBinder)
Method Detail

hear

public <B> void hear(com.google.inject.TypeLiteral<B> type,
                     com.google.inject.spi.TypeEncounter<B> encounter)
Specified by:
hear in interface com.google.inject.spi.TypeListener

isInjecting

public static boolean isInjecting()
Returns:
true if this thread is performing bean injection; otherwise false


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.