com.sun.jaw.impl.agent.services.light
Class FilterSrv
java.lang.Object
|
+--com.sun.jaw.impl.agent.services.light.FilterSrv
- public class FilterSrv
- extends java.lang.Object
- implements FilterSrvIf
This class provides a simple implementation of a filtering service.
The filtering service makes use of the metadata service registered
within the Common Management Framework.
The implementation can be dynamically loaded into the CMF.
- See Also:
FilterSrvIf
, Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FilterSrv
public FilterSrv()
initCmf
public void initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
throws InstanceAlreadyExistException
- Initialize the Filtering service.
The method will declare the object to the Common Management Framework.
For internal use only.
- Parameters:
agent
- The core management framework to register the service with.name
- Object name.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.- Throws:
- InstanceAlreadyExistException - The m-bean is already
registered in the repository.
eval
public boolean eval(QueryExp query,
java.lang.Object object)
- Assess a filter on a specific object.
If the service can not assess the filter, the filter should
simply be assessed as being false.
- Specified by:
- eval in interface FilterSrvIf
- Parameters:
query
- query to assess.object
- object to assess- Returns:
- true or false depending on the result of evaluation
getFramework
public Framework getFramework()
- Returns the framework associated to the service.
setFramework
public void setFramework(Framework cmf)
- Set the framework for which the service will be performed.