PHP Class AppserverIo\Appserver\PersistenceContainer\BeanLocator

Inheritance: implements AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface
Show file Open project: appserver-io/appserver

Public Methods

Method Description
lookup ( AppserverIo\Psr\EnterpriseBeans\BeanContextInterface $beanManager, string $className, string $sessionId = null, array $args = [] ) : object Runs a lookup for the session bean with the passed class name and session ID.

Method Details

lookup() public method

If the passed class name is a session bean an instance will be returned.
public lookup ( AppserverIo\Psr\EnterpriseBeans\BeanContextInterface $beanManager, string $className, string $sessionId = null, array $args = [] ) : object
$beanManager AppserverIo\Psr\EnterpriseBeans\BeanContextInterface The bean manager instance
$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
return object The requested session bean