org.rhq.plugins.jbossas5.util
Class RegularExpressionNameMatcher

java.lang.Object
  extended by org.rhq.plugins.jbossas5.util.RegularExpressionNameMatcher
All Implemented Interfaces:
Serializable, org.jboss.deployers.spi.management.NameMatcher<org.jboss.managed.api.ManagedComponent>

public class RegularExpressionNameMatcher
extends Object
implements org.jboss.deployers.spi.management.NameMatcher<org.jboss.managed.api.ManagedComponent>, Serializable

Author:
Ian Springer
See Also:
Serialized Form

Constructor Summary
RegularExpressionNameMatcher()
           
 
Method Summary
 boolean matches(org.jboss.managed.api.ManagedComponent component, String regex)
          Matches a managed component's name against a regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpressionNameMatcher

public RegularExpressionNameMatcher()
Method Detail

matches

public boolean matches(org.jboss.managed.api.ManagedComponent component,
                       String regex)
Matches a managed component's name against a regular expression.

Specified by:
matches in interface org.jboss.deployers.spi.management.NameMatcher<org.jboss.managed.api.ManagedComponent>
Parameters:
component - a managed component whose name will be matched against the given regular expression
regex - a Java regular expression as described by Pattern
Returns:
true if the component's name matches the regular expression, or false if it does not


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.