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 |
return | object | The instance itself |