org.apache.yoko.orb.OCI
Interface ConFactoryOperations

All Known Subinterfaces:
ConFactory

public interface ConFactoryOperations

A factory for Connector objects.

See Also:
Connector, ConFactoryRegistry

Method Summary
 Connector[] create_connectors(IOR ref, Policy[] policies)
          Returns a sequence of Connectors for a given IOR and a list of policies.
 String describe_profile(TaggedProfile prof)
          Returns a description of the given tagged profile.
 boolean equivalent(IOR ior1, IOR ior2)
          Checks whether two IORs are equivalent, taking only profiles into account matching this Connector factory.
 ConFactoryInfo get_info()
          Returns the information object associated with the Connector factory.
 int hash(IOR ref, int maximum)
          Calculates a hash value for an IOR.
 String id()
          The plugin id.
 int tag()
          The profile id tag.
 

Method Detail

id

String id()
The plugin id.


tag

int tag()
The profile id tag.


describe_profile

String describe_profile(TaggedProfile prof)
Returns a description of the given tagged profile.

Parameters:
prof - The tagged profile.
Returns:
The profile description.

create_connectors

Connector[] create_connectors(IOR ref,
                              Policy[] policies)
Returns a sequence of Connectors for a given IOR and a list of policies. The sequence includes one or more Connectors for each IOR profile that matches this Connector factory and satisfies the list of policies.

Parameters:
ref - The IOR for which Connectors are returned.
policies - The policies that must be satisfied.
Returns:
The sequence of Connectors.

equivalent

boolean equivalent(IOR ior1,
                   IOR ior2)
Checks whether two IORs are equivalent, taking only profiles into account matching this Connector factory.

Parameters:
ior1 - The first IOR to check for equivalence.
ior2 - The second IOR to check for equivalence.
Returns:
TRUE if the IORs are equivalent, FALSE otherwise.

hash

int hash(IOR ref,
         int maximum)
Calculates a hash value for an IOR.

Parameters:
ref - The IOR to calculate a hash value for.
maximum - The maximum value of the hash value.
Returns:
The hash value.

get_info

ConFactoryInfo get_info()
Returns the information object associated with the Connector factory.

Returns:
The Connector factory information object.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.