org.ow2.jonas.jndi.interceptors.impl.easybeans
Class ResourceCheckerConfigurationExtension

java.lang.Object
  extended by org.ow2.jonas.jndi.interceptors.impl.easybeans.ResourceCheckerConfigurationExtension
All Implemented Interfaces:
org.ow2.easybeans.api.EZBConfigurationExtension, org.ow2.easybeans.api.EZBContainerLifeCycleCallback

public class ResourceCheckerConfigurationExtension
extends Object
implements org.ow2.easybeans.api.EZBConfigurationExtension, org.ow2.easybeans.api.EZBContainerLifeCycleCallback

Allows to register some extensions

Author:
Florent Benoit

Constructor Summary
ResourceCheckerConfigurationExtension(IResourceCheckerManager resourceCheckerManager)
          Build an extension for the given checker manager.
 
Method Summary
 void beforeBind(org.ow2.easybeans.api.EZBContainerCallbackInfo info, org.ow2.easybeans.api.binding.EZBRef reference)
          Called before binding a reference into the registry.
 void configure(org.ow2.easybeans.api.EZBContainerConfig containerConfig)
          Adapt the given configuration.
 void start(org.ow2.easybeans.api.EZBContainerCallbackInfo info)
          Called when container is starting.
 void stop(org.ow2.easybeans.api.EZBContainerCallbackInfo info)
          Called when container is stopping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceCheckerConfigurationExtension

public ResourceCheckerConfigurationExtension(IResourceCheckerManager resourceCheckerManager)
Build an extension for the given checker manager.

Parameters:
resourceCheckerManager - the given manager
Method Detail

configure

public void configure(org.ow2.easybeans.api.EZBContainerConfig containerConfig)
Adapt the given configuration.

Specified by:
configure in interface org.ow2.easybeans.api.EZBConfigurationExtension
Parameters:
containerConfig - JContainerConfig instance.

start

public void start(org.ow2.easybeans.api.EZBContainerCallbackInfo info)
           throws org.ow2.easybeans.api.LifeCycleCallbackException
Called when container is starting.

Specified by:
start in interface org.ow2.easybeans.api.EZBContainerLifeCycleCallback
Parameters:
info - some information on the container which is starting.
Throws:
org.ow2.easybeans.api.LifeCycleCallbackException - if the invocation of the callback failed

stop

public void stop(org.ow2.easybeans.api.EZBContainerCallbackInfo info)
          throws org.ow2.easybeans.api.LifeCycleCallbackException
Called when container is stopping.

Specified by:
stop in interface org.ow2.easybeans.api.EZBContainerLifeCycleCallback
Parameters:
info - some information on the container which is stopping.
Throws:
org.ow2.easybeans.api.LifeCycleCallbackException - if the invocation of the callback failed

beforeBind

public void beforeBind(org.ow2.easybeans.api.EZBContainerCallbackInfo info,
                       org.ow2.easybeans.api.binding.EZBRef reference)
                throws org.ow2.easybeans.api.LifeCycleCallbackException
Called before binding a reference into the registry.

Specified by:
beforeBind in interface org.ow2.easybeans.api.EZBContainerLifeCycleCallback
Parameters:
info - some information on the container which is running.
reference - a reference on the bean that will be bound
Throws:
org.ow2.easybeans.api.LifeCycleCallbackException - if the invocation of the callback failed


Copyright © 2010 OW2 Consortium. All Rights Reserved.