org.objectweb.carol.util.csiv2

Class SasPolicyFactory

Implemented Interfaces:
PolicyFactory

public class SasPolicyFactory
extends org.omg.CORBA.LocalObject
implements PolicyFactory

Make csiv2 policy objects

Author:
Florent Benoit

Constructor Summary

SasPolicyFactory()
Default constructor

Method Summary

Policy
create_policy(int type, Any value)
Returns an instance of the appropriate interface derived from CORBA.Policy whose value corresponds to the specified any.

Constructor Details

SasPolicyFactory

public SasPolicyFactory()
Default constructor

Method Details

create_policy

public Policy create_policy(int type,
                            Any value)
            throws PolicyError
Returns an instance of the appropriate interface derived from CORBA.Policy whose value corresponds to the specified any.

Parameters:
type - An int specifying the type of policy being created.
value - An any containing data with which to construct the CORBA.Policy.

Returns:
A CORBA.Policy object of the specified type and value.