net.sf.farrago.fennel
Class FennelJavaHandle

java.lang.Object
  extended by net.sf.farrago.fennel.FennelJavaHandle
All Implemented Interfaces:
FarragoAllocation, ClosableAllocation

public class FennelJavaHandle
extends Object
implements FarragoAllocation

FennelJavaHandles are FarragoAllocations which ensure that handles returned by FennelStorage.newObjectHandle get closed under all circumstances.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/FennelJavaHandle.java#13 $
Author:
John V. Sichi

Field Summary
private  long objectHandle
           
private static Logger tracer
           
 
Constructor Summary
FennelJavaHandle(long objectHandle)
           
 
Method Summary
 void closeAllocation()
          Closes this object.
 long getLongHandle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tracer

private static final Logger tracer

objectHandle

private long objectHandle
Constructor Detail

FennelJavaHandle

FennelJavaHandle(long objectHandle)
Method Detail

closeAllocation

public void closeAllocation()
Description copied from interface: ClosableAllocation
Closes this object.

Specified by:
closeAllocation in interface ClosableAllocation

getLongHandle

public long getLongHandle()
Returns:
the native handle as a long