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:TermsFactory
Create a new term starting from the TermDefinition created by this factory- Specified by:
createTerm
in 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:TermsFactory
Return the collection of known Mechanisms- Specified by:
getMechanismsCollection
in interfaceTermsFactory
- Returns:
- a Collection of TermDefinition
- See Also:
-
getModifiersCollection
Description copied from interface:TermsFactory
Return the collection of known Modifiers- Specified by:
getModifiersCollection
in interfaceTermsFactory
- Returns:
- a Collection of TermDefinition
- See Also:
-