PHP Class AppserverIo\Appserver\Provisioning\AbstractProvisioner

Inheritance: implements AppserverIo\Psr\Application\ProvisionerInterface
Mostrar archivo Open project: appserver-io/appserver

Protected Properties

Property Type Description
$initialContext AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance.
$provisionerNode AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface The provisioner node configuration data.
$service AppserverIo\Appserver\Core\Api\ServiceInterface The provisioning service instance.

Public Methods

Method Description
__construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface $provisionerNode ) Contructor to initialize the provisioner instance with the initial context and the provision node configuration data.
getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface Returns the inital context instance.
getProvisionerNode ( ) : AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface Returns the provisioner node configuration data.
getService ( ) : AppserverIo\Appserver\Core\Api\ProvisioningService Returns the service instance to use.
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface (non-PHPdoc)

Method Details

__construct() public method

Contructor to initialize the provisioner instance with the initial context and the provision node configuration data.
public __construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface $provisionerNode )
$initialContext AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance
$provisionerNode AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface The provisioner node configuration data

getInitialContext() public method

Returns the inital context instance.
public getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface
return AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance

getProvisionerNode() public method

Returns the provisioner node configuration data.
public getProvisionerNode ( ) : AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface
return AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface The provisioner node configuration data

getService() public method

Returns the service instance to use.
public getService ( ) : AppserverIo\Appserver\Core\Api\ProvisioningService
return AppserverIo\Appserver\Core\Api\ProvisioningService $service The service to use

newService() public method

(non-PHPdoc)
See also: AppserverIo\Appserver\Core\InitialContext::newService()
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface
$className string The API service class name to return the instance for
return AppserverIo\Appserver\Core\Api\ServiceInterface The service instance

Property Details

$initialContext protected_oe property

The initial context instance.
protected ContextInterface,AppserverIo\Appserver\Application\Interfaces $initialContext
return AppserverIo\Appserver\Application\Interfaces\ContextInterface

$provisionerNode protected_oe property

The provisioner node configuration data.
protected ProvisionerNodeInterface,AppserverIo\Appserver\Core\Api\Node $provisionerNode
return AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface

$service protected_oe property

The provisioning service instance.
protected ServiceInterface,AppserverIo\Appserver\Core\Api $service
return AppserverIo\Appserver\Core\Api\ServiceInterface