PHP Class AppserverIo\Appserver\Core\Api\Node\ProvisionNode

Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode
Show file Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$datasource DatasourceNode The node containing datasource information.
$installation InstallationNode The node containing installation information.

Public Methods

Method Description
getDatasource ( ) : DatasourceNode Returns the node containing datasource information.
getInstallation ( ) : InstallationNode Returns the node containing installation information.
injectDatasource ( DatasourceNode $datasource ) : void Injects the datasource node.
merge ( ProvisionNode $provisionNode ) : void This method merges the installation steps of the passed provisioning node into the steps of this instance. If a installation node with the same type already exists, the one of this instance will be overwritten.
reprovision ( string $provisionFile ) : void This method reprovisions the provision node with the data from the file passed as parameter.

Method Details

getDatasource() public method

Returns the node containing datasource information.
public getDatasource ( ) : DatasourceNode
return DatasourceNode The node containing datasource information

getInstallation() public method

Returns the node containing installation information.
public getInstallation ( ) : InstallationNode
return InstallationNode The node containing installation information

injectDatasource() public method

Injects the datasource node.
public injectDatasource ( DatasourceNode $datasource ) : void
$datasource DatasourceNode The datasource node to inject
return void

merge() public method

This method merges the installation steps of the passed provisioning node into the steps of this instance. If a installation node with the same type already exists, the one of this instance will be overwritten.
public merge ( ProvisionNode $provisionNode ) : void
$provisionNode ProvisionNode The node with the installation steps we want to merge
return void

reprovision() public method

Before reinitializing the provisioning node, the file will be reinterpreted with be invoking the PHP parser again, what again gives you the possibility to replace content by calling the PHP methods of this class.
public reprovision ( string $provisionFile ) : void
$provisionFile string The absolute pathname of the file to reprovision from
return void

Property Details

$datasource protected property

The node containing datasource information.
protected DatasourceNode,AppserverIo\Appserver\Core\Api\Node $datasource
return DatasourceNode

$installation protected property

The node containing installation information.
protected InstallationNode,AppserverIo\Appserver\Core\Api\Node $installation
return InstallationNode