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 java.lang.Object
implements TermsFactory

The default implementation of the TermsFactory


Constructor Summary
DefaultTermsFactory(Logger log)
           
DefaultTermsFactory(Logger log, WiringService wiringService)
           
 
Method Summary
 java.lang.Object createTerm(java.lang.Class termDef, 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
 
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 java.lang.Object createTerm(java.lang.Class termDef,
                                   Configuration subres)
                            throws PermErrorException,
                                   java.lang.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
java.lang.InstantiationException
See Also:
TermsFactory.createTerm(java.lang.Class, org.apache.james.jspf.terms.Configuration)

getMechanismsCollection

public java.util.Collection 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 java.util.Collection 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-2009 The Apache Software Foundation. All Rights Reserved.