org.openorb.notify.impl

Class FilterFactoryImpl

public class FilterFactoryImpl extends FilterFactoryPOA

The FilterFactory interface defines operations for creating filter objects. This filter objects will be persistent if the connection reliability is set to persistent.

Version: $Id: FilterFactoryImpl.java,v 1.14 2004/12/10 15:49:24 lkuehne Exp $

Author: Olivier Modica

Constructor Summary
FilterFactoryImpl(ORB orb, POA poa, Logger logger)
Default constructor.
Method Summary
Filtercreate_filter(String constraint_grammar)
The create_filter operation is responsible for creating a new forwarding filter object.
MappingFiltercreate_mapping_filter(String constraint_grammar, Any default_value)
The create_mapping_filter operation is responsible for creating a new mapping filter object.

Constructor Detail

FilterFactoryImpl

public FilterFactoryImpl(ORB orb, POA poa, Logger logger)
Default constructor.

Method Detail

create_filter

public Filter create_filter(String constraint_grammar)
The create_filter operation is responsible for creating a new forwarding filter object. It takes as input a string parameter which identifies the grammar in which constraints associated with this filter will have meaning. If the client invoking this operation supplies as input the name of a grammar that is not supported by any forwarding filter implementation this factory is capable of creating, the InvalidGrammar exception is raised. Otherwise, the operation returns the reference to an object supporting the Filter interface, which can subsequently be configured to support constraints in the appropriate grammar.

Parameters: constraint_grammar Language of filter's constraints

Returns: THe new filter

Throws: org.omg.CosNotifyFilter.InvalidGrammar The specified grammar is not valid

create_mapping_filter

public MappingFilter create_mapping_filter(String constraint_grammar, Any default_value)
The create_mapping_filter operation is responsible for creating a new mapping filter object. It takes as input a string parameter which identifies the grammar in which constraints associated with this filter will have meaning, and an Any which will be set as the default_value of the newly created mapping filter. If the client invoking this operation supplies as input the name of a grammar that is not supported by any mapping filter implementation this factory is capable of creating, the InvalidGrammar exception is raised. Otherwise, the operation returns the reference to an object supporting the MappingFilter interface, which can subsequently be configured to support constraints in the appropriate grammar, along with their associated mapping values.

Parameters: constraint_grammar Language of filter's constraints

Returns: The new Mapping Filter

Throws: org.omg.CosNotifyFilter.InvalidGrammar The specified grammar is not valid