[Yanel-dev] PROTOTYPE: Using a custom matcher inside resource configuration map

Michael Wechner michael.wechner at wyona.com
Mon Aug 29 14:56:14 CEST 2011


Hi

I have added a prototype interface

src/core/java/org/wyona/yanel/core/MatcherV1.java

which allows using a custom resource config matcher, e.g.

<matcher class="foo.bar.yanel.impl.MobileHomepageMatcher" 
rcpath="/homepage-mobile.html.yanel-rc"/>

(instead the "pattern" attribute)

It can be used when using ResourceTypeMatcherV1ImplV2 instead 
ResourceTypeDefaultMatcher inside 
src/core/java/org/wyona/yanel/core/ResourceManager.java

It seems to work fine, but I am currently testing it some more.

Thanks

Michael


More information about the Yanel-development mailing list