org.formaria.annotation
Class PageAnnotationProcessor

java.lang.Object
  extended by org.formaria.annotation.PageAnnotationProcessor
All Implemented Interfaces:
IPageAnnotationProcessor

public class PageAnnotationProcessor
extends java.lang.Object
implements IPageAnnotationProcessor

A processsor for Page annotations

Copyright (c) Formaria Ltd., 2008

License: see license.txt

$Revision: 1.9 $


Constructor Summary
PageAnnotationProcessor()
           
 
Method Summary
 java.lang.String getPage(PageSupport page)
          Get the page file name declaration.
 void setupComponents(PageSupport page)
          Setup the annotated component references.
 void setupComponents(PageSupport page, java.lang.Object source)
          Setup the annotated component references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageAnnotationProcessor

public PageAnnotationProcessor()
Method Detail

getPage

public java.lang.String getPage(PageSupport page)
Get the page file name declaration. This is designed for pages loaded outside of the normal Aria application and aria page lifecycle.

Specified by:
getPage in interface IPageAnnotationProcessor
Returns:
the name of the page file to load

setupComponents

public void setupComponents(PageSupport page)

Setup the annotated component references. Component references can be annotated as follows:

Specified by:
setupComponents in interface IPageAnnotationProcessor
Parameters:
page - the owner page, and the class containing the annotated component references

setupComponents

public void setupComponents(PageSupport page,
                            java.lang.Object source)

Setup the annotated component references. Component references can be annotated as follows:

Parameters:
page - the owner page
source - the class instance containing the annotated component references