org.wurbelizer
Interface Wurblet

All Known Implementing Classes:
AbstractWurblet

public interface Wurblet

A code generator. Wurblets are executed by a container, the Wurbler.


Method Summary
 Wurbler getContainer()
          Gets the current container.
 void run()
          Invokes the wurblet from within the container.
 void setContainer(Wurbler container)
          Sets the container.
 

Method Detail

setContainer

void setContainer(Wurbler container)
Sets the container. The wurbler attaches the wurblet before invoking the run-method of the wurblet.

Parameters:
container - the wurbler the wurblet is attached to, null to detach

getContainer

Wurbler getContainer()
Gets the current container. Wurblets use this method to access the container's utility methods.

Returns:
the container, null if detached

run

void run()
         throws Exception
Invokes the wurblet from within the container.

Throws:
Exception - if somethin fails.


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de