Aspectj Cookbook

Index

[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X]

abstract factory pattern

accept(Visitor) class AccountPersistenceAspect aspect

acknowledge( ) method adapter design pattern

advice 2nd     accessing attributes and methods from within

     accessing join point context from within

     advising same join point within same aspect    after( )

         change triggered         execute advice after 2nd         outputing tracing messages

         returning(<ReturnType\\> <Identifier\\>)

         returning(<ReturnValue\\>) form

         throwing

         throwing(<ExceptionType\\> <Identifier\\>)         transactions

     apply to other aspects

    around( )         constructor calls on Singleton interface classes

         join point triggers, executing advice around         overriding original logic with

         return value required

     around(MainApplication) block     aspects and pointcuts, relationship with

    before( )

         outputing tracing messages

         transactions

     capturing value of field being accessed

     capturing when executing 2nd

    executed

         after join point raised exception

         after normally returned join point

         after specific join point

         all pointcut conditions true

         around join point triggers

         before join point triggers

         excluding join points from within         one pointcut condition true     exposing orginal join point while being advised

     javadoc tags, applying to

     join points, excluding execution     JoinPoint implicit object passed to block

     precedence, controlling order of

     triggering based on true result comparison

AdviceExecution aspect

adviceexecution( ) pointcut

AdviceSignature interface

after( ) advice     change triggered

    execute advice after         join point

         join point raised exception     outputting tracing messages

     returning(<ReturnType\\> <Identifier\\>)

         with primitive types     returning(<ReturnValue\\>)

     throwing     throwing(<ExceptionType\\> <Identifier\\>)     transactions, and

ajc compiler [See compiler]

AJDT plug-in

     Version 1.1.11 or later

.ajproperties file anonymous pointcuts

Ant

Apache Axis web service, using AspectJ Apache Tomcat

AppleScript in a Nutshell (Bruce W. Perry) application properties aspects

application scale aspects

ApplicationLoggingAspect aspectapplications

     areas in

         declaring set of rules for

     Axis web service

     command-line

         deployment setup

     executable JAR file

         deployment setup

     Java Servlet

         deployed structure

     JSP

         deployment setup

     methods, introducing transactional behavior to

     programmatic constructs, controlling     security policies, adding to existing     targets

args([TypePatterns \\| Identifiers]) pointcut, capturing method call parameter values

args([Types \\| Identifiers]) pointcut 2nd     exposing new field value

     key characteristics 2nd

around( ) advice

     constructor calls on Singleton interface classes

     join point triggers, executing advice around

     overriding original logic with

     return value required around(MainApplication) advice block

aspect-oriented programming 2nd [See also join points; pointcuts]     advice

     aspects     cross-cutting concerns

     enterprise systems

     history of     join points, supported

     pointcuts     Xerox PARC andAspectJ

    ajc compiler [See compiler]

    applications

         Axis web service

         command-line         executable JAR file

         Java Servlet

         JSP         targets

     aspects [See also aspects]         objects, treated as

         singletons by default in

     best practices    build configurations

         file example

         multiple

     command-line build area

    compiler

         Eclipse as

         Eclipse download location

         project forced rebuild

         supplying files for

         weaving

     development environment, testing

     Eclipse, compiling with

     eclipse.org, open forum for

     installing     Java Runtime requirements     javadoc generation

     join points 2nd 3rd 4th [See also join points]

         supported     JoinPoint implicit object passed to block

     pointcuts

         for Java class and object initialization and construction stages

     runtime API packages

     syntax example

     testing, applying mock objects for

     this variable     thisJoinPoint variable

     thisJoinPointStaticPart variable    weaving

         into JAR files         load-time, compile-time

     Xerox PARC and

AspectJ Development Tools (AJDT) plug-in [See AJDT plug-in]aspectjrt.jar

     library     warning message when missing     within deployment/lib directory

aspects

     AccountPersistenceAspect

     active as behavior changers

     advice, applying to     AdviceExecution

     application properties

     application scale     ApplicationLoggingAspect

     AspectJ, singletons by default in     aTrack project (Ron Bodkin), resusable aspect libraries

     behavior decoupling, generic and reusable

     build configurations for, multiple     BusinessResourcePoolingAspect

     CallRecipe 2nd 3rd

     categorized as

     ChainOfResponsibilityPattern abstract

    classes

         adding interfaces to

         mulitple advised by

         transformed into during weaving process 2nd

     CommandPattern abstract

     CompositePattern

     ConcreteClassAObserver

     ControlClassSelectionAspect

     CuckoosEggAspect

     DecoratorPattern abstract     DefaultAlgorithmImplementation     DelegatingProxyPattern

     DelegationProxy

     developing simple     EmployeeIteration

     EmployeeMemento

     EmployeePersistenceAspect

     FormatCallDepth 2nd

     GraphicsComposite

     HelloWorld type example

     HelpChain    instantiation

         per-object-instance         sharing across all applied areas

         as singleton     interatorPattern abstract

     InventoryVisitor

     Java classes, multiple applied to     javadoc tags, applying to

     LazyFeatureLoading     LazyLoading     Logging abstract

     MainApplication

     MediatorPattern abstract

     MomentoPattern abstract

     MyAppPolicyAspect     objects, treated as

     ObserverPattern

     ObserverPattern abstract     passive as interceptors or observers

         logging 2nd         tracing

     patterns, applying as

     PersistenceAspect     pointcuts and advice, relationship with

     PrintableCharacterFlyweight

     PrinterScreenAdapter

     ProjectPolicyAspect

     ProxyPattern abstract

     resource pooling

     ResourcePoolingAspect

     SingletonPattern abstract

     SortingStrategy

     StrategyPattern abstract

     TCPConnectionState

     TextDisplayDecorator

     TextPhraseBuilderDefaultImplementation 2nd

     TracingAspect         extending     TransactionAspect

     varying selection of

     VerifyMethodArgsAspect     VisitorPattern abstract

    weaving

         at load time

         into JAR files

     XWindowBridge

aTrack bug-tracking project

     reusable aspect and pointcut libraries (Ron Bodkin)attributes

     private, encapsulation broken by get(Signature) pointcut

Категории