Package de.mhus.lib.core.directory
Class MResourceProvider<T extends ResourceNode<?>>
- java.lang.Object
-
- de.mhus.lib.core.MLog
-
- de.mhus.lib.core.lang.MObject
-
- de.mhus.lib.core.directory.MResourceProvider<T>
-
- All Implemented Interfaces:
IResourceProvider<T>,ILog,MNlsProvider,Nls
- Direct Known Subclasses:
ClassLoaderResourceProvider
public abstract class MResourceProvider<T extends ResourceNode<?>> extends MObject implements IResourceProvider<T>
-
-
Constructor Summary
Constructors Constructor Description MResourceProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TgetResourceById(String id)abstract TgetResourceByPath(String path)Return a requested resource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.mhus.lib.core.directory.IResourceProvider
getName
-
-
-
-
Method Detail
-
getResourceByPath
public abstract T getResourceByPath(String path)
Return a requested resource.- Specified by:
getResourceByPathin interfaceIResourceProvider<T extends ResourceNode<?>>- Parameters:
path- The name or path to the resource.- Returns:
- The resource or null if not found.
-
getResourceById
public abstract T getResourceById(String id)
- Specified by:
getResourceByIdin interfaceIResourceProvider<T extends ResourceNode<?>>
-
-