org.jacorb.notification.filter.bsh
Class BSHFilter

java.lang.Object
  extended by org.jacorb.notification.filter.AbstractFilter
      extended by org.jacorb.notification.filter.bsh.BSHFilter
All Implemented Interfaces:
AbstractFilterMBean, GCDisposable, JMXManageable, NotifyingDisposable, IServantLifecyle, FilterOperations, org.picocontainer.Disposable

public class BSHFilter
extends AbstractFilter

This is an example of an custom Filter plugin. to make this grammar available to the FilterFactory you have to add an entry with the prefix jacorb.notification.filter.plugin to jacorb.properties. The entry must have the following form: jacorb.notification.filter.plugin.GRAMMAR_NAME=CLASSNAME
to make this grammar available one had to add the following entry to jacorb.properties: jacorb.notification.filter.plugin.BSH=org.jacorb.notification.filter.bsh.BSHFilter

Author:
Alphonse Bendt

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jacorb.notification.interfaces.JMXManageable
JMXManageable.JMXCallback
 
Field Summary
static String CONSTRAINT_GRAMMAR
           
 
Fields inherited from class org.jacorb.notification.filter.AbstractFilter
constraints_, CONSTRAINTS_EMPTY, constraintsLock_, messageFactory_, NO_CONSTRAINTS_MATCH, wildcardMap_
 
Constructor Summary
BSHFilter(Configuration config, EvaluationContextFactory evaluationContextFactory, MessageFactory messageFactory, POA poa)
          as instances of this class will be created using picocontainer the class can specify its dependencies in the constructor.
 
Method Summary
 String constraint_grammar()
           
 FilterConstraint newFilterConstraint(ConstraintExp constraintExp)
          create a new FilterConstraint based on the provided ConstraintExp
 
Methods inherited from class org.jacorb.notification.filter.AbstractFilter
activate, add_constraints, attach_callback, attemptDispose, deactivate, destroy, detach_callback, dispose, get_all_constraints, get_callbacks, get_constraints, getCreationDate, getIterator, getJMXNotificationTypes, getJMXObjectName, getLastUsage, getMatchCount, getMatchStructuredCount, getMatchTypedCount, getPOA, listContraints, match_internal, match_structured_internal, match_structured, match_typed_internal, match_typed, match, modify_constraints, newConstraintId, newServant, registerDisposable, remove_all_constraints, setJMXCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTRAINT_GRAMMAR

public static final String CONSTRAINT_GRAMMAR
See Also:
Constant Field Values
Constructor Detail

BSHFilter

public BSHFilter(Configuration config,
                 EvaluationContextFactory evaluationContextFactory,
                 MessageFactory messageFactory,
                 POA poa)
          throws ConfigurationException
as instances of this class will be created using picocontainer the class can specify its dependencies in the constructor. picocontainer will fill in the appropiate values (as long as they are registered).

Throws:
ConfigurationException
Method Detail

constraint_grammar

public String constraint_grammar()

newFilterConstraint

public FilterConstraint newFilterConstraint(ConstraintExp constraintExp)
Description copied from class: AbstractFilter
create a new FilterConstraint based on the provided ConstraintExp

Specified by:
newFilterConstraint in class AbstractFilter


Copyright © 2015 JacORB. All rights reserved.