| java.lang.Object org.swingml.event.ExternalEventManager
ExternalEventManager | public class ExternalEventManager (Code) | | This class provides a cache of ExternalEvent implementations.
When an ExternalEvent implementation implements the RetainedInMemory
Interface and returns true from the retainInMemory() method, this class
will create one instance and re-use for the lifetime of the current
document. Once the document is released, the cache of objects is
flushed.
author: Robert J. Morris |
Method Summary | |
public static void | flush() This method forces all cached ExternalEvent instances to
be released. | public static void | flush(SwingMLRenderer aRenderer) This method flushes the InvokableEvent cache associated
with the referenced renderer parameter. | public static InvokableEventHandler | loadInvokableEvent(SwingMLRenderer aRenderer, String aClassName, String aFactoryClass) This method returns an instance of the InvokableEvent implementation
as specified by the className argument. |
documents | protected static Map documents(Code) | | |
globalExternalEvents | protected static Map globalExternalEvents(Code) | | |
flush | public static void flush()(Code) | | This method forces all cached ExternalEvent instances to
be released.
|
flush | public static void flush(SwingMLRenderer aRenderer)(Code) | | This method flushes the InvokableEvent cache associated
with the referenced renderer parameter. This will release
all InvokableEvent instances that were cached using
RetainedInMemory.retainInMemory() == RetainedInMemory.MEM_DOCUMENT.
Globally stored events are left intact. Events associated with
other renderer instances are also left intact.
|
loadInvokableEvent | public static InvokableEventHandler loadInvokableEvent(SwingMLRenderer aRenderer, String aClassName, String aFactoryClass)(Code) | | This method returns an instance of the InvokableEvent implementation
as specified by the className argument. If the referenced class does not
implement the InvokableEvent interface, a value of null is returned.
If the referenced class also implements the RetainedInMemory interface
and returns true for the retainInMemory() method, it will either retrieve
an existing instance from static memory, or create a new instance and
store it in static memory.
Parameters: className - The name of the InvokableEvent implementation to instnatiate. A valid reference to the class described in the className argument. |
|
|