Method | Description | |
---|---|---|
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 ( ) : |
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 ( |
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. |
public destroyBeanInstance ( object $instance ) : void | ||
$instance | object | The instance to invoke the method |
return | void |
public getDirectories ( ) : array | ||
return | array | The additional directories |
public getGarbageCollector ( ) : |
||
return | The garbage collector instance |
public getIdentifier ( ) : string | ||
return | string |
public getManagerSettings ( ) : AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface | ||
return | AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface | The bean manager settings |
public getNamingDirectory ( ) : AppserverIo\Storage\StorageInterface | ||
return | AppserverIo\Storage\StorageInterface | The storage with the naming directory |
public getObjectFactory ( ) : AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface | ||
return | AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface | The object factory instance |
public getResourceLocator ( ) : AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface | ||
return | AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface | The resource locator instance |
public getSingletonSessionBeans ( ) : AppserverIo\Storage\StorageInterface | ||
return | AppserverIo\Storage\StorageInterface | The storage with the singleton session beans |
public getStatefulSessionBeans ( ) : AppserverIo\Storage\StorageInterface | ||
return | AppserverIo\Storage\StorageInterface | The storage with the stateful session beans |
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
return | void |
public injectDirectories ( array $directories ) : void | ||
$directories | array | The additional directories to be parsed |
return | void |
public injectGarbageCollector ( |
||
$garbageCollector | The garbage collector | |
return | void |
public injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void | ||
$managerSettings | AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface | The bean manager settings |
return | void |
public injectObjectFactory ( AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface $objectFactory ) : void | ||
$objectFactory | AppserverIo\Appserver\PersistenceContainer\ObjectFactoryInterface | The object factory instance |
return | void |
public injectResourceLocator ( AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface $resourceLocator ) : void | ||
$resourceLocator | AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface | The resource locator |
return | void |
public injectSingletonSessionBeans ( AppserverIo\Storage\StorageInterface $singletonSessionBeans ) : void | ||
$singletonSessionBeans | AppserverIo\Storage\StorageInterface | The storage for the singleton session beans |
return | void |
public injectStatefulSessionBeans ( AppserverIo\Storage\StorageInterface $statefulSessionBeans ) : void | ||
$statefulSessionBeans | AppserverIo\Storage\StorageInterface | The storage for the stateful session beans |
return | void |
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 |
return | mixed | The result of the remote method invocation |
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 |
return | AppserverIo\Lang\Reflection\AnnotationInterface | The real annotation instance |
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 |
return | object | The instance itself |
public registerBean ( AppserverIo\Psr\EnterpriseBeans\Description\BeanDescriptorInterface $descriptor ) : void | ||
$descriptor | AppserverIo\Psr\EnterpriseBeans\Description\BeanDescriptorInterface | The bean descriptor |
return | void |
public registerBeans ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
return | void |