|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ResourceStreamProvider>
de.agilecoders.wicket.webjars.settings.ResourceStreamProvider
public enum ResourceStreamProvider
A ResourceStreamProvider is responsible for creating resource streams. There are several implementations that
| Enum Constant Summary | |
|---|---|
ClassLoader
The ClassLoader provider uses ClassLoader.getResourceAsStream(String) with a custom
AbstractResourceStream implementation. |
|
Url
The Url provider uses a UrlResourceStream to load
a resource. |
|
| Method Summary | |
|---|---|
static ResourceStreamProvider |
bestFitting()
|
abstract IResourceStreamProvider |
newInstance(ClassLoader... classLoaders)
creates a new IResourceStreamProvider instance according to
this instance. |
static ResourceStreamProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ResourceStreamProvider[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ResourceStreamProvider ClassLoader
ClassLoader.getResourceAsStream(String) with a custom
AbstractResourceStream implementation.
public static final ResourceStreamProvider Url
UrlResourceStream to load
a resource. This provider can't be used on GAE, because it uses URL.openConnection().
| Method Detail |
|---|
public static ResourceStreamProvider[] values()
for (ResourceStreamProvider c : ResourceStreamProvider.values()) System.out.println(c);
public static ResourceStreamProvider valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract IResourceStreamProvider newInstance(ClassLoader... classLoaders)
IResourceStreamProvider instance according to
this instance.
classLoaders - the class loaders to use to load/find resources
IResourceStreamProvider instancepublic static ResourceStreamProvider bestFitting()
ResourceStreamProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||