org.jboss.guice.plugins
Class GuiceListener

java.lang.Object
  extended by org.jboss.guice.spi.BinderHolder
      extended by org.jboss.guice.spi.GuiceIntegration
          extended by org.jboss.guice.plugins.GuiceListener
All Implemented Interfaces:
KernelEventListener

public class GuiceListener
extends GuiceIntegration
implements KernelEventListener

Microcontainer listener that binds newly added controller context to binder.

Author:
Ales Justin

Constructor Summary
GuiceListener(Kernel kernel, com.google.inject.Binder binder)
           
 
Method Summary
 void onEvent(KernelEvent event, Object handback)
          Invoked when an event is fired
 void setFilter(ControllerContextBindFilter filter)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.guice.spi.GuiceIntegration
bindAll, bindAll, bindContext, fromMicrocontainer, fromMicrocontainer, getController
 
Methods inherited from class org.jboss.guice.spi.BinderHolder
getBinder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceListener

public GuiceListener(Kernel kernel,
                     com.google.inject.Binder binder)
Method Detail

start

public void start()
           throws Throwable
Throws:
Throwable

stop

public void stop()
          throws Throwable
Throws:
Throwable

onEvent

public void onEvent(KernelEvent event,
                    Object handback)
Description copied from interface: KernelEventListener
Invoked when an event is fired

Specified by:
onEvent in interface KernelEventListener
Parameters:
event - the event
handback - the handback object

setFilter

public void setFilter(ControllerContextBindFilter filter)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.