de.agilecoders.wicket.webjars.util
Class ClassLoaderResourceStreamProvider
java.lang.Object
de.agilecoders.wicket.webjars.util.ClassLoaderResourceStreamProvider
- All Implemented Interfaces:
- IResourceStreamProvider
public class ClassLoaderResourceStreamProvider
- extends Object
- implements IResourceStreamProvider
Loads a resource by calling ClassLoader.getResourceAsStream(String)
- Author:
- miha
|
Method Summary |
org.apache.wicket.util.resource.IResourceStream |
newResourceStream(String path)
Creates a new IResourceStream that points to a given path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderResourceStreamProvider
public ClassLoaderResourceStreamProvider(ClassLoader... classLoaders)
- Construct.
- Parameters:
classLoaders - the class loaders to use to find/load resources
newResourceStream
public org.apache.wicket.util.resource.IResourceStream newResourceStream(String path)
- Description copied from interface:
IResourceStreamProvider
- Creates a new
IResourceStream that points to a given path.
- Specified by:
newResourceStream in interface IResourceStreamProvider
- Parameters:
path - the path to load
- Returns:
- new
IResourceStream instance
Copyright © 2016 agilecoders.de. All Rights Reserved.