PHP Class AppserverIo\Appserver\PersistenceContainer\DependencyInjection\DirectoryParser

Mostra file Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$beanContext AppserverIo\Psr\EnterpriseBeans\BeanContextInterface The bean context we want to parse the directories for.

Public Methods

Method Description
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application context instance the bean context is bound to.
getBeanContext ( ) : AppserverIo\Psr\EnterpriseBeans\BeanContextInterface Returns the bean context instance.
injectBeanContext ( AppserverIo\Psr\EnterpriseBeans\BeanContextInterface $beanContext ) : void Inject the bean context instance.
parse ( ) : void Parses the bean context's web application base directory for beans that has to be registered in the object manager.

Protected Methods

Method Description
parseDirectory ( string $directory ) : void Parses the passed directory for classes and instances that has to be registered in the object manager.

Method Details

getApplication() public method

Returns the application context instance the bean context is bound to.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
return AppserverIo\Psr\Application\ApplicationInterface The application context instance

getBeanContext() public method

Returns the bean context instance.
public getBeanContext ( ) : AppserverIo\Psr\EnterpriseBeans\BeanContextInterface
return AppserverIo\Psr\EnterpriseBeans\BeanContextInterface The bean context instance

injectBeanContext() public method

Inject the bean context instance.
public injectBeanContext ( AppserverIo\Psr\EnterpriseBeans\BeanContextInterface $beanContext ) : void
$beanContext AppserverIo\Psr\EnterpriseBeans\BeanContextInterface The bean context instance
return void

parse() public method

Parses the bean context's web application base directory for beans that has to be registered in the object manager.
public parse ( ) : void
return void

parseDirectory() protected method

Parses the passed directory for classes and instances that has to be registered in the object manager.
protected parseDirectory ( string $directory ) : void
$directory string The directory to parse
return void

Property Details

$beanContext protected_oe property

The bean context we want to parse the directories for.
protected BeanContextInterface,AppserverIo\Psr\EnterpriseBeans $beanContext
return AppserverIo\Psr\EnterpriseBeans\BeanContextInterface