FileDocCategorySizeDatePackage
InvocationPolicyFactory.javaAPI DocGlassfish v2 API3349Fri May 04 22:36:42 BST 2007com.sun.jts.pi

InvocationPolicyFactory

public class InvocationPolicyFactory extends org.omg.CORBA.LocalObject implements org.omg.PortableInterceptor.PolicyFactory
This is the PolicyFactory to create an InvocationPolicy object.
author
Ram Jeyaraman 11/11/2000
version
1.0

Fields Summary
Constructors Summary
public InvocationPolicyFactory()

Methods Summary
public org.omg.CORBA.Policycreate_policy(int type, org.omg.CORBA.Any value)


        if (type != INVOCATION_POLICY_TYPE.value) {
            throw new PolicyError("Invalid InvocationPolicyType", (short) 0);
        }

        short policyValue = InvocationPolicyValueHelper.extract(value);

        switch (policyValue) {
        case SHARED.value :
        case UNSHARED.value :
        case EITHER.value :
            break;
        default :
            throw new PolicyError("Invalid InvocationPolicyValue", (short) 1);
        }

        return new InvocationPolicyImpl(policyValue);