Interface ContainerSelector

  • All Known Implementing Classes:
    DefaultContainerSelector

    public interface ContainerSelector

    An interface for a component responsible for obtaining a container object.

    During the execution of a builder script it is often necessary to obtain a Composite object in which newly created elements have to be stored. Per default, these elements are directly added to the enclosing container tag.

    In rare cases, however, there is the need to use an alternative Composite implementation as storage. This can be achieved with a special implementation of this interface. An object implementing this interface is contained in the central ComponentBuilderData object. When searching for an enclosing container tag this object is invoked with the found tag as parameter. The implementation can then decide which Composite to use.

    Since:
    1.3
    Version:
    $Id$
    Author:
    Oliver Heger
    • Method Detail

      • getComposite

        Composite getComposite​(Composite tag)
        Returns the Composite to be used for the specified tag implementing the Composite interface.
        Parameters:
        tag - the tag implementing Composite
        Returns:
        the Composite to be used for this tag