org.apache.cocoon.matching.modular
Class CachingWildcardMatcher

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.matching.AbstractPreparableMatcher
              |
              +--org.apache.cocoon.matching.AbstractWildcardMatcher
                    |
                    +--org.apache.cocoon.matching.modular.CachingWildcardMatcher
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, Matcher, PreparableMatcher, org.apache.avalon.framework.thread.ThreadSafe

public class CachingWildcardMatcher
extends AbstractWildcardMatcher
implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.activity.Disposable

Matches against a wildcard expression. Needs an input module to obtain value to match against.

Global and local configuration

input-moduleName of the input module used to obtain the value
parameter-nameName of the parameter to match * against

Version:
CVS $Id: CachingWildcardMatcher.java,v 1.2 2002/05/28 13:42:10 haul Exp $
Author:
Christian Haul, Sylvain Wallez, Vadim Gritsenko

Field Summary
protected  org.apache.avalon.framework.component.ComponentManager manager
          The component manager instance
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
CachingWildcardMatcher()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Set the current ComponentManager instance used by this Composable.
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
 void dispose()
           
protected  java.lang.String getMatchString(java.util.Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
          Get the string to test against the wildcard expression.
 void initialize()
           
 
Methods inherited from class org.apache.cocoon.matching.AbstractWildcardMatcher
preparedMatch, preparePattern
 
Methods inherited from class org.apache.cocoon.matching.AbstractPreparableMatcher
match
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected org.apache.avalon.framework.component.ComponentManager manager
The component manager instance
Constructor Detail

CachingWildcardMatcher

public CachingWildcardMatcher()
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Set the current ComponentManager instance used by this Composable.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

initialize

public void initialize()
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable

dispose

public void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable

getMatchString

protected java.lang.String getMatchString(java.util.Map objectModel,
                                          org.apache.avalon.framework.parameters.Parameters parameters)
Description copied from class: AbstractWildcardMatcher
Get the string to test against the wildcard expression. To be defined by concrete subclasses.
Overrides:
getMatchString in class AbstractWildcardMatcher


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.