org.barracudamvc.core.event
Interface ApplicationAssembler

All Known Implementing Classes:
DefaultApplicationAssembler

public interface ApplicationAssembler

This interface defines an ApplicationAssembler. This whole concept is still pretty experimental. Basically, the idea is that whatever implements this interface gets passed a reference to the EventGateway, an XML File name, and a SAX parser class...given this information, the implementor is free to assemble an event hierarchy, register listeners, etc.

The only implementation right now is found in org.barracudamvc. experimental.assembler.DefaultApplicationAssembler (and this should truly be viewed as experimental)

Look at the source in ApplicationGateway to see how the assembler is invoked when the servlet is intialized.


Method Summary
 void assemble(EventGateway irootGateway, javax.servlet.ServletConfig iservletConfig, String iassemblySourceFile)
          Assemble the system, given the root EventGateway and the XML assembly decriptor name.
 void assemble(EventGateway irootGateway, javax.servlet.ServletConfig iservletConfig, String iassemblySourceFile, String iparserClass)
          Assemble the system, given the root EventGateway, an XML assembly decriptor name, and a specific SAX parser class.
 

Method Detail

assemble

void assemble(EventGateway irootGateway,
              javax.servlet.ServletConfig iservletConfig,
              String iassemblySourceFile)
Assemble the system, given the root EventGateway and the XML assembly decriptor name. The default parser will be used.

Parameters:
irootGateway - the root EventGateway
iservletConfig - the ServletConfig object
iassemblySourceFile - the XML assembly descriptor

assemble

void assemble(EventGateway irootGateway,
              javax.servlet.ServletConfig iservletConfig,
              String iassemblySourceFile,
              String iparserClass)
Assemble the system, given the root EventGateway, an XML assembly decriptor name, and a specific SAX parser class.

Parameters:
irootGateway - the root EventGateway
iservletConfig - the ServletConfig object
iassemblySourceFile - the XML assembly descriptor
iparserClass - the SAX parser class


Copyright © 2006 BarracudaMVC.org All Rights Reserved.