org.inxar.hotswap
Class ProxyClassSwapEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.inxar.hotswap.ProxyEvent
|
+--org.inxar.hotswap.ProxyClassSwapEvent
- All Implemented Interfaces:
- Serializable
- public class ProxyClassSwapEvent
- extends ProxyEvent
ProxyEvent
subtype fired by the
ProxyClass
after a successful hotswap.
- Since:
- 0.8.2
- See Also:
- Serialized Form
Constructor Summary |
ProxyClassSwapEvent(ProxyClass source,
Class oldClass,
Class newClass)
Standard constructor originates from the given
ProxyClass source and carries the given new and
old Class instances. |
ProxyClassSwapEvent
public ProxyClassSwapEvent(ProxyClass source,
Class oldClass,
Class newClass)
- Standard constructor originates from the given
ProxyClass
source and carries the given new and
old Class
instances.
getProxyClass
public ProxyClass getProxyClass()
- Returns the associated
ProxyClass
to which the new
and old classes are associated. This method is equivalent to
the expression "(ProxyClass)event.getSource()
".
getNewClass
public Class getNewClass()
- Returns the new
Class
instance.
getOldClass
public Class getOldClass()
- Returns the old
Class
instance.
toString
public String toString()
- Prints a summary of the class swap.
- Overrides:
toString
in class EventObject