KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > oa > poa > ImplicitActivationPolicyImpl


1 /*
2  * @(#)ImplicitActivationPolicyImpl.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.oa.poa;
9
10 import org.omg.CORBA.*;
11 import org.omg.PortableServer.*;
12
13 final class ImplicitActivationPolicyImpl
14     extends org.omg.CORBA.LocalObject JavaDoc implements ImplicitActivationPolicy {
15
16     public
17     ImplicitActivationPolicyImpl(ImplicitActivationPolicyValue
18                      value) {
19     this.value = value;
20     }
21
22     public ImplicitActivationPolicyValue value() {
23     return value;
24     }
25
26     public int policy_type()
27     {
28     return IMPLICIT_ACTIVATION_POLICY_ID.value ;
29     }
30
31     public Policy copy() {
32     return new ImplicitActivationPolicyImpl(value);
33     }
34
35     public void destroy() {
36     value = null;
37     }
38
39     private ImplicitActivationPolicyValue value;
40
41     public String JavaDoc toString()
42     {
43     return "ImplicitActivationPolicy[" +
44         ((value.value() == ImplicitActivationPolicyValue._IMPLICIT_ACTIVATION) ?
45         "IMPLICIT_ACTIVATION" : "NO_IMPLICIT_ACTIVATION" + "]") ;
46     }
47 }
48
Popular Tags