org.springsource.loaded
Class DispatcherBuilder

java.lang.Object
  extended by org.springsource.loaded.DispatcherBuilder

public class DispatcherBuilder
extends java.lang.Object

Builder that creates the dispatcher. The dispatcher is the implementation of the interface extracted for a type which then delegates to the executor. A new dispatcher (and executor) is built for each class reload.

Since:
0.5.0

Constructor Summary
DispatcherBuilder()
           
 
Method Summary
static byte[] createFor(ReloadableType rtype, IncrementalTypeDescriptor newVersionTypeDescriptor, java.lang.String versionstamp)
          Factory method that builds the dispatcher for a specified reloadabletype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherBuilder

public DispatcherBuilder()
Method Detail

createFor

public static byte[] createFor(ReloadableType rtype,
                               IncrementalTypeDescriptor newVersionTypeDescriptor,
                               java.lang.String versionstamp)
Factory method that builds the dispatcher for a specified reloadabletype.

Parameters:
rtype - the reloadable type
newVersionTypeDescriptor - the descriptor of the new version (the executor will be generated according to this)
versionstamp - the suffix that should be appended to the generated dispatcher
Returns:
the bytecode for the new dispatcher