org.sonatype.guice.bean.inject
Class BeanListener
java.lang.Object
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.
Method Summary |
|
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 |
BeanListener
public BeanListener(BeanBinder beanBinder)
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.