net.sf.andromedaioc.annotation.processor.AnnotationProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromeda-ioc Show documentation
Show all versions of andromeda-ioc Show documentation
Inversion of Control Framework for Android
The newest version!
package net.sf.andromedaioc.annotation.processor;
import android.app.Activity;
import net.sf.andromedaioc.context.AndromedaContext;
import java.lang.reflect.AnnotatedElement;
/**
* Annotation processor interface
*
* @author Alexey Mitrov
*/
public interface AnnotationProcessor {
/**
* Process annotation
* @param target target object were annotations were found
* @param activity activity related to target object
* @param annotated annotated element - field, method, class
* @param andromedaContext andromeda context
* @throws Exception
*/
public void process(Object target, Activity activity, AnnotatedElement annotated, AndromedaContext andromedaContext) throws Exception;
/**
* Can this processor process service target or only activity or fragments?
* @return true if yes, otherwise - false
*/
public boolean canProcessService();
}