PHP Class AppserverIo\Appserver\Core\AbstractManager

Author: Tim Wagner ([email protected])
Author: Bernhard Wick ([email protected])
Inheritance: extends AppserverIo\Storage\GenericStackable, implements AppserverIo\Psr\Application\ManagerInterface
Afficher le fichier Open project: appserver-io/appserver

Méthodes publiques

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

Method Details

getAppBase() public méthode

Returns the absolute path to the application directory.
public getAppBase ( ) : string
Résultat string The absolute path to the application directory

getApplication() public méthode

Returns the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface
Résultat AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface The application instance

getAttribute() public méthode

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
Résultat mixed | null The requested value if available

getBaseDirectory() public méthode

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
Résultat string The absolute path the application server's base directory

getInitialContext() public méthode

Returns the global naming directory.
public getInitialContext ( ) : AppserverIo\Psr\Naming\InitialContext
Résultat AppserverIo\Psr\Naming\InitialContext The global naming directory

getManagerConfiguration() public méthode

Return's the manager configuration.
public getManagerConfiguration ( ) : AppserverIo\Psr\Application\ManagerConfigurationInterface
Résultat AppserverIo\Psr\Application\ManagerConfigurationInterface The manager configuration

getReflectionClass() public méthode

Returns a reflection class intance for the passed class name.
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass
$className string The class name to return the reflection class instance for
Résultat AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

getReflectionClassForObject() public méthode

Returns a reflection class intance for the passed class name.
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::newReflectionClass()
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClassForObject ( object $instance ) : AppserverIo\Lang\Reflection\ReflectionClass
$instance object The instance to return the reflection class instance for
Résultat AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

getWebappPath() public méthode

Returns the absolute path to the web application.
public getWebappPath ( ) : string
Résultat string The absolute path

injectApplication() public méthode

Inject the application instance.
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
Résultat void

injectData() public méthode

Inject the data storage.
public injectData ( AppserverIo\Storage\StorageInterface $data ) : void
$data AppserverIo\Storage\StorageInterface The data storage to use
Résultat void

injectInitialContext() public méthode

The global naming directory.
public injectInitialContext ( AppserverIo\Psr\Naming\InitialContext $initialContext ) : void
$initialContext AppserverIo\Psr\Naming\InitialContext The global naming directory
Résultat void

injectManagerConfiguration() public méthode

Inject the configuration for this manager.
public injectManagerConfiguration ( AppserverIo\Psr\Application\ManagerConfigurationInterface $managerConfiguration ) : void
$managerConfiguration AppserverIo\Psr\Application\ManagerConfigurationInterface The managers configuration
Résultat void

lookupProxy() public méthode

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
Résultat AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The proxy instance

newInstance() public méthode

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
Résultat object The instance itself

newReflectionClass() public méthode

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
Résultat AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

setAttribute() public méthode

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

stop() public méthode

A dummy functionality to implement the stop functionality.
public stop ( ) : void
Résultat void \AppserverIo\Psr\Application\ManagerInterface::stop()