Package dap4.dap4lib

Class DSPRegistry


  • public class DSPRegistry
    extends Object
    • Constructor Detail

      • DSPRegistry

        public DSPRegistry()
    • Method Detail

      • setLoader

        public static void setLoader​(ClassLoader ldr)
      • register

        public void register​(Class<? extends D4DSP> klass,
                             boolean last)
        Register a DSP class.
        Parameters:
        klass - Class that implements DSP.
        last - true=>insert at the end of the list; otherwise front
        Throws:
        IllegalAccessException - if class is not accessible.
        InstantiationException - if class doesnt have a no-arg constructor.
        ClassCastException - if class doesnt implement DSP interface.
      • registered

        public boolean registered​(Class<? extends D4DSP> klass)
        See if a specific DSP is registered
        Parameters:
        klass - Class for which to search
      • unregister

        public void unregister​(Class<? extends D4DSP> klass)
        Unregister dsp.
        Parameters:
        klass - Class for which to search