org.ow2.easybeans.api
Interface EZBContainerLifeCycleCallback


public interface EZBContainerLifeCycleCallback

This interface should be implemented by users which want to be notified at some lifecycle step of the container.

Author:
Florent Benoit

Method Summary
 void beforeBind(EZBContainerCallbackInfo info, EZBRef reference)
          Called before binding a reference into the registry.
 void start(EZBContainerCallbackInfo info)
          Called when container is starting.
 void stop(EZBContainerCallbackInfo info)
          Called when container is stopping.
 

Method Detail

start

void start(EZBContainerCallbackInfo info)
           throws LifeCycleCallbackException
Called when container is starting.

Parameters:
info - some information on the container which is starting.
Throws:
LifeCycleCallbackException - if the invocation of the callback failed

stop

void stop(EZBContainerCallbackInfo info)
          throws LifeCycleCallbackException
Called when container is stopping.

Parameters:
info - some information on the container which is stopping.
Throws:
LifeCycleCallbackException - if the invocation of the callback failed

beforeBind

void beforeBind(EZBContainerCallbackInfo info,
                EZBRef reference)
                throws LifeCycleCallbackException
Called before binding a reference into the registry.

Parameters:
info - some information on the container which is running.
reference - a reference on the bean that will be bound
Throws:
LifeCycleCallbackException - if the invocation of the callback failed


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.