FileDocCategorySizeDatePackage
POAPolicyMediatorImpl_R_UDS.javaAPI DocJava SE 5 API2728Fri Aug 26 14:54:26 BST 2005com.sun.corba.se.impl.oa.poa

POAPolicyMediatorImpl_R_UDS

public class POAPolicyMediatorImpl_R_UDS extends POAPolicyMediatorBase_R
Implementation of POARequesHandler that provides policy specific operations on the POA.

Fields Summary
private org.omg.PortableServer.Servant
defaultServant
Constructors Summary
POAPolicyMediatorImpl_R_UDS(Policies policies, POAImpl poa)

	// assert policies.retainServants() 
	super( policies, poa ) ;
	defaultServant = null ;

	// policies.useDefaultServant()
	if (!policies.useDefaultServant())
	    throw poa.invocationWrapper().policyMediatorBadPolicyInFactory() ;
    
Methods Summary
public voidetherealizeAll()

	
	// NO-OP
    
public org.omg.PortableServer.ServantgetDefaultServant()

	if (defaultServant == null)
	    throw new NoServant();
	else
	    return defaultServant;
    
public org.omg.PortableServer.ServantManagergetServantManager()

	throw new WrongPolicy();
    
public org.omg.PortableServer.ServantidToServant(byte[] id)

	ActiveObjectMap.Key key = new ActiveObjectMap.Key( id ) ;
	Servant s = internalKeyToServant(key);
	
	if (s == null)
	    if (defaultServant != null)
		s = defaultServant;

	if (s == null)
	    throw new ObjectNotActive() ;

	return s;
    
protected java.lang.ObjectinternalGetServant(byte[] id, java.lang.String operation)

 
	Servant servant = internalIdToServant( id ) ;
	if (servant == null)
	    servant = defaultServant ;

	if (servant == null)
	    throw poa.invocationWrapper().poaNoDefaultServant() ;

	return servant ;
    
public voidsetDefaultServant(org.omg.PortableServer.Servant servant)

	defaultServant = servant;
	setDelegate(defaultServant, "DefaultServant".getBytes());
    
public voidsetServantManager(org.omg.PortableServer.ServantManager servantManager)

	throw new WrongPolicy();