Package 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
Modifier and TypeMethodDescriptioncreateTerm
(Class<?> klass, Configuration subres) Create a new term starting from the TermDefinition created by this factoryReturn the collection of known MechanismsReturn the collection of known Modifiers
-
Method Details
-
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 wrongInstantiationException
-
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
-