org.jboss.kernel.api.dependency
Class MatcherFactory

java.lang.Object
  extended by org.jboss.kernel.api.dependency.MatcherFactory
Direct Known Subclasses:
DefaultMatcherFactory

public abstract class MatcherFactory
extends Object

Matcher factory. Holding the obvious Matcher implementations.

Author:
Ales Justin

Constructor Summary
MatcherFactory()
           
 
Method Summary
abstract  void addMatcherTransfomer(String key, MatcherTransformer transformer)
          Add matcher transfomer.
abstract  Matcher createMatcher(String transformer, Object value)
          Create the Matcher.
static MatcherFactory getInstance()
          Get the matcher factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherFactory

public MatcherFactory()
Method Detail

getInstance

public static final MatcherFactory getInstance()
Get the matcher factory

Returns:
the instance

addMatcherTransfomer

public abstract void addMatcherTransfomer(String key,
                                          MatcherTransformer transformer)
Add matcher transfomer.

Parameters:
key - the key
transformer - the transfomer

createMatcher

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

Parameters:
transformer - the transformer
value - the value to wrap
Returns:
new Matcher instance


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