|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.simplexml.PersisterHelpers
public final class PersisterHelpers
Simple XML session context helpers.
| Constructor Summary | |
|---|---|
PersisterHelpers()
|
|
| Method Summary | ||
|---|---|---|
static org.simpleframework.xml.core.Persister |
createPersister(ResourceLookup resourceLookup,
org.simpleframework.xml.strategy.Strategy strategy)
Create a persister with the given ResourceLookup key. |
|
static ResourceLookup |
getResourceLookup(Map<Object,Object> session)
Acquire ResourceLookup from a serialization/ deserialization session. |
|
static
|
read(ResourceLookup resourceLookup,
String resource,
Class<T> clazz,
boolean required)
Read and deserialize an XML resource of class clazz. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersisterHelpers()
| Method Detail |
|---|
public static ResourceLookup getResourceLookup(Map<Object,Object> session)
ResourceLookup from a serialization/ deserialization session.
public static org.simpleframework.xml.core.Persister createPersister(ResourceLookup resourceLookup,
org.simpleframework.xml.strategy.Strategy strategy)
ResourceLookup key.
public static <T> T read(ResourceLookup resourceLookup,
String resource,
Class<T> clazz,
boolean required)
throws IOException
clazz.
T - Class to be deserialized.required - If true, missing resources will throw an IOException.
null if required
is false.
IOException
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||