org.apache.james.jspf.parser
Interface TermsFactory

All Known Implementing Classes:
DefaultTermsFactory

public interface TermsFactory

A TermsFactory define the list of known TermDefinition and create new Terms based on its own Definition and a Configuration


Method Summary
 Object createTerm(Class<?> klass, Configuration subres)
          Create a new term starting from the TermDefinition created by this factory
 Collection<TermDefinition> getMechanismsCollection()
          Return the collection of known Mechanisms
 Collection<TermDefinition> getModifiersCollection()
          Return the collection of known Modifiers
 

Method Detail

createTerm

Object createTerm(Class<?> klass,
                  Configuration subres)
                  throws PermErrorException,
                         InstantiationException
Create a new term starting from the TermDefinition created by this factory

Parameters:
klass - the TermDefinition.getTermDef (returned by this factory)
subres - (the configuration)
Returns:
the generated object
Throws:
PermErrorException - if something goes wrong
InstantiationException

getMechanismsCollection

Collection<TermDefinition> getMechanismsCollection()
Return the collection of known Mechanisms

Returns:
a Collection of TermDefinition

getModifiersCollection

Collection<TermDefinition> getModifiersCollection()
Return the collection of known Modifiers

Returns:
a Collection of TermDefinition


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.