PHP Class AppserverIo\Appserver\PersistenceContainer\BeanLocator

Inheritance: implements AppserverIo\Psr\EnterpriseBeans\ResourceLocatorInterface
Afficher le fichier Open project: appserver-io/appserver

Méthodes publiques

Méthode 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 méthode

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
Résultat object The requested session bean