Package org.codehaus.aspectwerkz.joinpoint

Examples of org.codehaus.aspectwerkz.joinpoint.FieldJoinPoint


    public MyPreAdvice2() {
        super();
    }

    public void execute(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint fjp = (FieldJoinPoint)joinPoint;

        // if member field not handled correctly but handled as a static field
        // this will throw a class cast exception
        MemberFieldSetJoinPoint mfjp = (MemberFieldSetJoinPoint)fjp;
View Full Code Here


    public MyPostAdvice1() {
        super();
    }

    public void execute(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint fjp = (FieldJoinPoint)joinPoint;

        CollectionFieldTest.s_log += "MyPostAdvice1 ";
    }
View Full Code Here

    public MyPreAdvice1() {
        super();
    }

    public void execute(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint fjp = (FieldJoinPoint)joinPoint;

        // if static field not handled correctly but handled as a member field
        // this will throw a class cast exception
        StaticFieldSetJoinPoint sgfjp = (StaticFieldSetJoinPoint)fjp;
View Full Code Here

    public MyPostAdvice2() {
        super();
    }

    public void execute(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint fjp = (FieldJoinPoint)joinPoint;

        //todo redo check runtime type

        CollectionFieldTest.s_log += "MyPostAdvice2 ";
    }
View Full Code Here

     * Is executed when a field has become dirty.
     *
     * @param joinPoint the current join point
     */
    public void execute(final JoinPoint joinPoint) {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;
        try {
            s_persistenceManager.store(jp.getTargetInstance());
        }
        catch (PersistenceManagerException e) {
            throw new WrappedRuntimeException(e);
        }
    }
View Full Code Here

    /**
     * @Before logSet
     * @Before logGet
     */
    public void logEntry(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;
        System.out.println("ENTER: " + jp.getTargetClass().getName() + "::" + jp.getFieldName());
    }
View Full Code Here

    /**
     * @After logSet
     * @After logGet
     */
    public void logExit(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;
        System.out.println("EXIT: " + jp.getTargetClass().getName() + "::" + jp.getFieldName());
    }
View Full Code Here

     * Is executed when a field has become dirty.
     *
     * @param joinPoint the current join point
     */
    public void execute(final JoinPoint joinPoint) {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;
        try {
            s_persistenceManager.store(jp.getTargetObject());
        }
        catch (PersistenceManagerException e) {
            throw new WrappedRuntimeException(e);
        }
    }
View Full Code Here

     * Is executed when a field has become dirty.
     *
     * @param joinPoint the current join point
     */
    public void execute(final JoinPoint joinPoint) {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;

        String fieldName = jp.getFieldName();
        Object targetObject = jp.getTargetObject();
        Class targetClass = jp.getTargetClass();

        Object index = ((MetaDataEnhanceable)targetObject).
                ___hidden$getMetaData(MetaDataKeys.TARGET_OBJECT_UUID);

        Object aspectComponentUuid = ((MetaDataEnhanceable)targetObject).
View Full Code Here

    /**
     * @Before logSet
     * @Before logGet
     */
    public void logEntry(final JoinPoint joinPoint) throws Throwable {
        FieldJoinPoint jp = (FieldJoinPoint)joinPoint;
        System.out.println("ENTER: " + jp.getTargetClass().getName() + "::" + jp.getFieldName());
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.joinpoint.FieldJoinPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.