net.sf.andromedaioc.resource.loader.IntegerResourceLoader 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.resource.loader;
import android.content.Context;
import net.sf.andromedaioc.resource.ResourceIdentifier;
public class IntegerResourceLoader extends AbstractAndroidResourceLoader {
public IntegerResourceLoader(Context context) {
super(context);
}
public Object loadResource(ResourceIdentifier resourceIdentifier) {
return getContext().getResources().getInteger(resourceIdentifier.getId());
}
}