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
 java.lang.Object createTerm(java.lang.Class klass, Configuration subres)
          Create a new term starting from the TermDefinition created by this factory
 java.util.Collection getMechanismsCollection()
          Return the collection of known Mechanisms
 java.util.Collection getModifiersCollection()
          Return the collection of known Modifiers
 

Method Detail

createTerm

java.lang.Object createTerm(java.lang.Class klass,
                            Configuration subres)
                            throws PermErrorException,
                                   java.lang.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
java.lang.InstantiationException

getMechanismsCollection

java.util.Collection getMechanismsCollection()
Return the collection of known Mechanisms

Returns:
a Collection of TermDefinition

getModifiersCollection

java.util.Collection getModifiersCollection()
Return the collection of known Modifiers

Returns:
a Collection of TermDefinition


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