PHP Interface AppserverIo\Appserver\Core\Interfaces\ContainerInterface

Afficher le fichier Open project: appserver-io/appserver Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

addApplication() public méthode

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
Résultat void

getAppBase() public méthode

The application base directory for this container
public getAppBase ( ) : string
Résultat string The application base directory for this container

getApplication() public méthode

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
Résultat AppserverIo\Psr\Application\ApplicationInterface The application instance

getApplications() public méthode

Returns the deployed applications.
public getApplications ( ) : AppserverIo\Storage\GenericStackable
Résultat AppserverIo\Storage\GenericStackable The with applications

getContainerNode() public méthode

Returns the containers configuration node.
public getContainerNode ( ) : ContainerNode
Résultat AppserverIo\Appserver\Core\Api\Node\ContainerNode The configuration node

getInitialContext() public méthode

Returns the initial context instance.
public getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface
Résultat AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context instance

getName() public méthode

Returns the unique container name from the configuration.
public getName ( ) : string
Résultat string The unique container name

getNamingDirectory() public méthode

Returns the containers naming directory.
public getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface
Résultat AppserverIo\Psr\Naming\NamingDirectoryInterface The containers naming directory

getRunlevel() public méthode

public getRunlevel ( ) : string
Résultat string

getTmpDir() public méthode

Returns the servers tmp directory, append with the passed directory.
public getTmpDir ( string | null $directoryToAppend = null ) : string
$directoryToAppend string | null The directory to append
Résultat string

hasProvisioningEnabled() public méthode

Returns TRUE if application provisioning for the container is enabled, else FALSE.
public hasProvisioningEnabled ( ) : boolean
Résultat boolean TRUE if application provisioning is enabled, else FALSE

newService() public méthode

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
Résultat AppserverIo\Appserver\Core\Api\ServiceInterface The service instance

stop() public méthode

Stops the container and all servers.
public stop ( ) : void
Résultat void