Class GlobalListItem

java.lang.Object
org.frankframework.util.GlobalListItem
All Implemented Interfaces:
INamedObject

public class GlobalListItem extends Object implements INamedObject
Base class for items of global lists. The list itself is contained as a static field. New items are registerd using registerItem(). Typical use: SapSystem.getSystem(name).<method to execute>
Author:
Gerrit van Brakel
  • Field Details

    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • GlobalListItem

      public GlobalListItem()
  • Method Details

    • configure

      protected void configure()
      configure() will be called once for each item registered, except for the aliasses.
    • getItem

      protected static GlobalListItem getItem(String itemName)
      Get an item by Name. Descender classes should implement a similar method, that returns an object of its own type.
    • getRegisteredNames

      public static Iterator<String> getRegisteredNames()
      Get the system names as an Iterator, alphabetically sorted
      Returns:
      Iterator with the realm names, alphabetically sorted
    • getRegisteredNamesAsList

      public static List<String> getRegisteredNamesAsList()
      Gets a list with system names.
    • registerItem

      public void registerItem(Object dummyParent)
      Register an item in the list
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setName

      public void setName(String string)
      The name under which the item can be retrieved.
      Specified by:
      setName in interface INamedObject
    • getName

      public String getName()
      Specified by:
      getName in interface INamedObject
    • setAliasFor

      public void setAliasFor(String string)
      If this attribute is set, the item is only an alias for another item.
    • getAliasFor

      public String getAliasFor()