|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.contrib.html.StandardDisposableResourceManager
public class StandardDisposableResourceManager
StandardDisposableResourceManager implements disposable resource management
using a client supplied strategy.
Constructor Summary | |
---|---|
StandardDisposableResourceManager(ResourceDisposabilityStrategy newStrategy)
Constructor for the StandardDisposableResourceManager object |
Method Summary | |
---|---|
java.util.Iterator |
getResources()
Gets an iterator on the managed resources |
ResourceDisposabilityStrategy |
getStrategy()
Gets the strategy attribute of the StandardDisposableResourceManager object |
boolean |
managesResource(DisposableResourceHolder resource)
Description of the Method |
void |
registerResource(DisposableResourceHolder resource)
Registers a resource to be automatically disposed of |
void |
setStrategy(ResourceDisposabilityStrategy newStrategy)
Sets the strategy attribute of the StandardDisposableResourceManager object |
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. |
void |
unregisterResource(DisposableResourceHolder resource)
Unregisters a resource so it is not automatically GCed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardDisposableResourceManager(ResourceDisposabilityStrategy newStrategy)
strategy
- Description of the ParameterMethod Detail |
---|
public void registerResource(DisposableResourceHolder resource)
registerResource
in interface DisposableResourceManager
resource
- the resourcepublic void unregisterResource(DisposableResourceHolder resource)
unregisterResource
in interface DisposableResourceManager
resource
- the resourcepublic java.util.Iterator getResources()
getResources
in interface DisposableResourceManager
public boolean managesResource(DisposableResourceHolder resource)
managesResource
in interface DisposableResourceManager
resource
- the resource
public ResourceDisposabilityStrategy getStrategy()
public void setStrategy(ResourceDisposabilityStrategy newStrategy)
newStrategy
- The new strategy valuepublic void startDisposing() throws ResourceManagerNotSetException
startDisposing
in interface DisposableResourceManager
ResourceManagerNotSetException
- Description of the Exceptionpublic void stopDisposing(long millis)
stopDisposing
in interface DisposableResourceManager
millis
- time to wait for disposal to stop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |