FileDocCategorySizeDatePackage
CopyObjectPolicy.javaAPI DocJava SE 5 API933Fri Aug 26 14:54:36 BST 2005com.sun.corba.se.spi.extension

CopyObjectPolicy.java

/*
 * @(#)CopyObjectPolicy.java	1.4 03/12/19
 *
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package com.sun.corba.se.spi.extension ;

import org.omg.CORBA.Policy ;
import org.omg.CORBA.LocalObject ;
import com.sun.corba.se.impl.orbutil.ORBConstants ;

/** Policy used to specify the copyObject implementation to use.
*/
public class CopyObjectPolicy extends LocalObject implements Policy
{
    private final int value ;

    public CopyObjectPolicy( int value ) 
    {
	this.value = value ;
    }

    public int getValue()
    {
	return value ;
    }

    public int policy_type ()
    {
	return ORBConstants.COPY_OBJECT_POLICY ;
    }

    public org.omg.CORBA.Policy copy ()
    {
	return this ;
    }

    public void destroy ()
    {
	// NO-OP
    }

    public String toString() 
    {
	return "CopyObjectPolicy[" + value + "]" ;
    }
}