Package org.codehaus.aspectwerkz.pointcut

Examples of org.codehaus.aspectwerkz.pointcut.FieldPointcut


        synchronized (m_getFieldPointcuts) {
            if (m_getFieldPointcuts.containsKey(pattern)) {
                return (FieldPointcut)m_getFieldPointcuts.get(pattern);
            }
            else {
                final FieldPointcut poincut = new FieldPointcut(m_uuid, pattern);
                m_getFieldPointcuts.put(pattern, poincut);
                return poincut;
            }
        }
    }
View Full Code Here


        synchronized (m_setFieldPointcuts) {
            if (m_setFieldPointcuts.containsKey(pattern)) {
                return (FieldPointcut)m_setFieldPointcuts.get(pattern);
            }
            else {
                final FieldPointcut poincut = new FieldPointcut(m_uuid, pattern);
                m_setFieldPointcuts.put(pattern, poincut);
                return poincut;
            }
        }
    }
View Full Code Here

        if (classMetaData == null) throw new IllegalArgumentException("class meta-data can not be null");
        if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_getFieldPointcuts.values().iterator(); it.hasNext();) {
            final FieldPointcut pointcut = (FieldPointcut)it.next();
            if (pointcut.matches(classMetaData, fieldMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }
View Full Code Here

        if (classMetaData == null) throw new IllegalArgumentException("class meta-data can not be null");
        if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_setFieldPointcuts.values().iterator(); it.hasNext();) {
            final FieldPointcut pointcut = (FieldPointcut)it.next();
            if (pointcut.matches(classMetaData, fieldMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }
View Full Code Here

        synchronized (m_getFieldPointcuts) {
            if (m_getFieldPointcuts.containsKey(pattern)) {
                return (FieldPointcut)m_getFieldPointcuts.get(pattern);
            }
            else {
                final FieldPointcut poincut = new FieldPointcut(m_uuid, pattern);
                m_getFieldPointcuts.put(pattern, poincut);
                return poincut;
            }
        }
    }
View Full Code Here

        synchronized (m_setFieldPointcuts) {
            if (m_setFieldPointcuts.containsKey(pattern)) {
                return (FieldPointcut)m_setFieldPointcuts.get(pattern);
            }
            else {
                final FieldPointcut poincut = new FieldPointcut(m_uuid, pattern);
                m_setFieldPointcuts.put(pattern, poincut);
                return poincut;
            }
        }
    }
View Full Code Here

        if (classMetaData == null) throw new IllegalArgumentException("class meta-data can not be null");
        if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_getFieldPointcuts.values().iterator(); it.hasNext();) {
            final FieldPointcut pointcut = (FieldPointcut)it.next();
            if (pointcut.matches(classMetaData, fieldMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }
View Full Code Here

        if (classMetaData == null) throw new IllegalArgumentException("class meta-data can not be null");
        if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_setFieldPointcuts.values().iterator(); it.hasNext();) {
            final FieldPointcut pointcut = (FieldPointcut)it.next();
            if (pointcut.matches(classMetaData, fieldMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }
View Full Code Here

                List postAdvices = new ArrayList();

                List pointcuts = m_system.getSetFieldPointcuts(m_classMetaData, m_fieldMetaData);

                for (Iterator it = pointcuts.iterator(); it.hasNext();) {
                    FieldPointcut fieldPointcut = (FieldPointcut)it.next();

                    int[] preAdviceIndexes = fieldPointcut.getPreAdviceIndexes();
                    for (int j = 0; j < preAdviceIndexes.length; j++) {
                        preAdvices.add(new Integer(preAdviceIndexes[j]));
                    }

                    int[] postAdviceIndexes = fieldPointcut.getPostAdviceIndexes();
                    for (int j = 0; j < postAdviceIndexes.length; j++) {
                        postAdvices.add(new Integer(postAdviceIndexes[j]));
                    }
                }
View Full Code Here

                List postAdvices = new ArrayList();

                List pointcuts = m_system.getGetFieldPointcuts(m_classMetaData, m_fieldMetaData);

                for (Iterator it = pointcuts.iterator(); it.hasNext();) {
                    FieldPointcut fieldPointcut = (FieldPointcut)it.next();

                    int[] preAdviceIndexes = fieldPointcut.getPreAdviceIndexes();
                    for (int j = 0; j < preAdviceIndexes.length; j++) {
                        preAdvices.add(new Integer(preAdviceIndexes[j]));
                    }

                    int[] postAdviceIndexes = fieldPointcut.getPostAdviceIndexes();
                    for (int j = 0; j < postAdviceIndexes.length; j++) {
                        postAdvices.add(new Integer(postAdviceIndexes[j]));
                    }
                }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.pointcut.FieldPointcut

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.