aicas logoJamaica 3.2 release 62

java.lang.ref
Class JamaicaReferences

java.lang.Object
  extended by java.lang.ref.JamaicaReferences

public final class JamaicaReferences
extends Object

JamaicaReferences is a class that manages weak, soft and phantom references and the execution of the finalizers within JamaicaVM.

This class is not accessible by application code, all public methods are instance methods, there is no public constructor and there is no other means for the user application to obtain a reference to an instance of this class.


Method Summary
 Object fd2obj(Object fd)
          get object from a finalize descriptor
 boolean finalizeObject1(Object finalizeDescriptor)
          Finalize object given by finalizeDescriptor.
 void finalizeObject2(Object finalizeDescriptor)
          Perform second half of object finalization after finalize() method was executed.
 void removeRef(Reference thisRef)
          Remove reference from reference tree it has been added to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fd2obj

public Object fd2obj(Object fd)
get object from a finalize descriptor

Parameters:
fd - a finalize descriptor
Returns:
the corresponding Java object.

removeRef

public void removeRef(Reference thisRef)
Remove reference from reference tree it has been added to.

Parameters:
thisRef - the reference tree

finalizeObject1

public boolean finalizeObject1(Object finalizeDescriptor)
Finalize object given by finalizeDescriptor. Result is true if finalizer method must be executed. If so, finalizeObject2 must be called after termination of the finalizer.

Parameters:
finalizeDescriptor - the finalize descriptor for the object to be finalized.
Returns:
true if we need to call the finalizer and finalizeObject2.

finalizeObject2

public void finalizeObject2(Object finalizeDescriptor)
Perform second half of object finalization after finalize() method was executed.

Parameters:
finalizeDescriptor - the finalize descriptor for the object to be finalized.

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.