本文整理汇总了Java中org.omg.PortableServer.POAPackage.ObjectNotActive类的典型用法代码示例。如果您正苦于以下问题:Java ObjectNotActive类的具体用法?Java ObjectNotActive怎么用?Java ObjectNotActive使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ObjectNotActive类属于org.omg.PortableServer.POAPackage包,在下文中一共展示了ObjectNotActive类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deactivate_object
import org.omg.PortableServer.POAPackage.ObjectNotActive; //导入依赖的package包/类
/**
* <code>deactivate_object</code>
* <b>3.3.8.16</b>
*/
public void deactivate_object(byte[] id)
throws ObjectNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this,
"Calling deactivate_object on poa " + this +
" (id=" + id + ")" ) ;
}
mediator.deactivateObject( id ) ;
} finally {
if (debug) {
ORBUtility.dprint( this,
"Exiting deactivate_object on poa " + this ) ;
}
unlock() ;
}
}
示例2: reference_to_servant
import org.omg.PortableServer.POAPackage.ObjectNotActive; //导入依赖的package包/类
/**
* <code>reference_to_servant</code>
* <b>3.3.8.21</b>
*/
public Servant reference_to_servant(org.omg.CORBA.Object reference)
throws ObjectNotActive, WrongPolicy, WrongAdapter
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this,
"Calling reference_to_servant(reference=" +
reference + ") on poa " + this ) ;
}
if ( state >= STATE_DESTROYING ) {
throw lifecycleWrapper().adapterDestroyed() ;
}
// reference_to_id should throw WrongAdapter
// if the objref was not created by this POA
byte [] id = internalReferenceToId(reference);
return mediator.idToServant( id ) ;
} finally {
unlock() ;
}
}
示例3: id_to_servant
import org.omg.PortableServer.POAPackage.ObjectNotActive; //导入依赖的package包/类
/**
* <code>id_to_servant</code>
* <b>3.3.8.23</b>
*/
public Servant id_to_servant(byte[] id)
throws ObjectNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling id_to_servant(id=" +
id + ") on poa " + this ) ;
}
if( state >= STATE_DESTROYING ) {
throw lifecycleWrapper().adapterDestroyed() ;
}
return mediator.idToServant( id ) ;
} finally {
unlock() ;
}
}
示例4: id_to_reference
import org.omg.PortableServer.POAPackage.ObjectNotActive; //导入依赖的package包/类
/**
* <code>id_to_reference</code>
* <b>3.3.8.24</b>
*/
public org.omg.CORBA.Object id_to_reference(byte[] id)
throws ObjectNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling id_to_reference(id=" +
id + ") on poa " + this ) ;
}
if( state >= STATE_DESTROYING ) {
throw lifecycleWrapper().adapterDestroyed() ;
}
Servant s = mediator.idToServant( id ) ;
String repId = s._all_interfaces( this, id )[0] ;
return makeObject(repId, id );
} finally {
unlock() ;
}
}