StateFactory
Interface StateFactory
- All Known Subinterfaces:
- DirStateFactory
public interface StateFactory
This interface represents a factory for obtaining the state of an object for binding.
The JNDI framework allows for object implementations to be loaded in dynamically via object factories. For example, when looking up a printer bound in the name space, if the print service binds printer names to Reference
s, the printer Reference
could be used to create a printer object, so that the caller of lookup can directly operate on the printer object after the lookup.
An ObjectFactory
is responsible for creating objects of a specific type. In the above example, you may have a PrinterObjectFactory
for creating Printer
objects.
For the reve