net.sf.parser4j.kernelgenerator.service.grammarnode
Class GrammarTreeSpringFactory

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.service.grammarnode.GrammarTreeSpringFactory

public final class GrammarTreeSpringFactory
extends java.lang.Object

grammar factory from spring xml file:
must define two beans:

Author:
luc peuvrier

Method Summary
 GrammarTreeFactoryData createGrammarFromClassPackage(java.lang.Class<?> clazz, java.lang.String resourceName)
           
 GrammarTreeFactoryData createGrammarFromClassPath(java.lang.String path)
           
 GrammarTreeFactoryData createGrammarFromFileSystem(java.lang.String path)
           
static GrammarTreeSpringFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GrammarTreeSpringFactory getInstance()

createGrammarFromFileSystem

public GrammarTreeFactoryData createGrammarFromFileSystem(java.lang.String path)
                                                   throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException

createGrammarFromClassPath

public GrammarTreeFactoryData createGrammarFromClassPath(java.lang.String path)
                                                  throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException

createGrammarFromClassPackage

public GrammarTreeFactoryData createGrammarFromClassPackage(java.lang.Class<?> clazz,
                                                            java.lang.String resourceName)
                                                     throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.