mcconnell 02/05/18 07:45:36
Added: enterprise/orb/src/java/org/apache/orb POAContext.java
DefaultPOAContext.java
Log:
no message
Revision Changes Path
1.1
jakarta-avalon-apps/enterprise/orb/src/java/org/apache/orb/POAContext.java
Index: POAContext.java
===================================================================
/**
* License: etc/LICENSE.TXT
* Copyright: Copyright (C) The Apache Software Foundation. All rights
reserved.
* Copyright: OSM SARL 2001-2002, All Rights Reserved.
*/
package org.apache.orb;
import org.omg.PortableServer.POA;
import org.apache.avalon.framework.context.Context;
/**
* The <code>ORBContext</code> interface defines a <code>Context</code> type
that
* holds an ORB instance.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
*/
public interface POAContext extends Context
{
/**
* Context lookup key for the POA.
*/
public static final String POA_KEY = "poa";
/**
* Returns a POA (Portable Object Adapter)
* @return POA the potable object adapter
*/
POA getPOA( );
}
1.1
jakarta-avalon-apps/enterprise/orb/src/java/org/apache/orb/DefaultPOAContext.java
Index: DefaultPOAContext.java
===================================================================
/**
* File: DefaultORBContext.java
* License: etc/LICENSE.TXT
* Copyright: Copyright (C) The Apache Software Foundation. All rights
reserved.
* Copyright: OSM SARL 2001-2002, All Rights Reserved.
*/
package org.apache.orb;
import org.omg.PortableServer.POA;
import org.apache.avalon.framework.context.DefaultContext;
import org.apache.avalon.framework.context.Context;
/**
* The <code>DefaultORBContext</code> class is Context class that
* holds an ORB instance.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
*/
public class DefaultPOAContext extends DefaultContext
implements POAContext
{
//=================================================================
// state
//=================================================================
private POA m_poa;
//=================================================================
// constructor
//=================================================================
/**
* Creation of a new DefaultORBContext.
* @param poa the POA
*/
public DefaultPOAContext( POA poa )
{
this( poa, null );
}
/**
* Creation of a new DefaultORBContext.
* @param poa the POA
* @param parent the parent context
*/
public DefaultPOAContext( POA poa, Context parent )
{
super( parent );
m_poa = poa;
super.put( POAContext.POA_KEY, poa );
}
//=================================================================
// POAContext
//=================================================================
/**
* Returns the relative root POA.
* @return POA the root POA
*/
public POA getPOA()
{
return m_poa;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>