PHP 클래스 AppserverIo\Appserver\PersistenceContainer\BeanManager

저자: Bernhard Wick ([email protected])
저자: Tim Wagner ([email protected])
상속: extends AppserverIo\Appserver\Core\AbstractEpbManager, implements AppserverIo\Psr\EnterpriseBeans\BeanContextInterface, implements AppserverIo\Appserver\Application\Interfaces\ManagerSettingsAwareInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
attach ( object $instance, string $sessionId = null ) : void Attaches the passed bean, depending on it's type to the container.
destroyBeanInstance ( object $instance ) : void Invokes the bean method with a pre-destroy callback.
getDirectories ( ) : array Returns all the additional directories to be parsed for servlets.
getGarbageCollector ( ) : StandardGarbageCollector Returns the garbage collector instance.
getIdentifier ( ) : string Returns the identifier for the bean manager instance.
getManagerSettings ( ) : AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface Return's the bean manager settings.
getNamingDirectory ( ) : AppserverIo\Storage\StorageInterface Return the storage with the naming directory.
getObjectFactory ( ) : AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface Returns the object factory instance.
getResourceLocator ( ) : AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface Return the resource locator instance.
getSingletonSessionBeans ( ) : AppserverIo\Storage\StorageInterface Return the storage with the singleton session beans.
getStatefulSessionBeans ( ) : AppserverIo\Storage\StorageInterface Return the storage with the stateful session beans.
initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Has been automatically invoked by the container after the application instance has been created.
injectDirectories ( array $directories ) : void Injects the additional directories to be parsed when looking for servlets.
injectGarbageCollector ( StandardGarbageCollector $garbageCollector ) : void Injects the garbage collector.
injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void Injects the bean manager settings.
injectObjectFactory ( AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface $objectFactory ) : void Injects the object factory instance.
injectResourceLocator ( AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface $resourceLocator ) : void Injects the resource locator to lookup the requested queue.
injectSingletonSessionBeans ( AppserverIo\Storage\StorageInterface $singletonSessionBeans ) : void Injects the storage for the singleton session beans.
injectStatefulSessionBeans ( AppserverIo\Storage\StorageInterface $statefulSessionBeans ) : void Injects the storage for the stateful session beans.
invoke ( AppserverIo\RemoteMethodInvocation\RemoteMethodInterface $remoteMethod, AppserverIo\Collections\CollectionInterface $sessions ) : mixed Invoke the passed remote method on the described session bean and return the result.
lookup ( string $className, string $sessionId = null, array $args = [] ) : object Runs a lookup for the session bean with the passed class name and session ID.
lookupSingletonSessionBean ( string $className ) : object | null Retrieves the requested singleton session bean.
lookupStatefulSessionBean ( string $sessionId, string $className ) : object | null Retrieves the requested stateful session bean.
newAnnotationInstance ( AppserverIo\Lang\Reflection\AnnotationInterface $annotation ) : AppserverIo\Lang\Reflection\AnnotationInterface Creates a new new instance of the annotation type, defined in the passed reflection annotation.
newSingletonSessionBeanInstance ( string $className, string | null $sessionId = null, array $args = [] ) : object Returns a new instance of the SSB with the passed class name.
registerBean ( AppserverIo\Psr\EnterpriseBeans\Description\BeanDescriptorInterface $descriptor ) : void Register the bean described by the passed descriptor.
registerBeans ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Registers the message beans at startup.
removeStatefulSessionBean ( string $sessionId, string $className ) : void Removes the stateful session bean with the passed session-ID and class name from the bean manager.
stop ( ) : void Shutdown the session manager instance.

메소드 상세

attach() 공개 메소드

Attaches the passed bean, depending on it's type to the container.
public attach ( object $instance, string $sessionId = null ) : void
$instance object The bean instance to attach
$sessionId string The session-ID when we have stateful session bean
리턴 void

destroyBeanInstance() 공개 메소드

Invokes the bean method with a pre-destroy callback.
public destroyBeanInstance ( object $instance ) : void
$instance object The instance to invoke the method
리턴 void

getDirectories() 공개 메소드

Returns all the additional directories to be parsed for servlets.
public getDirectories ( ) : array
리턴 array The additional directories

getGarbageCollector() 공개 메소드

Returns the garbage collector instance.
public getGarbageCollector ( ) : StandardGarbageCollector
리턴 StandardGarbageCollector The garbage collector instance

getIdentifier() 공개 메소드

Returns the identifier for the bean manager instance.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::getIdentifier()
public getIdentifier ( ) : string
리턴 string

getManagerSettings() 공개 메소드

Return's the bean manager settings.
public getManagerSettings ( ) : AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface
리턴 AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface The bean manager settings

getNamingDirectory() 공개 메소드

Return the storage with the naming directory.
public getNamingDirectory ( ) : AppserverIo\Storage\StorageInterface
리턴 AppserverIo\Storage\StorageInterface The storage with the naming directory

getObjectFactory() 공개 메소드

Returns the object factory instance.
public getObjectFactory ( ) : AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface
리턴 AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface The object factory instance

getResourceLocator() 공개 메소드

Return the resource locator instance.
public getResourceLocator ( ) : AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface
리턴 AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface The resource locator instance

