PHP 클래스 AppserverIo\Appserver\Core\AbstractManager

저자: Tim Wagner ([email protected])
저자: Bernhard Wick ([email protected])
상속: extends AppserverIo\Storage\GenericStackable, implements AppserverIo\Psr\Application\ManagerInterface
파일 보기 프로젝트 열기: appserver-io/appserver

공개 메소드들

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