State Factories

 

The JNDI provides a general framework for transforming objects supplied to Context.bind() and related methods into a format acceptable to a service provider. This framework uses state factories. A state factory transforms an object into another object. The input is the object and optional attributes, supplied to Context.bind() and the output is another object and optional attributes, to be stored in the underlying naming service or directory. A service provider can be preconfigured with a set of state factories. For example, Sun's LDAP service provider has state factories for storing RMI and CORBA objects. The application can configure additional state factories for a service provider to use.

  1. How to write a state factory
  2. service providers
  3. custom state factory

Contents