org.jboss.guice.plugins
Class GuiceListener
java.lang.Object
org.jboss.guice.spi.BinderHolder
org.jboss.guice.spi.GuiceIntegration
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuiceListener
public GuiceListener(Kernel kernel,
com.google.inject.Binder binder)
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 eventhandback
- the handback object
setFilter
public void setFilter(ControllerContextBindFilter filter)
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.