org.apache.james.jspf.impl
Class DefaultTermsFactory

java.lang.Object
  extended by org.apache.james.jspf.impl.DefaultTermsFactory
All Implemented Interfaces:
TermsFactory

public class DefaultTermsFactory
extends Object
implements TermsFactory

The default implementation of the TermsFactory


Constructor Summary
DefaultTermsFactory(Logger log)
           
DefaultTermsFactory(Logger log, WiringService wiringService)
           
 
Method Summary
 Object createTerm(Class<?> termDef, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTermsFactory

public DefaultTermsFactory(Logger log)

DefaultTermsFactory

public DefaultTermsFactory(Logger log,
                           WiringService wiringService)
Method Detail

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 interface TermsFactory
Parameters:
termDef - the TermDefinition.getTermDef (returned by this factory)
subres - (the configuration)
Returns:
the generated object
Throws:
PermErrorException - if something goes wrong
InstantiationException
See Also:
TermsFactory.createTerm(java.lang.Class, org.apache.james.jspf.terms.Configuration)

getMechanismsCollection

public Collection<TermDefinition> getMechanismsCollection()
Description copied from interface: TermsFactory
Return the collection of known Mechanisms

Specified by:
getMechanismsCollection in interface TermsFactory
Returns:
a Collection of TermDefinition
See Also:
TermsFactory.getMechanismsCollection()

getModifiersCollection

public Collection<TermDefinition> getModifiersCollection()
Description copied from interface: TermsFactory
Return the collection of known Modifiers

Specified by:
getModifiersCollection in interface TermsFactory
Returns:
a Collection of TermDefinition
See Also:
TermsFactory.getModifiersCollection()


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