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.
 
Method Summary
 Class getNewClass()
          Returns the new Class instance.
 Class getOldClass()
          Returns the old Class instance.
 ProxyClass getProxyClass()
          Returns the associated ProxyClass to which the new and old classes are associated.
 String toString()
          Prints a summary of the class swap.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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