org.jclientpages.page
Class ClientPageFactory

java.lang.Object
  extended by org.jclientpages.page.ClientPageFactory

public class ClientPageFactory
extends java.lang.Object

This class is responsible of JClientPage compile and instantiation

Author:
Luigi Dell'Aquila (luigi.dellaquila--at--gmail.com)

Constructor Summary
ClientPageFactory()
           
 
Method Summary
static ClientPage getInstance(java.lang.String imports, java.lang.String body)
          create the new client page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientPageFactory

public ClientPageFactory()
Method Detail

getInstance

public static ClientPage getInstance(java.lang.String imports,
                                     java.lang.String body)
                              throws java.lang.RuntimeException
create the new client page

Parameters:
imports - the imports declared in the page
body - the JClientPage body
Returns:
the new JClientPage
Throws:
java.lang.RuntimeException - if something goes wrong :-P... in general if there are syntax errors in the page