|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.subshell.persistence.mapper.PropertyPersistenceMapperConfiguration
public class PropertyPersistenceMapperConfiguration
A persistence mapper configuration constructed from properties.
Constructor Summary | |
---|---|
PropertyPersistenceMapperConfiguration(File file)
Constructs a new persistence mapper configuration from the specified file. |
|
PropertyPersistenceMapperConfiguration(Properties props)
Constructs a new persistence mapper configuration from the specified properties. |
Method Summary | ||
---|---|---|
|
getMapperForClass(Class<T> clazz)
Returns the PersistenceMapper class configured for the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyPersistenceMapperConfiguration(Properties props)
InitializationException
- when constructing the configuration failspublic PropertyPersistenceMapperConfiguration(File file) throws IOException
InitializationException
- when constructing the configuration fails
IOException
- when loading the configuration failsMethod Detail |
---|
public <T> Class<PersistenceMapper<T>> getMapperForClass(Class<T> clazz)
getMapperForClass
in interface PersistenceMapperConfiguration
clazz
- class to return a persistence mapper's class for
clazz
PersistenceMapperNotFoundException
- if no mapper is found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |