package CF.jni; public abstract class DevicePOA extends omnijni.Servant implements CF.DeviceOperations { public DevicePOA () { } public org.omg.CORBA.Object _this_object (org.omg.CORBA.ORB orb) { this._activate(); long ref = DevicePOA.new_reference(this.servant_); CF.jni._DeviceStub stub = new CF.jni._DeviceStub(ref); String ior = omnijni.ORB.object_to_string(stub); return orb.string_to_object(ior); } public synchronized void _activate () { if (this.servant_ == 0) { this.servant_ = DevicePOA.new_servant(); set_delegate(this.servant_, this); } } public synchronized void _deactivate () { if (this.servant_ != 0) { DevicePOA.del_servant(this.servant_); this.servant_ = 0; } } static { System.loadLibrary("ossiecfjni"); } private static native long new_servant(); private static native long del_servant(long servant); private static native long new_reference(long servant); private static native void set_delegate (long servant, CF.DeviceOperations delegate); private long servant_; }