All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.andromedaioc.annotation.processor.AnnotationProcessor Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy