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:
org.jboss.kernel.spi.event.KernelEventListener

public class GuiceListener
extends GuiceIntegration
implements org.jboss.kernel.spi.event.KernelEventListener

Microcontainer listener that binds newly added controller context to binder.

Author:
Ales Justin

Constructor Summary
GuiceListener(org.jboss.kernel.Kernel kernel, com.google.inject.Binder binder)
           
 
Method Summary
 void onEvent(org.jboss.kernel.spi.event.KernelEvent event, Object handback)
           
 void setFilter(ControllerContextBindFilter filter)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.guice.spi.GuiceIntegration
bindAll, bindAll, bindContext, 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(org.jboss.kernel.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(org.jboss.kernel.spi.event.KernelEvent event,
                    Object handback)
Specified by:
onEvent in interface org.jboss.kernel.spi.event.KernelEventListener

setFilter

public void setFilter(ControllerContextBindFilter filter)


Copyright ? 2007 JBoss Inc.. All Rights Reserved.