下面列出了怎么用org.omg.CORBA.INITIALIZE的API类实例代码及写法,或者点击链接到github查看源代码。
public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE jtsInitError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( JTS_INIT_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.jtsInitError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE persistentServerportNotSet( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( PERSISTENT_SERVERPORT_NOT_SET, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.persistentServerportNotSet",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE orbdError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( ORBD_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.orbdError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE bootstrapError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( BOOTSTRAP_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.bootstrapError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE cannotReadRepositoryDb( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( CANNOT_READ_REPOSITORY_DB, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ACTIVATION.cannotReadRepositoryDb",
parameters, ActivationSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE cannotAddInitialNaming( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( CANNOT_ADD_INITIAL_NAMING, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ACTIVATION.cannotAddInitialNaming",
parameters, ActivationSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE priorityRangeRestrict( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( PRIORITY_RANGE_RESTRICT, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.priorityRangeRestrict",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE priorityRangeRestrict( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( PRIORITY_RANGE_RESTRICT, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.priorityRangeRestrict",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
/**
* Constructs a new TransientNameService, and creates an initial
* NamingContext, whose object
* reference can be obtained by the initialNamingContext method.
* @param orb The ORB object
* @exception org.omg.CORBA.INITIALIZE Thrown if
* the TransientNameService cannot initialize.
*/
public TransientNameService(com.sun.corba.se.spi.orb.ORB orb )
throws org.omg.CORBA.INITIALIZE
{
// Default constructor uses "NameService" as the key for the Root Naming
// Context. If default constructor is used then INS's object key for
// Transient Name Service is "NameService"
initialize( orb, "NameService" );
}
/**
* Constructs a new TransientNameService, and creates an initial
* NamingContext, whose object
* reference can be obtained by the initialNamingContext method.
* @param orb The ORB object
* @exception org.omg.CORBA.INITIALIZE Thrown if
* the TransientNameService cannot initialize.
*/
public TransientNameService(com.sun.corba.se.spi.orb.ORB orb )
throws org.omg.CORBA.INITIALIZE
{
// Default constructor uses "NameService" as the key for the Root Naming
// Context. If default constructor is used then INS's object key for
// Transient Name Service is "NameService"
initialize( orb, "NameService" );
}
/**
* Constructs a new TransientNameService, and creates an initial
* NamingContext, whose object
* reference can be obtained by the initialNamingContext method.
* @param orb The ORB object
* @exception org.omg.CORBA.INITIALIZE Thrown if
* the TransientNameService cannot initialize.
*/
public TransientNameService(com.sun.corba.se.spi.orb.ORB orb )
throws org.omg.CORBA.INITIALIZE
{
// Default constructor uses "NameService" as the key for the Root Naming
// Context. If default constructor is used then INS's object key for
// Transient Name Service is "NameService"
initialize( orb, "NameService" );
}
public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNcSys",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE jtsInitError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( JTS_INIT_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.jtsInitError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE persistentServeridNotSet( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( PERSISTENT_SERVERID_NOT_SET, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.persistentServeridNotSet",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE persistentServerportNotSet( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( PERSISTENT_SERVERPORT_NOT_SET, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.persistentServerportNotSet",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE orbdError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( ORBD_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.orbdError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE bootstrapError( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( BOOTSTRAP_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.bootstrapError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE cannotReadRepositoryDb( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( CANNOT_READ_REPOSITORY_DB, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ACTIVATION.cannotReadRepositoryDb",
parameters, ActivationSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE cannotAddInitialNaming( CompletionStatus cs, Throwable t ) {
INITIALIZE exc = new INITIALIZE( CANNOT_ADD_INITIAL_NAMING, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ACTIVATION.cannotAddInitialNaming",
parameters, ActivationSystemException.class, exc ) ;
}
return exc ;
}
public INITIALIZE priorityRangeRestrict( ) {
return priorityRangeRestrict( CompletionStatus.COMPLETED_NO, null ) ;
}
public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs ) {
return transNsCannotCreateInitialNcSys( cs, null ) ;
}
public INITIALIZE transNsCannotCreateInitialNcSys( ) {
return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, null ) ;
}
public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs ) {
return transNsCannotCreateInitialNc( cs, null ) ;
}
public INITIALIZE transNsCannotCreateInitialNc( Throwable t ) {
return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, t ) ;
}
public INITIALIZE transNsCannotCreateInitialNc( ) {
return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, null ) ;
}
public INITIALIZE jtsInitError( CompletionStatus cs ) {
return jtsInitError( cs, null ) ;
}
public INITIALIZE jtsInitError( Throwable t ) {
return jtsInitError( CompletionStatus.COMPLETED_NO, t ) ;
}
public INITIALIZE jtsInitError( ) {
return jtsInitError( CompletionStatus.COMPLETED_NO, null ) ;
}