Property | Type | Description | |
---|---|---|---|
$classLoader | AppserverIo\Appserver\Core\SplClassLoader | The server's classLoading instance | |
$storage | AppserverIo\Storage\StorageInterface | The storage instance | |
$systemLogger | Psr\Log\LoggerInterface | The server's system logger instance. |
Method | Description | |
---|---|---|
__construct ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) | Initializes the context with the connection to the storage backend. | |
getAttribute ( string $key ) : mixed | Returns the value with the passed key from the initial context. | |
getLogger ( string $loggerName ) : Psr\Log\LoggerInterface | null | Gets the logger by given name | |
getLoggers ( ) : array | Return | |
getStorage ( ) : AppserverIo\Storage\StorageInterface | Returns the storage instance. | |
getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | Returns the system configuration. | |
getSystemLogger ( ) : Psr\Log\LoggerInterface | Returns the system logger instance. | |
newInstance ( string $className, array $args = [] ) : object | Returns a new instance of the passed class name. | |
newReflectionClass ( string $className ) : ReflectionClass | Returns a reflection class instance for the passed class name. | |
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | Returns a new instance of the passed API service. | |
removeAttribute ( string $key ) : void | Removes the attribute with the passed key from the initial context. | |
setAttribute ( string $key, mixed $value ) : void | Stores the passed key value pair in the initial context. | |
setLoggers ( array $loggers ) : void | Set's logger array | |
setStorage ( AppserverIo\Storage\StorageInterface $storage ) : AppserverIo\Storage\StorageInterface | Returns the storage instance. | |
setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : void | Adds the system configuration to the initial context. | |
setSystemLogger ( Psr\Log\LoggerInterface $systemLogger ) : void | Set's the system logger instance. |
public __construct ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) | ||
$systemConfiguration | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
public getAttribute ( string $key ) : mixed | ||
$key | string | The key of the value to return |
return | mixed | The value stored in the initial context |
public getStorage ( ) : AppserverIo\Storage\StorageInterface | ||
return | AppserverIo\Storage\StorageInterface | The storage instance |
public getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | ||
return | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
public getSystemLogger ( ) : Psr\Log\LoggerInterface | ||
return | Psr\Log\LoggerInterface |
public newReflectionClass ( string $className ) : ReflectionClass | ||
$className | string | The class name to return the reflection instance for |
return | ReflectionClass | The reflection instance |
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | ||
$className | string | The API service class name to return the instance for |
return | AppserverIo\Appserver\Core\Api\ServiceInterface | The service instance |
public removeAttribute ( string $key ) : void | ||
$key | string | The key of the value to delete |
return | void |
public setLoggers ( array $loggers ) : void | ||
$loggers | array | The loggers array to set |
return | void |
public setStorage ( AppserverIo\Storage\StorageInterface $storage ) : AppserverIo\Storage\StorageInterface | ||
$storage | AppserverIo\Storage\StorageInterface | A storage instance |
return | AppserverIo\Storage\StorageInterface | The storage instance |
public setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : void | ||
$systemConfiguration | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
return | void |
public setSystemLogger ( Psr\Log\LoggerInterface $systemLogger ) : void | ||
$systemLogger | Psr\Log\LoggerInterface | The system logger |
return | void |
protected SplClassLoader,AppserverIo\Appserver\Core $classLoader | ||
return | AppserverIo\Appserver\Core\SplClassLoader |
protected StorageInterface,AppserverIo\Storage $storage | ||
return | AppserverIo\Storage\StorageInterface |