org.rhq.plugins.jbossas5.util
Class RegularExpressionNameMatcher
java.lang.Object
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
|
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 |
RegularExpressionNameMatcher
public RegularExpressionNameMatcher()
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 expressionregex - 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.