PHP Класс AppserverIo\Appserver\Core\AbstractManager

Автор: Tim Wagner ([email protected])
Автор: Bernhard Wick ([email protected])
Наследование: extends AppserverIo\Storage\GenericStackable, implements AppserverIo\Psr\Application\ManagerInterface
Показать файл Открыть проект

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

Метод Описание
getAppBase ( ) : string Returns the absolute path to the application directory.
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface Returns the application instance.
getAttribute ( string $key ) : mixed | null Returns the attribute with the passed key from the container.
getBaseDirectory ( string $directoryToAppend = null ) : string Returns the absolute path to the application server's base directory.
getInitialContext ( ) : AppserverIo\Psr\Naming\InitialContext Returns the global naming directory.
getManagerConfiguration ( ) : AppserverIo\Psr\Application\ManagerConfigurationInterface Return's the manager configuration.
getReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass Returns a reflection class intance for the passed class name.
getReflectionClassForObject ( object $instance ) : AppserverIo\Lang\Reflection\ReflectionClass Returns a reflection class intance for the passed class name.
getWebappPath ( ) : string Returns the absolute path to the web application.
injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Inject the application instance.
injectData ( AppserverIo\Storage\StorageInterface $data ) : void Inject the data storage.
injectInitialContext ( AppserverIo\Psr\Naming\InitialContext $initialContext ) : void The global naming directory.
injectManagerConfiguration ( AppserverIo\Psr\Application\ManagerConfigurationInterface $managerConfiguration ) : void Inject the configuration for this manager.
lookupProxy ( string $lookupName, string $sessionId = null ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface This returns a proxy to the requested session bean.
newInstance ( string $className, string | null $sessionId = null, array $args = [] ) : object Returns a new instance of the passed class name.
newReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass Returns a new reflection class intance for the passed class name.
setAttribute ( string $key, object $value ) : void Registers the value with the passed key in the container.
stop ( ) : void A dummy functionality to implement the stop functionality.

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

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

Returns the absolute path to the application directory.
public getAppBase ( ) : string
Результат string The absolute path to the application directory

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

Returns the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface
Результат AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface The application instance

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

Returns the attribute with the passed key from the container.
public getAttribute ( string $key ) : mixed | null
$key string The key the requested value is registered with
Результат mixed | null The requested value if available

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

Returns the absolute path to the application server's base directory.
public getBaseDirectory ( string $directoryToAppend = null ) : string
$directoryToAppend string A directory to append to the base directory
Результат string The absolute path the application server's base directory

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

Returns the global naming directory.
public getInitialContext ( ) : AppserverIo\Psr\Naming\InitialContext
Результат AppserverIo\Psr\Naming\InitialContext The global naming directory

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

Return's the manager configuration.
public getManagerConfiguration ( ) : AppserverIo\Psr\Application\ManagerConfigurationInterface
Результат AppserverIo\Psr\Application\ManagerConfigurationInterface The manager configuration

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

Returns a reflection class intance for the passed class name.
См. также: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass
$className string The class name to return the reflection class instance for
Результат AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

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

Returns a reflection class intance for the passed class name.
См. также: DependencyInjectionContainer\Interfaces\ProviderInterface::newReflectionClass()
См. также: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClassForObject ( object $instance ) : AppserverIo\Lang\Reflection\ReflectionClass
$instance object The instance to return the reflection class instance for
Результат AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

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

Returns the absolute path to the web application.
public getWebappPath ( ) : string
Результат string The absolute path

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

Inject the application instance.
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
Результат void

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

Inject the data storage.
public injectData ( AppserverIo\Storage\StorageInterface $data ) : void
$data AppserverIo\Storage\StorageInterface The data storage to use
Результат void

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

The global naming directory.
public injectInitialContext ( AppserverIo\Psr\Naming\InitialContext $initialContext ) : void
$initialContext AppserverIo\Psr\Naming\InitialContext The global naming directory
Результат void

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

Inject the configuration for this manager.
public injectManagerConfiguration ( AppserverIo\Psr\Application\ManagerConfigurationInterface $managerConfiguration ) : void
$managerConfiguration AppserverIo\Psr\Application\ManagerConfigurationInterface The managers configuration
Результат void

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

This returns a proxy to the requested session bean.
public lookupProxy ( string $lookupName, string $sessionId = null ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface
$lookupName string The lookup name for the requested session bean
$sessionId string The session-ID if available
Результат AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The proxy instance

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

Returns a new instance of the passed class name.
public newInstance ( string $className, string | null $sessionId = null, array $args = [] ) : object
$className string The fully qualified class name to return the instance for
$sessionId string | null The session-ID, necessary to inject stateful session beans (SFBs)
$args array Arguments to pass to the constructor of the instance
Результат object The instance itself

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

Returns a new reflection class intance for the passed class name.
public newReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass
$className string The class name to return the reflection class instance for
Результат AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

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

Registers the value with the passed key in the container.
public setAttribute ( string $key, object $value ) : void
$key string The key to register the value with
$value object The value to register
Результат void

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

A dummy functionality to implement the stop functionality.
public stop ( ) : void
Результат void \AppserverIo\Psr\Application\ManagerInterface::stop()