org.ow2.jonas.cmi.internal.event
Class BeanEventListener

java.lang.Object
  extended by org.ow2.util.ee.event.listeners.AbsBeanEventListener
      extended by org.ow2.jonas.cmi.internal.event.BeanEventListener
All Implemented Interfaces:
org.ow2.util.event.api.IEventListener

public class BeanEventListener
extends org.ow2.util.ee.event.listeners.AbsBeanEventListener

Listener for Beans events.

Author:
eyindanga

Constructor Summary
BeanEventListener()
          Default constructor.
 
Method Summary
 void addClusteredObject(String jndiName, Object clusterConfig, Class<?> homeClass, Class<? extends EJBObject> remoteClass, ClassLoader classLoader, boolean stateful, boolean clusterReplicated)
          Add a clustered bean.
 void handle(org.ow2.util.event.api.IEvent event)
          Handles the given event.
 void removeClusteredObject(String jndiName, org.ow2.cmi.controller.server.ServerClusterViewManager clusterViewManager)
          Removes the given clustered object.
 
Methods inherited from class org.ow2.util.ee.event.listeners.AbsBeanEventListener
accept, getEventProviderFilter, getPriority, setEventProviderFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanEventListener

public BeanEventListener()
Default constructor.

Method Detail

handle

public void handle(org.ow2.util.event.api.IEvent event)
Handles the given event.

Specified by:
handle in interface org.ow2.util.event.api.IEventListener
Specified by:
handle in class org.ow2.util.ee.event.listeners.AbsBeanEventListener
Parameters:
event - the event to handle

removeClusteredObject

public void removeClusteredObject(String jndiName,
                                  org.ow2.cmi.controller.server.ServerClusterViewManager clusterViewManager)
                           throws Exception
Removes the given clustered object.

Parameters:
jndiName - Name of the object to remove
clusterViewManager - the server cluster view manager
Throws:
Exception - any

addClusteredObject

public void addClusteredObject(String jndiName,
                               Object clusterConfig,
                               Class<?> homeClass,
                               Class<? extends EJBObject> remoteClass,
                               ClassLoader classLoader,
                               boolean stateful,
                               boolean clusterReplicated)
                        throws Exception
Add a clustered bean.

Parameters:
jndiName - name of the bean
clusterConfig - The cluster configuration
homeClass - class of the home interface
remoteClass - class of the remote interface
classLoader - he classloader used by the container of this bean
stateful - true if the bean has a state
clusterReplicated - true if the bean is replicated (ha service is required)
Throws:
Exception - any.


Copyright © 2009 OW2 Consortium. All Rights Reserved.