public class Schematic extends DocumentFactory
Modifier and Type | Class and Description |
---|---|
static interface |
Schematic.ContentTypes |
protected static class |
Schematic.DocumentChanges |
protected static class |
Schematic.EditorImpl |
DEFAULT_FACTORY
Constructor and Description |
---|
Schematic() |
Modifier and Type | Method and Description |
---|---|
static SchemaLibrary |
createSchemaLibrary()
Create an in-memory schema library.
|
static SchemaLibrary |
createSchemaLibrary(String name)
Create an in-memory schema library.
|
static Editor |
editDocument(Document document,
boolean clone)
Obtain an editor for the supplied document.
|
static org.infinispan.marshall.AdvancedExternalizer<Object>[] |
externalizers()
Get the set of
Externalizer implementations that are used by Schematic. |
static Set<? extends org.infinispan.marshall.AdvancedExternalizer<?>> |
externalizerSet()
Get the complete set of
AdvancedExternalizer implementations. |
static SchematicDb |
get(org.infinispan.manager.CacheContainer cacheContainer,
String cacheName)
Get the
SchematicDb instance given the cache name and container. |
newArray, newArray, newArray, newArray, newDocument, newDocument, newDocument, newDocument, newDocument, newDocument
public static SchematicDb get(org.infinispan.manager.CacheContainer cacheContainer, String cacheName)
SchematicDb
instance given the cache name and container.cacheContainer
- the container for the named cache; may not be nullcacheName
- the name of the cache; may not be nullpublic static Editor editDocument(Document document, boolean clone)
serializable memento
that can be applied to another document.document
- the document to be editedclone
- true if the editor should operate against a clone of the document, or false if it should operate against the
supplied documentpublic static SchemaLibrary createSchemaLibrary()
public static SchemaLibrary createSchemaLibrary(String name)
name
- the name of the library; may be null if a default name is to be usedpublic static org.infinispan.marshall.AdvancedExternalizer<Object>[] externalizers()
Externalizer
implementations that are used by Schematic. These need to be registered with the
GlobalConfiguration
:
GlobalConfiguration config = new GlobalConfiguration(); config = config.fluent().serialization().addAdvancedExternalizer(Schematic.externalizers()).build();
public static Set<? extends org.infinispan.marshall.AdvancedExternalizer<?>> externalizerSet()
AdvancedExternalizer
implementations. Note that this does not include Externalizer
implementations that are not AdvancedExternalizer
s.AdvancedExternalizer
implementations.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.