/************************************************
 * Copyright (c) Shen Li. All rights reserved.  *
 * http://joyaop.sourceforge.net                *
 * -------------------------------------------- *
 * Distributable under LGPL license.            *
 * See terms of license at gnu.org.             *
 ************************************************/
package net.sf.joyaop.impl;

import net.sf.joyaop.framework.AspectizedClass;
import net.sf.joyaop.framework.InterfaceAspect;

/**
 * @author Shen Li
 */
public class InterfaceAspectImpl extends AspectImpl implements InterfaceAspect {
    public void weave(AspectizedClass aspectizedClass) {
        if (getPointcut().matches(aspectizedClass.getOriginalClass())) {
            aspectizedClass.addInterface(this);
        }
    }
}
