PHP Class AppserverIo\Appserver\AspectContainer\AspectManager

Inheritance: implements AppserverIo\Appserver\AspectContainer\Interfaces\AspectManagerInterface, implements AppserverIo\Psr\Application\ManagerInterface
Show file Open project: appserver-io/appserver Class Usage Examples

Public Methods

Method Description
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface Returns the application instance.
getAspectRegister ( ) : AppserverIo\Doppelgaenger\AspectRegister Getter for the $aspectRegister property
getAttribute ( string $key ) : mixed Returns the value with the passed name from the context.
getIdentifier ( ) : string The managers unique identifier.
getReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass Returns a reflection class instance for the passed class name.
getWebappPath ( ) : string Returns the absolute path to the web application.
initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Has been automatically invoked by the container after the application instance has been created.
injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Inject the application instance.
injectAspectRegister ( AppserverIo\Doppelgaenger\AspectRegister $aspectRegister ) : null Inject the aspect register
registerAspectXml ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Registers aspects written within source files which we might encounter

Protected Methods

Method Description
generatePointcutPointcut ( array $pointcutNames, AppserverIo\Doppelgaenger\Entities\Definitions\Aspect $aspect ) : AppserverIo\Doppelgaenger\Entities\Pointcuts\PointcutPointcut Will create a PointcutPointcut instance referencing all concrete pointcuts configured for a certain advice.
registerAspectClasses ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Registers aspects written within source files which we might encounter
registerAspects ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Registers the message beans at startup.

Method Details

generatePointcutPointcut() protected method

Needs a list of these pointcuts
protected generatePointcutPointcut ( array $pointcutNames, AppserverIo\Doppelgaenger\Entities\Definitions\Aspect $aspect ) : AppserverIo\Doppelgaenger\Entities\Pointcuts\PointcutPointcut
$pointcutNames array List of names of referenced pointcuts
$aspect AppserverIo\Doppelgaenger\Entities\Definitions\Aspect The aspect to which the advice belongs
return AppserverIo\Doppelgaenger\Entities\Pointcuts\PointcutPointcut

getApplication() public method

Returns the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface
return AppserverIo\Psr\Application\ApplicationInterface | AppserverIo\Psr\Naming\NamingDirectoryInterface The application instance

getAspectRegister() public method

Getter for the $aspectRegister property
public getAspectRegister ( ) : AppserverIo\Doppelgaenger\AspectRegister
return AppserverIo\Doppelgaenger\AspectRegister The aspect register

getAttribute() public method

Returns the value with the passed name from the context.
public getAttribute ( string $key ) : mixed
$key string The key of the value to return from the context.
return mixed The requested attribute

getIdentifier() public method

The managers unique identifier.
public getIdentifier ( ) : string
return string The unique identifier

getReflectionClass() public method

Returns a reflection class instance for the passed class name.
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClass ( string $className ) : AppserverIo\Lang\Reflection\ReflectionClass
$className string The class name to return the reflection class instance for
return AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

getWebappPath() public method

Returns the absolute path to the web application.
public getWebappPath ( ) : string
return string The absolute path

initialize() public method

Has been automatically invoked by the container after the application instance has been created.
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
return void

injectApplication() public method

Inject the application instance.
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
return void

injectAspectRegister() public method

Inject the aspect register
public injectAspectRegister ( AppserverIo\Doppelgaenger\AspectRegister $aspectRegister ) : null
$aspectRegister AppserverIo\Doppelgaenger\AspectRegister The aspect register instance
return null

registerAspectClasses() protected method

Registers aspects written within source files which we might encounter
protected registerAspectClasses ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
return void

registerAspectXml() public method

Registers aspects written within source files which we might encounter
public registerAspectXml ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
return void

registerAspects() protected method

Registers the message beans at startup.
protected registerAspects ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
return void