gov.llnl.sidl
Class BaseClass

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by gov.llnl.sidl.BaseClass
All Implemented Interfaces:
BaseInterface, java.io.Serializable

public abstract class BaseClass
extends java.lang.RuntimeException
implements BaseInterface

Class BaseClass is the base class for all sidl Java classes in the run-time system. This class provides support for dymaic loading, Java JNI name registration, and reference counting.

See Also:
Serialized Form

Field Summary
protected  long d_ior
           
 
Constructor Summary
protected BaseClass(long ior)
          Construct a BaseClass object and initialize the IOR reference to point to a valid sidl IOR structure.
 
Method Summary
 long _cast_ior(java.lang.String name)
          Cast this object to the specified type and return the IOR pointer.
 BaseInterface _cast2(java.lang.String name)
          Cast this object to the specified sidl name.
 long _get_ior()
          Retrieve a reference to the sidl IOR structure.
 java.lang.String _getURL()
          Returns the URL of this object
 boolean _isLocal()
          Returns true if this object is locally implemented, false otherwise
 boolean _isRemote()
          Returns true if this object is remotely implemented, false otherwise
static void _registerNatives(java.lang.String sidl_symbol)
          Register native functions for the sidl interface or class specified in the argument.
protected  void finalize()
          The finalizer of this method decreases the IOR reference count to this Java object and then calls other finalizers in the chain.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.llnl.sidl.BaseInterface
addRef
 

Field Detail

d_ior

protected long d_ior
Constructor Detail

BaseClass

protected BaseClass(long ior)
Construct a BaseClass object and initialize the IOR reference to point to a valid sidl IOR structure.

Method Detail

_registerNatives

public static void _registerNatives(java.lang.String sidl_symbol)
Register native functions for the sidl interface or class specified in the argument. This method must be called before any native method is called on the Java object representing the sidl symbol.


_get_ior

public final long _get_ior()
Retrieve a reference to the sidl IOR structure.

Specified by:
_get_ior in interface BaseInterface

_cast2

public final BaseInterface _cast2(java.lang.String name)
Cast this object to the specified sidl name. If the cast is invalid, then return null. If the cast is successful, then the returned object can be cast to the proper Java type using a standard Java cast.

Specified by:
_cast2 in interface BaseInterface

_cast_ior

public final long _cast_ior(java.lang.String name)
Cast this object to the specified type and return the IOR pointer.


finalize

protected void finalize()
                 throws java.lang.Throwable
The finalizer of this method decreases the IOR reference count to this Java object and then calls other finalizers in the chain.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

_getURL

public final java.lang.String _getURL()
Returns the URL of this object

Specified by:
_getURL in interface BaseInterface

_isRemote

public final boolean _isRemote()
Returns true if this object is remotely implemented, false otherwise

Specified by:
_isRemote in interface BaseInterface

_isLocal

public final boolean _isLocal()
Returns true if this object is locally implemented, false otherwise

Specified by:
_isLocal in interface BaseInterface