PHP Class AppserverIo\Appserver\PersistenceContainer\DependencyInjection\DeploymentDescriptorParser

Show 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 deployment descriptor 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 deployment descriptor file for beans that has to be registered in the object manager.

Protected Methods

Method Description
processConfigurationNode ( AppserverIo\Configuration\Interfaces\NodeInterface $node ) : void Creates a new descriptor instance from the data of the passed configuration node and add's it to 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 deployment descriptor file for beans that has to be registered in the object manager.
public parse ( ) : void
return void

processConfigurationNode() protected method

Creates a new descriptor instance from the data of the passed configuration node and add's it to the object manager.
protected processConfigurationNode ( AppserverIo\Configuration\Interfaces\NodeInterface $node ) : void
$node AppserverIo\Configuration\Interfaces\NodeInterface The node to process
return void

Property Details

$beanContext protected property

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