Skip to content

Instantly share code, notes, and snippets.

@anpieber
Created May 24, 2011 12:02
Show Gist options
  • Select an option

  • Save anpieber/988588 to your computer and use it in GitHub Desktop.

Select an option

Save anpieber/988588 to your computer and use it in GitHub Desktop.
public OverviewPage createPage( PageParameters params )
{
PageFactory<Page>[] pageSources = PageFinder.findPages( m_context, "departmentstore", "about" );
Class pageClass;
if( pageSources.length == 0 )
{
pageClass = null;
}
else
{
pageClass = pageSources[ 0 ].getPageClass();
}
return new OverviewPage( m_aggregator, "Sungei Wang Plaza", pageClass );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment