Méthode | Description | |
---|---|---|
__construct ( ) | Initialize the internal members. | |
addClassLoader ( AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface $classLoader, AppserverIo\Appserver\Core\Api\Node\ClassLoaderNodeInterface $configuration ) : void | Injects an additional class loader. | |
addLogger ( Psr\Log\LoggerInterface $logger, AppserverIo\Appserver\Core\Api\Node\LoggerNodeInterface $configuration ) : void | Injects the logger instance and the configuration. | |
addManager ( AppserverIo\Psr\Application\ManagerInterface $manager, AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface $configuration ) : void | Injects manager instance and the configuration. | |
addProvisioner ( AppserverIo\Psr\Application\ProvisionerInterface $provisioner, AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface $configuration ) : void | Injects the provisioner instance and the configuration. | |
connect ( ) : void | Has been automatically invoked by the container after the application instance has been created. | |
getAppBase ( ) : string | Returns the absolute path to the applications base directory. | |
getBaseDirectory ( string $directoryToAppend = null ) : string | Returns the absolute path to the servers document root directory | |
getCacheDir ( ) : string | Returns the absolute path to the applications cache directory. | |
getClassLoader ( string $identifier ) : AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface | Return the requested class loader instance | |
getClassLoaders ( ) : AppserverIo\Storage\GenericStackable | Return the class loaders. | |
getContainer ( ) : AppserverIo\Appserver\Core\Interfaces\ContainerInterface | Return's the container instance the application is bound to. | |
getContainerName ( ) : string | Returns the name of the container the application is bound to. | |
getContainerRunlevel ( ) : string | Returns the runlevel of the container the application is bound to. | |
getEnvironmentName ( ) : string | Returns the applications environment name | |
getGroup ( ) : string | Returns the groupname the application should be executed with. | |
getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface | Returns the initial context instance. | |
getLogger ( string $name = LoggerUtils::SYSTEM ) : Psr\Log\LoggerInterface | null | Return the requested logger instance, by default the application's system logger. | |
getLoggers ( ) : AppserverIo\Storage\GenericStackable | Returns the logger instances. | |
getManager ( string $identifier ) : AppserverIo\Psr\Application\ManagerInterface | Return the requested manager instance. | |
getManagers ( ) : AppserverIo\Storage\GenericStackable | Returns the manager instances. | |
getName ( ) : string | Returns the application name (that has to be the class namespace, e.g. example) | |
getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | Returns the applications naming directory. | |
getProvisioner ( string $identifier ) : AppserverIo\Psr\Application\ProvisionerInterface | Return the requested provisioner instance. | |
getProvisioners ( ) : AppserverIo\Storage\GenericStackable | Returns the provisioner instances. | |
getSerial ( ) : string | Return's the application's UUID. | |
getSessionDir ( ) : string | Returns the absolute path to the applications session directory. | |
getTmpDir ( ) : string | Returns the absolute path to the applications temporary directory. | |
getUmask ( ) : string | Returns the umask the application should create files/directories with. | |
getUniqueName ( ) : string | Return's the unique application name that is the container + application name separated with a slash, e. g. combined-appserver/example. | |
getUser ( ) : string | Returns the username the application should be executed with. | |
getWebappPath ( ) : string | Returns the absolute path to the web application base directory. | |
initializeManagers ( ) : void | Registers all managers in the application. | |
injectClassLoaders ( AppserverIo\Storage\GenericStackable $classLoaders ) : void | Injects the storage for the class loaders. | |
injectContainerName ( string $containerName ) : void | Injects the name of the container the application is bound to. | |
injectContainerRunlevel ( string $containerRunlevel ) : void | Injects the runlevel of the container the application is bound to. | |
injectEnvironmentName ( string $environmentName ) : void | Inject the environment name | |
injectInitialContext ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext ) : void | The initial context instance. | |
injectLoggers ( AppserverIo\Storage\GenericStackable $loggers ) : void | Injects the storage for the loggers. | |
injectManagers ( AppserverIo\Storage\GenericStackable $managers ) : void | Injects the storage for the managers. | |
injectName ( string $name ) : void | Injects the application name. | |
injectNamingDirectory ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory ) : void | Injects the naming directory. | |
injectProvisioners ( AppserverIo\Storage\GenericStackable $provisioners ) : void | Injects the storage for the provisioners. | |
isConnected ( ) : boolean | TRUE if the application has been connected, else FALSE. | |
newService ( string $className ) : object | (non-PHPdoc) | |
prepare ( AppserverIo\Appserver\Core\Interfaces\ContainerInterface $container, |
Prepares the application with the specific data found in the passed context node. | |
provision ( ) : void | Provisions the initialized application. | |
registerClassLoaders ( ) : void | Registers all class loaders injected to the applications in the opposite order as they have been injected. | |
run ( ) : void | This is the threads main() method that initializes the application with the autoloader and instantiates all the necessary manager instances. | |
search ( string $name, array $args = [] ) : mixed | Queries the naming directory for the requested name and returns the value or invokes the bound callback. | |
shutdown ( ) : void | Shutdown function to log unexpected errors. | |
stop ( ) : void | Stops the application instance. | |
unload ( ) : void | Cleanup the naming directory from the application entries. |
public addClassLoader ( AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface $classLoader, AppserverIo\Appserver\Core\Api\Node\ClassLoaderNodeInterface $configuration ) : void | ||
$classLoader | AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface | A class loader to put on the class loader stack |
$configuration | AppserverIo\Appserver\Core\Api\Node\ClassLoaderNodeInterface | The class loader's configuration |
Résultat | void |
public addLogger ( Psr\Log\LoggerInterface $logger, AppserverIo\Appserver\Core\Api\Node\LoggerNodeInterface $configuration ) : void | ||
$logger | Psr\Log\LoggerInterface | A provisioner instance |
$configuration | AppserverIo\Appserver\Core\Api\Node\LoggerNodeInterface | The provisioner configuration |
Résultat | void |
public addManager ( AppserverIo\Psr\Application\ManagerInterface $manager, AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface $configuration ) : void | ||
$manager | AppserverIo\Psr\Application\ManagerInterface | A manager instance |
$configuration | AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface | The managers configuration |
Résultat | void |
public addProvisioner ( AppserverIo\Psr\Application\ProvisionerInterface $provisioner, AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface $configuration ) : void | ||
$provisioner | AppserverIo\Psr\Application\ProvisionerInterface | A provisioner instance |
$configuration | AppserverIo\Appserver\Core\Api\Node\ProvisionerNodeInterface | The provisioner configuration |
Résultat | void |
public getAppBase ( ) : string | ||
Résultat | string | The app base directory |
public getBaseDirectory ( string $directoryToAppend = null ) : string | ||
$directoryToAppend | string | The directory to append to the base directory |
Résultat | string | The base directory with appended dir if given |
public getCacheDir ( ) : string | ||
Résultat | string | The app cache directory |
public getClassLoader ( string $identifier ) : AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface | ||
$identifier | string | The unique identifier of the requested class loader |
Résultat | AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface | The class loader instance |
public getClassLoaders ( ) : AppserverIo\Storage\GenericStackable | ||
Résultat | AppserverIo\Storage\GenericStackable | The class loader instances |
public getContainer ( ) : AppserverIo\Appserver\Core\Interfaces\ContainerInterface | ||
Résultat | AppserverIo\Appserver\Core\Interfaces\ContainerInterface | The container instance |
public getContainerName ( ) : string | ||
Résultat | string | The container's name |
public getContainerRunlevel ( ) : string | ||
Résultat | string | The container's runlevel |
public getEnvironmentName ( ) : string | ||
Résultat | string | The applications environment name |
public getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface | ||
Résultat | AppserverIo\Appserver\Application\Interfaces\ContextInterface | The initial Context |
public getLoggers ( ) : AppserverIo\Storage\GenericStackable | ||
Résultat | AppserverIo\Storage\GenericStackable | The logger instances |
public getManager ( string $identifier ) : AppserverIo\Psr\Application\ManagerInterface | ||
$identifier | string | The unique identifier of the requested manager |
Résultat | AppserverIo\Psr\Application\ManagerInterface | The manager instance |
public getManagers ( ) : AppserverIo\Storage\GenericStackable | ||
Résultat | AppserverIo\Storage\GenericStackable | The manager instances |
public getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | ||
Résultat | AppserverIo\Psr\Naming\NamingDirectoryInterface | The applications naming directory interface |
public getProvisioner ( string $identifier ) : AppserverIo\Psr\Application\ProvisionerInterface | ||
$identifier | string | The unique identifier of the requested provisioner |
Résultat | AppserverIo\Psr\Application\ProvisionerInterface | The provisioner instance |
public getProvisioners ( ) : AppserverIo\Storage\GenericStackable | ||
Résultat | AppserverIo\Storage\GenericStackable | The provisioner instances |
public getSessionDir ( ) : string | ||
Résultat | string | The app session directory |
public getUniqueName ( ) : string | ||
Résultat | string |
public getWebappPath ( ) : string | ||
Résultat | string | The path to the webapps folder |
public initializeManagers ( ) : void | ||
Résultat | void |
public injectClassLoaders ( AppserverIo\Storage\GenericStackable $classLoaders ) : void | ||
$classLoaders | AppserverIo\Storage\GenericStackable | The storage for the class loaders |
Résultat | void |
public injectContainerName ( string $containerName ) : void | ||
$containerName | string | The container's name |
Résultat | void |
public injectContainerRunlevel ( string $containerRunlevel ) : void | ||
$containerRunlevel | string | The container's runlevel |
Résultat | void |
public injectEnvironmentName ( string $environmentName ) : void | ||
$environmentName | string | The environment name to inject |
Résultat | void |
public injectInitialContext ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext ) : void | ||
$initialContext | AppserverIo\Appserver\Application\Interfaces\ContextInterface | The initial context instance |
Résultat | void |
public injectLoggers ( AppserverIo\Storage\GenericStackable $loggers ) : void | ||
$loggers | AppserverIo\Storage\GenericStackable | The storage for the loggers |
Résultat | void |
public injectManagers ( AppserverIo\Storage\GenericStackable $managers ) : void | ||
$managers | AppserverIo\Storage\GenericStackable | The storage for the managers |
Résultat | void |
public injectName ( string $name ) : void | ||
$name | string | The application name |
Résultat | void |
public injectNamingDirectory ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory ) : void | ||
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | The naming directory instance |
Résultat | void |
public injectProvisioners ( AppserverIo\Storage\GenericStackable $provisioners ) : void | ||
$provisioners | AppserverIo\Storage\GenericStackable | The storage for the provisioners |
Résultat | void |
public isConnected ( ) : boolean | ||
Résultat | boolean | Returns TRUE if the application has been connected, else FALSE |
public newService ( string $className ) : object | ||
$className | string | The API service class name to return the instance for |
Résultat | object | The service instance |
public prepare ( AppserverIo\Appserver\Core\Interfaces\ContainerInterface $container, |
||
$container | AppserverIo\Appserver\Core\Interfaces\ContainerInterface | The container instance bind the application to |
$context | The application configuration | |
Résultat | void |
public registerClassLoaders ( ) : void | ||
Résultat | void |