org.viewaframework.annotation.processor
Class ControllersProcessor

java.lang.Object
  extended by org.viewaframework.annotation.processor.ControllersProcessor

public class ControllersProcessor
extends Object

This class holds all needed processors to handle the annotations attached to a ViewContainer object

Since:
1.0.2
Author:
Mario Garcia

Constructor Summary
ControllersProcessor(ViewContainer view, ApplicationContext ctx)
           
 
Method Summary
 Map<String,List<ViewController<? extends EventListener,? extends EventObject>>> process()
          This method processes @Controllers annotations of the given ViewController in order to add all the contained @Controller annotations to that view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllersProcessor

public ControllersProcessor(ViewContainer view,
                            ApplicationContext ctx)
Parameters:
view -
ctx -
Method Detail

process

public Map<String,List<ViewController<? extends EventListener,? extends EventObject>>> process()
                                                                                        throws Exception
This method processes @Controllers annotations of the given ViewController in order to add all the contained @Controller annotations to that view.

Parameters:
view - The view annotated with the @Controllers annotation
Returns:
a Map of pattern-list of controllers
Throws:
Exception - If any of the controllers can't be processed


Copyright © 2010. All Rights Reserved.