/*******************************************************************************
* Copyright (c) 2006, 2009 Spring IDE Developers
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Spring IDE Developers - initial API and implementation
*******************************************************************************/
package org.springframework.ide.eclipse.aop.core.model;
import org.eclipse.core.resources.IResource;
import org.eclipse.jdt.core.IMember;
/**
* @author Christian Dupuis
*/
public interface IAopReference {
enum ADVICE_TYPE {
BEFORE, AROUND, AFTER, AFTER_RETURNING, AFTER_THROWING, DECLARE_PARENTS
}
ADVICE_TYPE getAdviceType();
IMember getSource();
int getSourceStartLine();
IAspectDefinition getDefinition();
IResource getResource();
IMember getTarget();
int getTargetStartLine();
String getTargetBeanId();
int getTargetBeanStartline();
IResource getTargetBeanResource();
// TODO CD move into different interface
void setDefinition(IAspectDefinition definition);
}