|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.sandbox.SandboxServiceMultiEvent
Abstract service event base class for service events in wt.sandbox which
are purely multi-object in nature. Such events intentionally do not
provide any ability to be converted to single-object events. This common
base class ensures a common implementation of such behavior.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private boolean |
singleObjectEvent
Whether this event is a single-object event. |
private Object |
singleObjectEventTarget
The target object for a single-object event. |
private static boolean |
throwInSingleObjectEventGetEventTarget
Whether we'll throw an UnsupportedOperationException in getEventTarget() for any single object event. |
private static boolean |
throwInToSingleObjectEvents
Whether we'll throw an UnsupportedOperationException in toSingleObjectEvents(). |
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
SandboxServiceMultiEvent(String eventType,
Object target)
Pass through constructor. |
Method Summary | |
private SandboxServiceMultiEvent |
cloneNoExceptions()
Internal utility to clone that wraps any CloneNotSupportedException thrown in WTRuntimeExceptions. |
Object |
getEventTarget()
Get event target. |
KeyedEvent |
toMultiObjectEvent()
Return this event object, i.e. |
KeyedEvent[] |
toSingleObjectEvents()
This operation is not supported for this class and its subclasses. |
Methods inherited from class wt.events.KeyedEvent |
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean throwInToSingleObjectEvents
private static boolean throwInSingleObjectEventGetEventTarget
private boolean singleObjectEvent
private Object singleObjectEventTarget
Constructor Detail |
public SandboxServiceMultiEvent(String eventType, Object target)
eventType
- The type of the eventtarget
- target object of eventMethod Detail |
public final KeyedEvent[] toSingleObjectEvents() throws WTException
Given this, this operation's behavior is not defined. For instance,
it may throw an UnsupportedOperationException. On the other
hand, it may just produce warning messages to System.err and
throw an UnsupportedOperationsException on attempts to call getEventTarget().
Supported API: false
toSingleObjectEvents
in class KeyedEvent
WTException
public final KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public final Object getEventTarget()
getEventTarget
in class KeyedEvent
private SandboxServiceMultiEvent cloneNoExceptions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |