FileDocCategorySizeDatePackage
ObjectAdapterBase.javaAPI DocJava SE 5 API5379Fri Aug 26 14:54:38 BST 2005com.sun.corba.se.spi.oa

ObjectAdapterBase

public abstract class ObjectAdapterBase extends org.omg.CORBA.LocalObject implements com.sun.corba.se.spi.oa.ObjectAdapter

Fields Summary
private com.sun.corba.se.spi.orb.ORB
orb
private final com.sun.corba.se.impl.logging.POASystemException
_iorWrapper
private final com.sun.corba.se.impl.logging.POASystemException
_invocationWrapper
private final com.sun.corba.se.impl.logging.POASystemException
_lifecycleWrapper
private final com.sun.corba.se.impl.logging.OMGSystemException
_omgInvocationWrapper
private final com.sun.corba.se.impl.logging.OMGSystemException
_omgLifecycleWrapper
private com.sun.corba.se.spi.ior.IORTemplate
iortemp
private byte[]
adapterId
private org.omg.PortableInterceptor.ObjectReferenceTemplate
adapterTemplate
private org.omg.PortableInterceptor.ObjectReferenceFactory
currentFactory
Constructors Summary
public ObjectAdapterBase(com.sun.corba.se.spi.orb.ORB orb)

	this.orb = orb ;
	_iorWrapper = POASystemException.get( orb,
	    CORBALogDomains.OA_IOR ) ;
	_lifecycleWrapper = POASystemException.get( orb,
	    CORBALogDomains.OA_LIFECYCLE ) ;
	_omgLifecycleWrapper = OMGSystemException.get( orb,
	    CORBALogDomains.OA_LIFECYCLE ) ;
	_invocationWrapper = POASystemException.get( orb,
	    CORBALogDomains.OA_INVOCATION ) ;
	_omgInvocationWrapper = OMGSystemException.get( orb,
	    CORBALogDomains.OA_INVOCATION ) ;
    
Methods Summary
public abstract voidenter()

public abstract voidexit()

public final byte[]getAdapterId()

	return adapterId ;
    
public final org.omg.PortableInterceptor.ObjectReferenceTemplategetAdapterTemplate()

	return adapterTemplate ;
    
public final org.omg.PortableInterceptor.ObjectReferenceFactorygetCurrentFactory()

	return currentFactory ;
    
public abstract org.omg.CORBA.PolicygetEffectivePolicy(int type)

public final com.sun.corba.se.spi.ior.IORTemplategetIORTemplate()

	return iortemp ;
    
public abstract java.lang.String[]getInterfaces(java.lang.Object servant, byte[] objectId)

public abstract voidgetInvocationServant(OAInvocationInfo info)

public abstract org.omg.CORBA.ObjectgetLocalServant(byte[] objectId)

public abstract intgetManagerId()

public final com.sun.corba.se.spi.orb.ORBgetORB()

	return orb ;
    
protected abstract com.sun.corba.se.spi.copyobject.ObjectCopierFactorygetObjectCopierFactory()

public abstract shortgetState()

public final voidinitializeTemplate(com.sun.corba.se.spi.ior.ObjectKeyTemplate oktemp, boolean notifyORB, com.sun.corba.se.impl.oa.poa.Policies policies, java.lang.String codebase, java.lang.String objectAdapterManagerId, com.sun.corba.se.spi.ior.ObjectAdapterId objectAdapterId)

	adapterId = oktemp.getAdapterId() ;

	iortemp = IORFactories.makeIORTemplate(oktemp) ;

	// This calls acceptors which create profiles and may
	// add tagged components to those profiles.
	orb.getCorbaTransportManager().addToIORTemplate(
            iortemp, policies,
	    codebase, objectAdapterManagerId, objectAdapterId);

	adapterTemplate = IORFactories.makeObjectReferenceTemplate( orb, 
	    iortemp ) ;
	currentFactory = adapterTemplate ;

	if (notifyORB) {
	    PIHandler pih = orb.getPIHandler() ;
	    if (pih != null)
		// This runs the IORInterceptors.
		pih.objectAdapterCreated( this ) ;
	}

	iortemp.makeImmutable() ;
    
public final com.sun.corba.se.impl.logging.POASystemExceptioninvocationWrapper()

	return _invocationWrapper ;
    
public final com.sun.corba.se.impl.logging.POASystemExceptioniorWrapper()

	return _iorWrapper ;
    
public final com.sun.corba.se.impl.logging.POASystemExceptionlifecycleWrapper()

	return _lifecycleWrapper ;
    
public OAInvocationInfomakeInvocationInfo(byte[] objectId)

	OAInvocationInfo info = new OAInvocationInfo( this, objectId ) ;
	info.setCopierFactory( getObjectCopierFactory() ) ;
	return info ;
    
public final org.omg.CORBA.ObjectmakeObject(java.lang.String repId, byte[] oid)

	return currentFactory.make_object( repId, oid ) ;
    
public final com.sun.corba.se.impl.logging.OMGSystemExceptionomgInvocationWrapper()

	return _omgInvocationWrapper ;
    
public final com.sun.corba.se.impl.logging.OMGSystemExceptionomgLifecycleWrapper()

	return _omgLifecycleWrapper ;
    
public abstract voidreturnServant()

public final voidsetCurrentFactory(org.omg.PortableInterceptor.ObjectReferenceFactory factory)

	currentFactory = factory ;