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

POAPolicyMediatorImpl_NR_UDS

public class POAPolicyMediatorImpl_NR_UDS extends POAPolicyMediatorBase
Implementation of POAPolicyMediator that provides policy specific operations on the POA.

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

	super( policies, poa ) ;

	// assert !policies.retainServants() && policies.useDefaultServant()
	if (policies.retainServants())
	    throw poa.invocationWrapper().policyMediatorBadPolicyInFactory() ;

	if (!policies.useDefaultServant())
	    throw poa.invocationWrapper().policyMediatorBadPolicyInFactory() ;

	defaultServant = null ;
    
Methods Summary
public final voidactivateObject(byte[] id, org.omg.PortableServer.Servant servant)

	throw new WrongPolicy();
    
public voidclearAOM()

	// NO-OP
    
public org.omg.PortableServer.ServantdeactivateObject(byte[] id)

	throw new WrongPolicy();
    
public voidetherealizeAll()

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

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

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

	if (defaultServant != null)
	    return defaultServant;

	throw new ObjectNotActive() ;
    
protected java.lang.ObjectinternalGetServant(byte[] id, java.lang.String operation)

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

	return defaultServant;
    
public voidreturnServant()

	// NO-OP
    
public byte[]servantToId(org.omg.PortableServer.Servant servant)

	
	throw new WrongPolicy();
    
public voidsetDefaultServant(org.omg.PortableServer.Servant servant)

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

	throw new WrongPolicy();