use of org.androidannotations.holder.NonConfigurationHolder in project androidannotations by androidannotations.
the class NonConfigurationInstanceHandler method process.
@Override
public void process(Element element, EActivityHolder holder) throws JClassAlreadyExistsException {
String fieldName = element.getSimpleName().toString();
AbstractJClass fieldType = codeModelHelper.typeMirrorToJClass(element.asType());
NonConfigurationHolder ncHolder = holder.getNonConfigurationHolder();
JFieldVar ncHolderField = ncHolder.createField(fieldName, fieldType);
injectInInit(element, holder, fieldName, ncHolderField);
retainInOnRetain(holder, fieldName, ncHolderField);
}
Aggregations