getSingletonSessionBeans() 공개 메소드

Return the storage with the singleton session beans.
public getSingletonSessionBeans ( ) : AppserverIo\Storage\StorageInterface
리턴 AppserverIo\Storage\StorageInterface The storage with the singleton session beans

getStatefulSessionBeans() 공개 메소드

Return the storage with the stateful session beans.
public getStatefulSessionBeans ( ) : AppserverIo\Storage\StorageInterface
리턴 AppserverIo\Storage\StorageInterface The storage with the stateful session beans

initialize() 공개 메소드

Has been automatically invoked by the container after the application instance has been created.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::initialize()
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void

injectDirectories() 공개 메소드

Injects the additional directories to be parsed when looking for servlets.
public injectDirectories ( array $directories ) : void
$directories array The additional directories to be parsed
리턴 void

injectGarbageCollector() 공개 메소드

Injects the garbage collector.
public injectGarbageCollector ( StandardGarbageCollector $garbageCollector ) : void
$garbageCollector StandardGarbageCollector The garbage collector
리턴 void

injectManagerSettings() 공개 메소드

Injects the bean manager settings.
public injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void
$managerSettings AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface The bean manager settings
리턴 void

injectObjectFactory() 공개 메소드

Injects the object factory instance.
public injectObjectFactory ( AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface $objectFactory ) : void
$objectFactory AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface The object factory instance
리턴 void

injectResourceLocator() 공개 메소드

Injects the resource locator to lookup the requested queue.
public injectResourceLocator ( AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface $resourceLocator ) : void
$resourceLocator AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface The resource locator
리턴 void

injectSingletonSessionBeans() 공개 메소드

Injects the storage for the singleton session beans.
public injectSingletonSessionBeans ( AppserverIo\Storage\StorageInterface $singletonSessionBeans ) : void
$singletonSessionBeans AppserverIo\Storage\StorageInterface The storage for the singleton session beans
리턴 void

injectStatefulSessionBeans() 공개 메소드

Injects the storage for the stateful session beans.
public injectStatefulSessionBeans ( AppserverIo\Storage\StorageInterface $statefulSessionBeans ) : void
$statefulSessionBeans AppserverIo\Storage\StorageInterface The storage for the stateful session beans
리턴 void

invoke() 공개 메소드

Invoke the passed remote method on the described session bean and return the result.
public invoke ( AppserverIo\RemoteMethodInvocation\RemoteMethodInterface $remoteMethod, AppserverIo\Collections\CollectionInterface $sessions ) : mixed
$remoteMethod AppserverIo\RemoteMethodInvocation\RemoteMethodInterface The remote method description
$sessions AppserverIo\Collections\CollectionInterface The collection with the sessions
리턴 mixed The result of the remote method invocation

lookup() 공개 메소드

If the passed class name is a session bean an instance will be returned.
public lookup ( string $className, string $sessionId = null, array $args = [] ) : object
$className string The name of the session bean's class
$sessionId string The session ID
$args array The arguments passed to the session beans constructor
리턴 object The requested bean instance

lookupSingletonSessionBean() 공개 메소드

Retrieves the requested singleton session bean.
public lookupSingletonSessionBean ( string $className ) : object | null
$className string The class name of the session bean to retrieve
리턴 object | null The singleton session bean if available

lookupStatefulSessionBean() 공개 메소드

Retrieves the requested stateful session bean.
public lookupStatefulSessionBean ( string $sessionId, string $className ) : object | null
$sessionId string The session-ID of the stateful session bean to retrieve
$className string The class name of the session bean to retrieve
리턴 object | null The stateful session bean if available

newAnnotationInstance() 공개 메소드

Creates a new new instance of the annotation type, defined in the passed reflection annotation.
public newAnnotationInstance ( AppserverIo\Lang\Reflection\AnnotationInterface $annotation ) : AppserverIo\Lang\Reflection\AnnotationInterface
$annotation AppserverIo\Lang\Reflection\AnnotationInterface The reflection annotation we want to create the instance for
리턴 AppserverIo\Lang\Reflection\AnnotationInterface The real annotation instance

newSingletonSessionBeanInstance() 공개 메소드

Returns a new instance of the SSB with the passed class name.
public newSingletonSessionBeanInstance ( 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

registerBean() 공개 메소드

Register the bean described by the passed descriptor.
public registerBean ( AppserverIo\Psr\EnterpriseBeans\Description\BeanDescriptorInterface $descriptor ) : void
$descriptor AppserverIo\Psr\EnterpriseBeans\Description\BeanDescriptorInterface The bean descriptor
리턴 void

registerBeans() 공개 메소드

Registers the message beans at startup.
public registerBeans ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void

removeStatefulSessionBean() 공개 메소드

Removes the stateful session bean with the passed session-ID and class name from the bean manager.
public removeStatefulSessionBean ( string $sessionId, string $className ) : void
$sessionId string The session-ID of the stateful session bean to retrieve
$className string The class name of the session bean to retrieve
리턴 void

stop() 공개 메소드

Shutdown the session manager instance.
public stop ( ) : void
리턴 void \AppserverIo\Psr\Application\ManagerInterface::stop()