Package org.apache.james.jspf.impl
Class DefaultTermsFactory
java.lang.Object
org.apache.james.jspf.impl.DefaultTermsFactory
- All Implemented Interfaces:
TermsFactory
The default implementation of the TermsFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTerm(Class<?> termDef, Configuration subres) Create a new term starting from the TermDefinition created by this factoryReturn the collection of known MechanismsReturn the collection of known Modifiers
-
Constructor Details
-
DefaultTermsFactory
public DefaultTermsFactory() -
DefaultTermsFactory
-
-
Method Details
-
createTerm
public Object createTerm(Class<?> termDef, Configuration subres) throws PermErrorException, InstantiationException Description copied from interface:TermsFactoryCreate a new term starting from the TermDefinition created by this factory- Specified by:
createTermin interfaceTermsFactory- Parameters:
termDef- the TermDefinition.getTermDef (returned by this factory)subres- (the configuration)- Returns:
- the generated object
- Throws:
PermErrorException- if something goes wrongInstantiationException- See Also:
-
getMechanismsCollection
Description copied from interface:TermsFactoryReturn the collection of known Mechanisms- Specified by:
getMechanismsCollectionin interfaceTermsFactory- Returns:
- a Collection of TermDefinition
- See Also:
-
getModifiersCollection
Description copied from interface:TermsFactoryReturn the collection of known Modifiers- Specified by:
getModifiersCollectionin interfaceTermsFactory- Returns:
- a Collection of TermDefinition
- See Also:
-