org.jboss.kernel.plugins.dependency
Class DefaultMatcherFactory

java.lang.Object
  extended by org.jboss.kernel.api.dependency.MatcherFactory
      extended by org.jboss.kernel.plugins.dependency.DefaultMatcherFactory
All Implemented Interfaces:
MatcherTransformer

public class DefaultMatcherFactory
extends MatcherFactory
implements MatcherTransformer

Default Matcher factory.

Author:
Ales Justin

Field Summary
protected  org.jboss.logging.Logger log
          The log
 
Constructor Summary
DefaultMatcherFactory()
           
 
Method Summary
 void addMatcherTransfomer(String key, MatcherTransformer transformer)
          Add matcher transfomer.
 Matcher createMatcher(String transformer, Object value)
          Create the Matcher.
 Matcher transform(Object value)
          Transform value param to Matcher instance.
 
Methods inherited from class org.jboss.kernel.api.dependency.MatcherFactory
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
The log

Constructor Detail

DefaultMatcherFactory

public DefaultMatcherFactory()
Method Detail

addMatcherTransfomer

public void addMatcherTransfomer(String key,
                                 MatcherTransformer transformer)
Description copied from class: MatcherFactory
Add matcher transfomer.

Specified by:
addMatcherTransfomer in class MatcherFactory
Parameters:
key - the key
transformer - the transfomer

createMatcher

public Matcher createMatcher(String transformer,
                             Object value)
Create the Matcher.

Specified by:
createMatcher in class MatcherFactory
Parameters:
transformer - the transformer
value - the value to wrap
Returns:
new Matcher instance

transform

public Matcher transform(Object value)
Description copied from interface: MatcherTransformer
Transform value param to Matcher instance.

Specified by:
transform in interface MatcherTransformer
Parameters:
value - the value
Returns:
Matcher instance


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.