PHP Интерфейс AppserverIo\Appserver\Core\Interfaces\ContainerInterface

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
addApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Append the deployed application to the deployment instance and registers it in the system configuration.
getAppBase ( ) : string The application base directory for this container
getApplication ( string $name ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application instance with the passed name.
getApplications ( ) : AppserverIo\Storage\GenericStackable Returns the deployed applications.
getContainerNode ( ) : ContainerNode Returns the containers configuration node.
getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface Returns the initial context instance.
getName ( ) : string Returns the unique container name from the configuration.
getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface Returns the containers naming directory.
getRunlevel ( ) : string
getTmpDir ( string | null $directoryToAppend = null ) : string Returns the servers tmp directory, append with the passed directory.
hasProvisioningEnabled ( ) : boolean Returns TRUE if application provisioning for the container is enabled, else FALSE.
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface Will return a new instance of a given service class
stop ( ) : void Stops the container and all servers.

Описание методов

addApplication() публичный Метод

Append the deployed application to the deployment instance and registers it in the system configuration.
public addApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application to append
Результат void

getAppBase() публичный Метод

The application base directory for this container
public getAppBase ( ) : string
Результат string The application base directory for this container

getApplication() публичный Метод

Returns the application instance with the passed name.
public getApplication ( string $name ) : AppserverIo\Psr\Application\ApplicationInterface
$name string The name of the application to return
Результат AppserverIo\Psr\Application\ApplicationInterface The application instance

getApplications() публичный Метод

Returns the deployed applications.
public getApplications ( ) : AppserverIo\Storage\GenericStackable
Результат AppserverIo\Storage\GenericStackable The with applications

getContainerNode() публичный Метод

Returns the containers configuration node.
public getContainerNode ( ) : ContainerNode
Результат AppserverIo\Appserver\Core\Api\Node\ContainerNode The configuration node

getInitialContext() публичный Метод

Returns the initial context instance.
public getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface
Результат AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance

getName() публичный Метод

Returns the unique container name from the configuration.
public getName ( ) : string
Результат string The unique container name

getNamingDirectory() публичный Метод

Returns the containers naming directory.
public getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface
Результат AppserverIo\Psr\Naming\NamingDirectoryInterface The containers naming directory

getRunlevel() публичный Метод

public getRunlevel ( ) : string
Результат string

getTmpDir() публичный Метод

Returns the servers tmp directory, append with the passed directory.
public getTmpDir ( string | null $directoryToAppend = null ) : string
$directoryToAppend string | null The directory to append
Результат string

hasProvisioningEnabled() публичный Метод

Returns TRUE if application provisioning for the container is enabled, else FALSE.
public hasProvisioningEnabled ( ) : boolean
Результат boolean TRUE if application provisioning is enabled, else FALSE

newService() публичный Метод

Will return a new instance of a given service class
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface
$className string The API service class name to return the instance for
Результат AppserverIo\Appserver\Core\Api\ServiceInterface The service instance

stop() публичный Метод

Stops the container and all servers.
public stop ( ) : void
Результат void