Interface Scope

All Known Implementing Classes:
GenericScope.Branch, GenericScope.Tree

public interface Scope

The scope describes a set of nodes, the scope implementation should be stateless and should be shared between many threads.

A scope is responsible for providing a Scope.Visitor object that is used to determine which nodes are loaded when a loading operation occurs. Visitors are not thread safe, as a consequence the get() operation should create a new visitor instance on each call, unless the visitor itself is stateless by nature.

Version:
$Revision$
Author:
Julien Viet
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A scope visitor responsible for determining the loading of a node.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Scope
    The entire hierarchy, to use with care.
    static final Scope
    A node and its chidren.
    static final Scope
    A node, its chidren and grandchildren.
    static final Scope
    The node without its children.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
  • Field Details

    • SINGLE

      static final Scope SINGLE
      The node without its children.
    • CHILDREN

      static final Scope CHILDREN
      A node and its chidren.
    • GRANDCHILDREN

      static final Scope GRANDCHILDREN
      A node, its chidren and grandchildren.
    • ALL

      static final Scope ALL
      The entire hierarchy, to use with care.
  • Method Details