JHotDraw 6.0b1

org.jhotdraw.contrib.html
Interface ResourceDisposabilityStrategy

All Known Implementing Classes:
ETSLADisposalStrategy

public interface ResourceDisposabilityStrategy

ResourceDisposabilityStrategy defines the interface for resource disposal strategies.
The strategy defines the logic used to determine which and when a resource can be efficiently disposed of. A smarter the strategy leads to few resource regeneration.


Method Summary
 DisposableResourceManager getManager()
          Gets the manager holding the resources for this strategy
 void setManager(DisposableResourceManager manager)
          Sets the manager holding the resources for this strategy
 void startDisposing()
          Activates the strategy which starts disposing of resources as fitted
 void stopDisposing(long millis)
          Deactivates the strategy that stops automatic disposal of resource.
The millis parameters specifies in milliseconds the time to wait for the disposal to stop.
 

Method Detail

setManager

void setManager(DisposableResourceManager manager)
Sets the manager holding the resources for this strategy

Parameters:
manager - The new manager value

getManager

DisposableResourceManager getManager()
Gets the manager holding the resources for this strategy

Returns:
The manager value

startDisposing

void startDisposing()
                    throws ResourceManagerNotSetException
Activates the strategy which starts disposing of resources as fitted

Throws:
ResourceManagerNotSetException - Description of the Exception

stopDisposing

void stopDisposing(long millis)
Deactivates the strategy that stops automatic disposal of resource.
The millis parameters specifies in milliseconds the time to wait for the disposal to stop. After this time the method returns, but the deactivation request remain active.

Parameters:
millis - time to wait for disposal to stop

JHotDraw 6.0b1