PHP Class AppserverIo\Appserver\AspectContainer\AspectManager

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

Méthodes publiques

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

Méthodes protégées

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

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
Résultat AppserverIo\Doppelgaenger\Entities\Pointcuts\PointcutPointcut

getApplication() public méthode

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

getAspectRegister() public méthode

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

getAttribute() public méthode

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.
Résultat mixed The requested attribute

getIdentifier() public méthode

The managers unique identifier.
public getIdentifier ( ) : string
Résultat string The unique identifier

getReflectionClass() public méthode

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
Résultat AppserverIo\Lang\Reflection\ReflectionClass The reflection instance

getWebappPath() public méthode

Returns the absolute path to the web application.
public getWebappPath ( ) : string
Résultat string The absolute path

initialize() public méthode

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
Résultat void

injectApplication() public méthode

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

injectAspectRegister() public méthode

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

registerAspectClasses() protected méthode

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
Résultat void

registerAspectXml() public méthode

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
Résultat void

registerAspects() protected méthode

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