package org.studio.maizi.ripened;

import android.app.Activity;
import android.app.Fragment;
import android.view.View;
import android.widget.Adapter;

import org.studio.maizi.ripened.impl.Ripened;

/**
 * the interface of auto view injection.<br />
 * Powered by Maizi-Studio.<br />
 * Design by maizi.<br />
 * Created on 13-10-8.<br />
 */
public interface IRipened {

    /**
     * set the context of viewInjection
     *
     * @param viContext the context of viewInjection
     * @return the current obj
     */
    IRipened setVIContext(VIContext viContext);

    /**
     * obtain the context of RapeField.
     * @return the context of RapeField.
     */
    VIContext getVIContext();

    /**
     * inject automatic in an activity.
     *
     * @param context  current context which relate to an instance of window
     * @param listener additional params, when your class of listener have no empty-parameter constructor, you should pass the listener object manually...
     * @return the current obj
     */
    IRipened inject(Activity context, Object... listener);

    /**
     * inject automatic in a fragment.
     *
     * @param fragment the fragment object.
     * @param root     the root view in your fragment.
     * @param listener additional params, when your class of listener have no empty-parameter constructor, you should pass the listener object manually...
     * @return the current obj
     */
    IRipened inject(Fragment fragment, View root, Object... listener);

    /**
     * inject automatic in a adapter.
     *
     * @param adapter   this impl class of adapter.
     * @param root      the root view of current item.
     * @param holder    the holder of adapter
     * @param listeners additional params, when your class of listener have no empty-parameter constructor, you should pass the listener object manually...
     * @return the current obj
     */
    IRipened inject(Adapter adapter, View root, Object holder, Object... listeners);
}
@@ -148,55 +148,8 @@
 r;%0A%0A
-import org.studio.maizi.ripened.impl.Ripened;%0A%0A
 /**%0A

add some comment.