org.jboss.ejb3.proxy.clustered.jndiregistrar
Class JndiClusteredSessionRegistrarBase

java.lang.Object
  extended by org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase
      extended by org.jboss.ejb3.proxy.clustered.jndiregistrar.JndiClusteredSessionRegistrarBase
All Implemented Interfaces:
ProxyClusteringRegistryListener
Direct Known Subclasses:
JndiClusteredStatefulSessionRegistrar, JndiClusteredStatelessSessionRegistrar

public abstract class JndiClusteredSessionRegistrarBase
extends org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase
implements ProxyClusteringRegistryListener

Responsible for binding of ObjectFactories and creation/registration of associated ProxyFactories, centralizing operations common to that of all clustered Session EJB Implementations.

Author:
Brian Stansberry

Constructor Summary
JndiClusteredSessionRegistrarBase(String sessionProxyObjectFactoryType, ProxyClusteringRegistry registry)
          Create a new JndiClusteredSessionRegistrarBase.
 
Method Summary
 void beanClusteringInfoAdded(ProxyClusteringInfo beanClusteringInfo)
          Notification that a ProxyClusteringInfo has been registered.
 void beanClusteringInfoRemoved(ProxyClusteringInfo beanClusteringInfo)
          Notification that a ProxyClusteringInfo has been unregistered.
 void clusterTopologyChanged(ProxyClusteringInfo beanClusteringInfo)
          Finds any JndiReferenceBindingSet associated with the beanClusteringInfo's container, updates any References associated with the beanClusteringInfo's FamilyWrapper to reflect the new cluster topoloyg, and rebinds the reference in JNDI.
protected  org.jboss.ejb3.proxy.impl.jndiregistrar.JndiReferenceBindingSet createJndiReferenceBindingSet(Context context, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, ClassLoader cl, String containerName, String containerGuid, org.jboss.aop.Advisor advisor)
          Overrides the superclass version to add clustering related RefAddrs to the binding references.
 String getProxyFactoryRegistryKey(String jndiName, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, boolean isLocal)
           
 ProxyClusteringRegistry getRegistry()
           
 
Methods inherited from class org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase
bind, bind, bind, bindEjb, createLocalProxyFactory, createRemoteProxyFactory, createRemotingRefAddr, createStandardReference, deregisterProxyFactory, getHumanReadableListOfInterfacesInRefAddrs, getSessionProxyObjectFactoryType, isHomeAndBusinessBoundTogether, rebind, registerProxyFactory, setSessionProxyObjectFactoryType, unbind, unbindEjb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiClusteredSessionRegistrarBase

public JndiClusteredSessionRegistrarBase(String sessionProxyObjectFactoryType,
                                         ProxyClusteringRegistry registry)
Create a new JndiClusteredSessionRegistrarBase.

Parameters:
sessionProxyObjectFactoryType -
registry - registry of clustering information about deployed containers
Method Detail

clusterTopologyChanged

public void clusterTopologyChanged(ProxyClusteringInfo beanClusteringInfo)
Finds any JndiReferenceBindingSet associated with the beanClusteringInfo's container, updates any References associated with the beanClusteringInfo's FamilyWrapper to reflect the new cluster topoloyg, and rebinds the reference in JNDI.

Specified by:
clusterTopologyChanged in interface ProxyClusteringRegistryListener
Parameters:
beanClusteringInfo - the affected ProxyClusteringInfo

beanClusteringInfoAdded

public void beanClusteringInfoAdded(ProxyClusteringInfo beanClusteringInfo)
Description copied from interface: ProxyClusteringRegistryListener
Notification that a ProxyClusteringInfo has been registered.

Specified by:
beanClusteringInfoAdded in interface ProxyClusteringRegistryListener
Parameters:
beanClusteringInfo - the item that was registered.

beanClusteringInfoRemoved

public void beanClusteringInfoRemoved(ProxyClusteringInfo beanClusteringInfo)
Description copied from interface: ProxyClusteringRegistryListener
Notification that a ProxyClusteringInfo has been unregistered.

Specified by:
beanClusteringInfoRemoved in interface ProxyClusteringRegistryListener
Parameters:
beanClusteringInfo - the item that was unregistered.

getRegistry

public ProxyClusteringRegistry getRegistry()

getProxyFactoryRegistryKey

public String getProxyFactoryRegistryKey(String jndiName,
                                         org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
                                         boolean isLocal)
Overrides:
getProxyFactoryRegistryKey in class org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase

createJndiReferenceBindingSet

protected org.jboss.ejb3.proxy.impl.jndiregistrar.JndiReferenceBindingSet createJndiReferenceBindingSet(Context context,
                                                                                                        org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
                                                                                                        ClassLoader cl,
                                                                                                        String containerName,
                                                                                                        String containerGuid,
                                                                                                        org.jboss.aop.Advisor advisor)
Overrides the superclass version to add clustering related RefAddrs to the binding references.

Overrides:
createJndiReferenceBindingSet in class org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.