com.sun.enterprise.naming.impl
Class ProviderManager

java.lang.Object
  extended by com.sun.enterprise.naming.impl.ProviderManager

public class ProviderManager
extends Object

This class is a facade for the remote and local SerialContextProvider The need for this class arose from the fact that we wanted to have a way of lazily initializing the Remote SerialContextProvider. The TransientContext member field has to be shared across both remote and local SerialContextProvider. It could have been a static variable but to avoid issues of static variables with multiple threads, etc, this class has been designed. The ORB needs to be initialized before the call to initRemoteProvider()

Author:
Sheetal Vartak

Method Summary
 SerialContextProvider getLocalProvider()
           
static ProviderManager getProviderManager()
           
 TransientContext getTransientContext()
           
 Remote initRemoteProvider(ORB orb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProviderManager

public static ProviderManager getProviderManager()

getTransientContext

public TransientContext getTransientContext()

getLocalProvider

public SerialContextProvider getLocalProvider()

initRemoteProvider

public Remote initRemoteProvider(ORB orb)
                          throws RemoteException
Throws:
RemoteException


Copyright © 2012. All Rights Reserved.