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

Author: Tim Wagner ([email protected])
Author: Johann Zelger ([email protected])
Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode, use trait AppserverIo\Appserver\Core\Api\Node\ClassLoadersNodeTrait, use trait LoggersNodeTrait, use trait ManagersNodeTrait, use trait AppserverIo\Appserver\Core\Api\Node\ProvisionersNodeTrait, use trait ParamsNodeTrait
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$environmentName string The application environment
$factory string The context factory class name.
$name string The context name.
$type string The context type.
$webappPath string The path to the web application.

Méthodes publiques

Méthode Description
__construct ( string $name = '', string $type = '', string $factory = '', array $params = [], string $webappPath = '' ) Initializes the context configuration with the passed values.
getEnvironmentName ( ) : string Returns the environment name of the application
getFactory ( ) : ApplicationFactory Returns the context factory class name.
getName ( ) : mixed Returns the context name.
getType ( ) : string | null Returns the context type.
getWebappPath ( ) : string Returns the path to the web application.
initDefaultDirectories ( ) : void Initialize the default directories.
merge ( ContextNode $contextNode ) : 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.
setEnvironmentName ( string $environmentName ) : void Setter for the environment name
setFactory ( string $factory ) : void Sets the context factory class name.
setName ( string $name ) : void Sets the context name.
setType ( string $type ) : void Sets the context type.
setWebappPath ( string $webappPath ) : void Set's the path to the web application.

Method Details

__construct() public méthode

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

getEnvironmentName() public méthode

Returns the environment name of the application
public getEnvironmentName ( ) : string
Résultat string

getFactory() public méthode

Returns the context factory class name.
public getFactory ( ) : ApplicationFactory
Résultat AppserverIo\Appserver\Application\ApplicationFactory

getName() public méthode

Returns the context name.
public getName ( ) : mixed
Résultat mixed

getType() public méthode

Returns the context type.
public getType ( ) : string | null
Résultat string | null The context type

getWebappPath() public méthode

Returns the path to the web application.
public getWebappPath ( ) : string
Résultat string

initDefaultDirectories() public méthode

Initialize the default directories.
public initDefaultDirectories ( ) : void
Résultat void

merge() public méthode

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 ( ContextNode $contextNode ) : void
$contextNode ContextNode The node with the installation steps we want to merge
Résultat void

setEnvironmentName() public méthode

Setter for the environment name
public setEnvironmentName ( string $environmentName ) : void
$environmentName string The environment name to set
Résultat void

setFactory() public méthode

Sets the context factory class name.
public setFactory ( string $factory ) : void
$factory string The context factory class name
Résultat void

setName() public méthode

Sets the context name.
public setName ( string $name ) : void
$name string The context name
Résultat void

setType() public méthode

Sets the context type.
public setType ( string $type ) : void
$type string The context type
Résultat void

setWebappPath() public méthode

Set's the path to the web application.
public setWebappPath ( string $webappPath ) : void
$webappPath string The path to the web application
Résultat void

Property Details

$environmentName protected_oe property

The application environment
protected string $environmentName
Résultat string

$factory protected_oe property

The context factory class name.
protected string $factory
Résultat string

$name protected_oe property

The context name.
protected string $name
Résultat string

$type protected_oe property

The context type.
protected string $type
Résultat string

$webappPath protected_oe property

The path to the web application.
protected string $webappPath
Résultat string