AppserverIo\Appserver\Core\Api\Node\ContextNode::__construct PHP Method

__construct() public method

Initializes the context configuration with the passed values.
public __construct ( string $name = '', string $type = '', string $factory = '', array $params = [], string $webappPath = '' )
$name string The context name
$type string The context class name
$factory string The context factory class name
$params array The context params
$webappPath string The path to the web application
    public function __construct($name = '', $type = '', $factory = '', array $params = array(), $webappPath = '')
    {
        // set name, type and factory
        $this->name = $name;
        $this->type = $type;
        $this->factory = $factory;
        $this->params = $params;
        $this->webappPath = $webappPath;
        // initialize the default directories
        $this->initDefaultDirectories();
    }