org.openorb.notify.impl
Class FilterFactoryImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosNotifyFilter.FilterFactoryPOA
          extended by org.openorb.notify.impl.FilterFactoryImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, FilterFactoryOperations

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(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa, org.apache.avalon.framework.logger.Logger logger)
          Default constructor.
 
Method Summary
 Filter create_filter(java.lang.String constraint_grammar)
          The create_filter operation is responsible for creating a new forwarding filter object.
 MappingFilter create_mapping_filter(java.lang.String constraint_grammar, org.omg.CORBA.Any default_value)
          The create_mapping_filter operation is responsible for creating a new mapping filter object.
 
Methods inherited from class org.omg.CosNotifyFilter.FilterFactoryPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFactoryImpl

public FilterFactoryImpl(org.omg.CORBA.ORB orb,
                         org.omg.PortableServer.POA poa,
                         org.apache.avalon.framework.logger.Logger logger)
Default constructor.

Method Detail

create_filter

public Filter create_filter(java.lang.String constraint_grammar)
                     throws InvalidGrammar
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:
InvalidGrammar - The specified grammar is not valid

create_mapping_filter

public MappingFilter create_mapping_filter(java.lang.String constraint_grammar,
                                           org.omg.CORBA.Any default_value)
                                    throws InvalidGrammar
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:
InvalidGrammar - The specified grammar is not valid