org.apache.activemq.console.filter
Class StubQueryFilter
java.lang.Object
org.apache.activemq.console.filter.StubQueryFilter
- All Implemented Interfaces:
- QueryFilter
public class StubQueryFilter
- extends Object
- implements QueryFilter
Constructor Summary |
StubQueryFilter(List data)
Creates a stub query that returns the given collections as the query
result |
Method Summary |
List |
query(List queries)
Returns the provided stub data as a stub query result |
List |
query(String queryStr)
Returns the provided stub data as a stub query result |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StubQueryFilter
public StubQueryFilter(List data)
- Creates a stub query that returns the given collections as the query
result
- Parameters:
data
- - the stub query result
query
public List query(String queryStr)
throws Exception
- Returns the provided stub data as a stub query result
- Specified by:
query
in interface QueryFilter
- Parameters:
queryStr
- - not use
- Returns:
- the stub query result
- Throws:
Exception
query
public List query(List queries)
throws Exception
- Returns the provided stub data as a stub query result
- Specified by:
query
in interface QueryFilter
- Parameters:
queries
- - not use
- Returns:
- the stub query result
- Throws:
Exception
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.