PHP 인터페이스 AppserverIo\Appserver\Core\Interfaces\ContainerInterface

파일 보기 프로젝트 열기: appserver-io/appserver 0 사용 예제들

공개 메소드들

메소드 설명
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