All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.andromedaioc.resource.ResourceProvider Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy