net.sf.andromedaioc.resource.ResourceProvider 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;
import android.content.Context;
import java.io.InputStream;
/**
* Resource provider
*
* @author Alexey Mitrov
*/
public interface ResourceProvider {
/**
* Provide resource by provided resource path
*
* @param resourcePath path to resource
*
* @return resource
*/
Object getResource(String resourcePath);
/**
* Open classpath resource
*
* @param classPath
*
* @return
*/
InputStream openClassPathResource(String classPath);
/**
* Get android resource by id
*
* @param resourceId
*
* @return android resource
*/
Object getAndroidResource(Integer resourceId);
/**
* Get property by name
*
* @param name
*
* @return
*/
String getProperty(String name);
/**
* Get android context
*
* @return
*/
Context getContext();
}