Class PluginListValue

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CacheMarshallersValue

public class PluginListValue extends ObjectValue
A list of plugins. Defaults and aliases on plugin lists apply only to individual class names.
Author:
Abe White
See Also:
  • Constructor Details

    • PluginListValue

      public PluginListValue(String prop)
  • Method Details

    • getClassNames

      public String[] getClassNames()
      The plugin class names.
    • setClassNames

      public void setClassNames(String[] names)
      The plugin class names.
    • getProperties

      public String[] getProperties()
      The plugin properties.
    • setProperties

      public void setProperties(String[] props)
      The plugin properties.
    • instantiate

      public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal)
      Instantiate the plugins as instances of the given class.
      Overrides:
      instantiate in class ObjectValue
    • getString

      public String getString()
      Override to recognize aliases of the class name without the attached properties string.
      Overrides:
      getString in class Value
    • setString

      public void setString(String str)
      Override to recognize aliases of the plugin name without the attached properties string.
      Overrides:
      setString in class Value
    • getValueType

      public Class<Object[]> getValueType()
      Description copied from class: Value
      Returns the type of the property that this Value represents.
      Overrides:
      getValueType in class ObjectValue
    • objectChanged

      protected void objectChanged()
      Description copied from class: ObjectValue
      Implement this method to synchronize internal data with the new object value.
      Overrides:
      objectChanged in class ObjectValue
    • getInternalString

      protected String getInternalString()
      Description copied from class: Value
      Return the internal string form of this value.
      Overrides:
      getInternalString in class ObjectValue
    • setInternalString

      protected void setInternalString(String str)
      Description copied from class: Value
      Set this value from the given string.
      Overrides:
      setInternalString in class ObjectValue