org.apache.tapestry.asset
Class ResourceMatcherImpl

java.lang.Object
  extended by org.apache.tapestry.asset.ResourceMatcherImpl
All Implemented Interfaces:
EventListener, ResourceMatcher, ResetEventListener

public class ResourceMatcherImpl
extends Object
implements ResetEventListener, ResourceMatcher

Implementation of ResourceMatcher.


Field Summary
protected  List _contributions
          Resource match configuration regexp strings.
protected  RegexpMatcher _matcher
          regexp matcher engine.
 
Constructor Summary
ResourceMatcherImpl()
          no args constructor.
 
Method Summary
 boolean containsResource(String path)
          Checks for the existance of a resource pattern that matches the incoming path string.
 void initializeService()
          Invoked by hivemind by default to initialize service.
 void resetEventDidOccur()
          
 void setContributions(List contributions)
          The set of contributed regexp strings that will positively match incoming path strings for this matcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_matcher

protected RegexpMatcher _matcher
regexp matcher engine.


_contributions

protected List _contributions
Resource match configuration regexp strings.

Constructor Detail

ResourceMatcherImpl

public ResourceMatcherImpl()
no args constructor.

Method Detail

initializeService

public void initializeService()
Invoked by hivemind by default to initialize service.


resetEventDidOccur

public void resetEventDidOccur()

Specified by:
resetEventDidOccur in interface ResetEventListener

containsResource

public boolean containsResource(String path)
Checks for the existance of a resource pattern that matches the incoming path string.

Specified by:
containsResource in interface ResourceMatcher
Parameters:
path - The path to a resource
Returns:
True if the path is matched against one of the patterns configured for this matcher, false otherwise.

setContributions

public void setContributions(List contributions)
The set of contributed regexp strings that will positively match incoming path strings for this matcher.

Parameters:
contributions -


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.