com.tonbeller.jpivot.core
Class ModelFactory

java.lang.Object
  extended by com.tonbeller.jpivot.core.ModelFactory

public class ModelFactory
extends java.lang.Object

creates a model instance from an xml description. Example

 <?xml version="1.0" encoding="utf-8"?>
 <model id="m1" class="com.tonbeller.jpivot.core.ModelSupport">
   <extension id="f1" class="com.tonbeller.jpivot.core.ExtensionSupport"/>
   <extension id="f2" class="com.tonbeller.jpivot.core.ExtensionSupport"/>
 </model>
 

Author:
av

Nested Class Summary
static class ModelFactory.ModelHolder
          not for external use.
 
Method Summary
static Model instance(java.net.URL url)
          creates a model from an xml configuration file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static Model instance(java.net.URL url)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
creates a model from an xml configuration file

Parameters:
url - url of model configuration file
Returns:
Model
Throws:
org.xml.sax.SAXException
java.io.IOException