org.gvsig.tools.dispose.impl
Class DefaultDisposableInfo

java.lang.Object
  extended by org.gvsig.tools.dispose.impl.DefaultDisposableInfo
All Implemented Interfaces:
DisposableInfo

public class DefaultDisposableInfo
extends Object
implements DisposableInfo

Default DisposableInfo implementation.

Author:
2009- César Ordiñana - gvSIG team

Constructor Summary
DefaultDisposableInfo(Disposable disposable, StackTraceElement[] stackTrace)
          Creates a new DefaultDisposableInfo with the Disposable and the stack trace of the moment when the disposable was bound to the DisposableManager.
 
Method Summary
 void decReferencesCount()
           
 StackTraceElement[] getBindDisposableStackTrace()
          Returns the stack trace of the moment when the Disposable was bound.
 Disposable getDisposable()
          Returns the Disposable whose info belongs to.
 int getReferencesCount()
          Returns the count of references
 void incReferencesCount()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDisposableInfo

public DefaultDisposableInfo(Disposable disposable,
                             StackTraceElement[] stackTrace)
Creates a new DefaultDisposableInfo with the Disposable and the stack trace of the moment when the disposable was bound to the DisposableManager.

Parameters:
disposable - to info about
stackTrace - stack trace of the moment when the Disposable was bound
Method Detail

getBindDisposableStackTrace

public StackTraceElement[] getBindDisposableStackTrace()
Description copied from interface: DisposableInfo
Returns the stack trace of the moment when the Disposable was bound.

Specified by:
getBindDisposableStackTrace in interface DisposableInfo
Returns:
the stack trace of the disposable since it was bound

getDisposable

public Disposable getDisposable()
Description copied from interface: DisposableInfo
Returns the Disposable whose info belongs to.

Specified by:
getDisposable in interface DisposableInfo
Returns:
the disposable

toString

public String toString()
Overrides:
toString in class Object

incReferencesCount

public void incReferencesCount()

decReferencesCount

public void decReferencesCount()

getReferencesCount

public int getReferencesCount()
Description copied from interface: DisposableInfo
Returns the count of references

Specified by:
getReferencesCount in interface DisposableInfo
Returns:
the count of references


Copyright © 2004-2011 gvSIG. All Rights Reserved.