Class DefineAdderWithPrefixBean

All Implemented Interfaces:
DefineAdder

public abstract class DefineAdderWithPrefixBean
extends DefineAdderBean
Like DefineAdderBean but adds a prefix to the name of beans when adding.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • addWithName

      protected void addWithName​(Define define, String name, AnchorBean<?> item) throws DefineAddException
      Add an item to define with a name being added.
      Parameters:
      define - the define.
      name - the name of the bean.
      item - the item to add.
      Throws:
      DefineAddException - if a {#link GroupingRoot} cannot be found in the class-hierarchy.
    • resolveName

      protected String resolveName​(String name)
      Prepends a prefix before the name.
      Parameters:
      name - the name to prepend.
      Returns:
      the name with a prefix prepended.
    • getPrefix

      public String getPrefix()
      A prefix that is placed before the name of every bean created.
    • setPrefix

      public void setPrefix​(String prefix)
      A prefix that is placed before the name of every bean created.