Class DefaultReplacerFactory

  • All Implemented Interfaces:
    ReplacerFactory

    public class DefaultReplacerFactory
    extends java.lang.Object
    implements ReplacerFactory
    DOCUMENT ME!
    Version:
    1.0
    Author:
    Andreas
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultReplacerFactory()
      Creates new DefaultReplacerFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Replacer createReplacer​(java.lang.String name)
      Looks up and instanciates a replacer.
      java.util.Set<java.lang.String> getReplacers()
      Get names of all available replacers.
      boolean isReplacer​(java.lang.String name)
      Checks if a replacer exists.
      void putReplacer​(java.lang.String name, java.lang.Class<?> repClass)
      Registers a replacer for the given name without arguments.
      void putReplacer​(java.lang.String name, java.lang.Class<?> repClass, java.lang.Object arg)
      Registers a replacer for the given name and arguments.
      void putReplacer​(java.lang.String name, java.lang.Class<?> repClass, java.lang.Object[] args)
      Registers a replacer for the given name and arguments.
      void setArguments​(java.lang.String name, java.lang.Object arg)
      Sets arguments for the given replacer.
      void setArguments​(java.lang.String name, java.lang.Object[] args)
      Sets arguments for the given replacer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultReplacerFactory

        public DefaultReplacerFactory()
        Creates new DefaultReplacerFactory
    • Method Detail

      • putReplacer

        public void putReplacer​(java.lang.String name,
                                java.lang.Class<?> repClass,
                                java.lang.Object[] args)
        Registers a replacer for the given name and arguments.
      • putReplacer

        public void putReplacer​(java.lang.String name,
                                java.lang.Class<?> repClass,
                                java.lang.Object arg)
        Registers a replacer for the given name and arguments.
      • putReplacer

        public void putReplacer​(java.lang.String name,
                                java.lang.Class<?> repClass)
        Registers a replacer for the given name without arguments.
      • setArguments

        public void setArguments​(java.lang.String name,
                                 java.lang.Object arg)
        Sets arguments for the given replacer.
      • setArguments

        public void setArguments​(java.lang.String name,
                                 java.lang.Object[] args)
        Sets arguments for the given replacer.