org.jmage.filterchain
Class SimpleFilterChainFactory

java.lang.Object
  extended by org.jmage.filterchain.SimpleFilterChainFactory
All Implemented Interfaces:
Configurable, FilterChainFactory

public class SimpleFilterChainFactory
extends java.lang.Object
implements FilterChainFactory

Convenience factory creates a FilterChain from a single ImageFilter class


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
SimpleFilterChainFactory()
          Default Constructur
 
Method Summary
 void configure(ApplicationContext context)
          Configure SimpleFilterChainFactory
 FilterChain createFrom(java.net.URI name)
          Creates a simple FilterChain with one filter for a given filter class name
 FilterChain createFrom(java.net.URI name, java.util.Properties filterProperties)
          Creates a simple FilterChain with one filter for a given filter class name and additional filter properties
protected  java.lang.String mapURItoClass(java.net.URI uri)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

SimpleFilterChainFactory

public SimpleFilterChainFactory()
Default Constructur

Method Detail

configure

public void configure(ApplicationContext context)
Configure SimpleFilterChainFactory

Specified by:
configure in interface Configurable
Parameters:
context - the ApplicationContext

createFrom

public FilterChain createFrom(java.net.URI name)
                       throws FilterChainException
Creates a simple FilterChain with one filter for a given filter class name

Specified by:
createFrom in interface FilterChainFactory
Parameters:
name - the unique name
Returns:
the filter filterchain
Throws:
FilterChainException

createFrom

public FilterChain createFrom(java.net.URI name,
                              java.util.Properties filterProperties)
                       throws FilterChainException
Creates a simple FilterChain with one filter for a given filter class name and additional filter properties

Specified by:
createFrom in interface FilterChainFactory
Parameters:
name - the unique name
filterProperties - the additional filter properties
Returns:
the FilterChain
Throws:
FilterChainException

mapURItoClass

protected java.lang.String mapURItoClass(java.net.URI uri)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2008 Sourceforge. All Rights Reserved.