public interface HandlerContainer
HandlerContainerImpl
.Modifier and Type | Method and Description |
---|---|
void |
bind()
Call this method after the object is constructed in order to bind all its
handlers.
|
boolean |
isBound()
Returns true if the
HandlerContainer is currently bound. |
void |
unbind()
Call this method when you want to release the object and its handlers are
not needed anymore.
|
void bind()
bind()
from the constructor
of a non-leaf class since it is meant to be called after the object has
been entirely constructed.
When automatic binding is used (see HandlerContainerImpl
), this will
be called immediately after the object is constructed through Guice/GIN dependency
injection mechanism.
If you are not using automatic binding, or if you later call
unbind()
on this object, you will have to call bind()
manually.
Multiple call to bind will not fail, the class will be bound once.boolean isBound()
HandlerContainer
is currently bound.
That is, the bind()
method has completed and unbind()
has not
been called.true
if bound, false
otherwise.void unbind()
bind()
again manually
if you ever want to reuse the object.Copyright © 2010-2014 ArcBees. All Rights Reserved.