AppserverIo\Appserver\Core\AbstractExtractor::__construct PHP Method

__construct() public method

Constructor to initialize the extractor instance with the initial context and the extractor node configuration data.
public __construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface $extractorNode )
$initialContext AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance
$extractorNode AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface The extractor node configuration data
    public function __construct(ContextInterface $initialContext, ExtractorNodeInterface $extractorNode)
    {
        // add initial context and extractor node configuration data
        $this->initialContext = $initialContext;
        $this->extractorNode = $extractorNode;
        // init API service to use
        $this->service = $this->newService('AppserverIo\\Appserver\\Core\\Api\\ContainerService');
    }