Referencer

Helper class that allows you to set and unset references to components.

Description

The Referencer class allows you to set and unset references to components.

Static methods

setReferences

Sets references to multiple components.

To set references, components must implement the IReferenceable interface. If they don’t, the call to this method has no effect.

public static void setReferences(IReferences references, Iterable components) throws ReferenceException, ConfigException

  • references: IReferences - references to be set.
  • component: Iterable - list of components to set the references to.

    setReferencesForOne

    Sets references to specific component.

    To set references, components must implement the IReferenceable interface. If they don’t, the call to this method has no effect.

    public static void setReferencesForOne(IReferences references, Object component) throws ReferenceException, ConfigException

    • references: IReferences - references to be set.
    • component: Object - component to set references to.

    unsetReferences

    Unsets references in multiple components. To unset references, components must implement the IUnreferenceable interface. If they don’t, the call to this method has no effect.

    public static void unsetReferences(Iterable components)

    • components: Iterable - list of components, whose references must be cleared.

      unsetReferencesForOne

      Unsets references in a specific component.

      To unset references, components must implement the IUnreferenceable interface. If they don’t, the call to this method has no effect.

      public static void unsetReferencesForOne(Object component)

      • component: Object - component to unset references.

      See also