Class DefaultContainerSelector

  • All Implemented Interfaces:
    ContainerSelector

    public class DefaultContainerSelector
    extends Object
    implements ContainerSelector

    A default implementation of the ContainerSelector interface.

    This implementation simply returns the passed in container tag. This is appropriate for most use cases because the components defined in the body of a container tag have to be added to the data managed by this tag. Only in very special circumstances - e.g. if a tag has to be executed in an alternative context - a different behavior is needed.

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

      • DefaultContainerSelector

        public DefaultContainerSelector()
    • Method Detail

      • getComposite

        public Composite getComposite​(Composite tag)
        Returns the Composite to be used for the specified tag implementing the Composite interface. This implementation returns the passed in ContainerTag.
        Specified by:
        getComposite in interface ContainerSelector
        Parameters:
        tag - the tag implementing Composite
        Returns:
        the Composite to be used for this tag