Class ItemManager

  • All Implemented Interfaces:
    ItemStateListener

    public class ItemManager
    extends Object
    implements ItemStateListener
    There's one ItemManager instance per Session instance. It is the factory for Node and Property instances.

    The ItemManager's responsibilities are:

    • providing access to Item instances by ItemId whereas Node and Item are only providing relative access.
    • returning the instance of an existing Node or Property, given its absolute path.
    • creating the per-session instance of a Node or Property that doesn't exist yet and needs to be created first.
    • guaranteeing that there aren't multiple instances representing the same Node or Property associated with the same Session instance.
    • maintaining a cache of the item instances it created.
    • respecting access rights of associated Session in all methods.

    If the parent Session is an XASession, there is one ItemManager instance per started global transaction.