PHP Class AppserverIo\Appserver\Core\GenericDeployment

Author: Tim Wagner ([email protected])
Author: Bernhard Wick ([email protected])
Author: Hans Höchtl ([email protected])
Inheritance: extends AppserverIo\Appserver\Core\AbstractDeployment
Show file Open project: appserver-io/appserver

Public Methods

Method Description
deploy ( ) : void Initializes the available applications and adds them to the container.

Protected Methods

Method Description
deployApplications ( ) : void Deploys the available applications.
deployDatasources ( ) : void Deploys the available root directory datasources.
getAppBase ( ) : string Returns the container's directory with applications to be deployed.
getDatasourceFiles ( ) : array Returns all datasource files we potentially use
loadContextInstances ( ) : ContextNode[] Loads and return's the context instances for the container.
prepareDatasourceFiles ( array $datasourceFiles ) : array Prepares the datasource files by adding the found context name and the webapp path, if available.

Method Details

deploy() public method

Initializes the available applications and adds them to the container.
See also: AppserverIo\Psr\Deployment\DeploymentInterface::deploy()
public deploy ( ) : void
return void

deployApplications() protected method

Deploys the available applications.
protected deployApplications ( ) : void
return void

deployDatasources() protected method

Deploys the available root directory datasources.
protected deployDatasources ( ) : void
return void

getAppBase() protected method

Returns the container's directory with applications to be deployed.
protected getAppBase ( ) : string
return string The container's application base directory

getDatasourceFiles() protected method

Returns all datasource files we potentially use
protected getDatasourceFiles ( ) : array
return array

loadContextInstances() protected method

Loads and return's the context instances for the container.
protected loadContextInstances ( ) : ContextNode[]
return AppserverIo\Appserver\Core\Api\Node\ContextNode[] The array with the container's context instances

prepareDatasourceFiles() protected method

Prepares the datasource files by adding the found context name and the webapp path, if available.
protected prepareDatasourceFiles ( array $datasourceFiles ) : array
$datasourceFiles array The array with the datasource files to prepare
return array The prepared array