Search in sources :

Example 1 with RoboGuiceHolder

use of org.androidannotations.roboguice.holder.RoboGuiceHolder in project androidannotations by androidannotations.

the class RoboGuiceHandler method process.

@Override
public void process(Element element, EActivityHolder holder) {
    RoboGuiceHolder roboGuiceHolder = holder.getPluginHolder(new RoboGuiceHolder(holder));
    holder.getGeneratedClass()._implements(getJClass(RoboGuiceClasses.ROBO_CONTEXT));
    JFieldVar scope = roboGuiceHolder.getScopeField();
    JFieldVar scopedObjects = roboGuiceHolder.getScopedObjectsField();
    JFieldVar eventManager = roboGuiceHolder.getEventManagerField();
    roboGuiceHolder.getContentViewListenerField();
    listenerFields(element, holder);
    beforeCreateMethod(holder, scope, scopedObjects, eventManager);
    onRestartMethod(holder, eventManager);
    onStartMethod(holder, eventManager);
    onResumeMethod(holder, eventManager);
    onPauseMethod(holder, eventManager);
    onNewIntentMethod(holder, eventManager);
    onStopMethod(holder, eventManager);
    onDestroyMethod(holder, eventManager);
    onConfigurationChangedMethod(holder, roboGuiceHolder, eventManager);
    onContentChangedMethod(roboGuiceHolder, scope, eventManager);
    onActivityResultMethod(holder, eventManager);
    getScopedObjectMap(holder, scopedObjects);
}
Also used : JFieldVar(com.helger.jcodemodel.JFieldVar) RoboGuiceHolder(org.androidannotations.roboguice.holder.RoboGuiceHolder)

Aggregations

JFieldVar (com.helger.jcodemodel.JFieldVar)1 RoboGuiceHolder (org.androidannotations.roboguice.holder.RoboGuiceHolder)1