public function registerCollectorClass($className)
    {
        /** @var CollectorInterface $collector */
        $collector = new $className($this->context->getProcess(), $this->datasource);
        $this->registerCollector($collector);
    }
public function registerCollectorClass($className)
    {
        /** @var CollectorInterface $collector */
        $collector = new $className($this->context->getProcess(), $this->datasource);
        $this->registerCollector($collector);
    }
public function registerCollectorClass ( $ className ) { /** @var CollectorInterface $collector */ $ collector = new $ className ( $ this -> context -> getProcess ( ) , $ this -> datasource ) ; $ this -> registerCollector ( $ collector ) ; }
Build and register collector class
@param $className
@throws \RuntimeException
Build and register collector class