|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.typemap.ImageTypeMap com.vinculumtech.carrierwave.typemap.DynamicImageTypeMap
A DynamicImageTypeMap is capable of having types registered at run time. In the future, this needs to be fleshed out so that types can also be unregistered (perhaps by grouping the registrations.)
On initialization, it will automatically load all typemaps found by the ClassLoader
at the location specified by TYPEMAP_RESOURCE_LOCATION
.
Field Summary | |
static java.lang.String |
COMMON_CLASS_PROPERTY
|
static java.lang.String |
PREFIX_IMAGEABLE_PROPERTY
|
static java.lang.String |
PREFIX_INTERFACE_PROPERTY
|
static java.lang.String |
TYPEMAP_RESOURCE_LOCATION
The standard location of typemaps. |
Constructor Summary | |
DynamicImageTypeMap()
|
Method Summary | |
protected void |
addMapping(java.lang.String key,
java.lang.String value)
If possible, add a mapping for the given property entry. |
protected java.util.Enumeration |
getStandardTypeMaps()
Find all typemaps at the standard location. |
protected void |
initMap()
Import typemap.properties from standard location. |
void |
register(java.util.Properties typeMap)
Add the mappings in the given properties object to this type map. |
void |
register(java.net.URL url)
Register the typemap located at the specified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TYPEMAP_RESOURCE_LOCATION
public static final java.lang.String COMMON_CLASS_PROPERTY
public static final java.lang.String PREFIX_IMAGEABLE_PROPERTY
public static final java.lang.String PREFIX_INTERFACE_PROPERTY
Constructor Detail |
public DynamicImageTypeMap()
Method Detail |
protected java.util.Enumeration getStandardTypeMaps()
protected void initMap()
initMap
in class ImageTypeMap
protected void addMapping(java.lang.String key, java.lang.String value)
key
- value
- public void register(java.util.Properties typeMap) throws GraphException
typeMap
-
GraphException
public void register(java.net.URL url) throws GraphException
url
-
GraphException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |