|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gigaspaces.converter.pojo.Configuration
public class Configuration
Nested Class Summary | |
---|---|
class |
Configuration.MapHolder
This inner class is holding the indication if the all gs xml files have been loaded and the externalEntryMap which holds the POJODescriptor for POJO's. |
Constructor Summary | |
---|---|
Configuration()
Empty constructor |
Method Summary | |
---|---|
Configuration |
addClass(Class persistentClass)
Read a mapping from an application resource, using a convention. |
Configuration |
addClass(String persistentClass)
Read a mapping from an application resource, using a convention. |
Configuration |
addDirectory(File dir)
Read all mapping documents from a directory tree. |
Configuration |
addFile(File xmlFile)
Read mappings from a particular XML file |
Configuration |
addInputStream(InputStream xmlInputStream,
String fileName)
Read mappings from an InputStream |
Configuration |
addJar(File jar)
Read all mappings from a jar file |
Configuration |
addResource(String path)
Read mappings from an application resource trying different class loaders. |
Configuration |
addURL(URL url)
Read mappings from a URL |
com.gigaspaces.converter.pojo.Mappings |
createMappings()
Create a new Mappings to add class and collection mappings to. |
Map<Object,Configuration.MapHolder> |
getClassLoaderMapHolders()
|
Map<String,com.gigaspaces.converter.pojo.POJODescription> |
getExternalEntryMap()
Get the external entry map |
com.gigaspaces.converter.pojo.POJODescription |
getPOJODescription(String persistentClass)
Read a mapping from an application resource, using a convention. |
List<com.gigaspaces.converter.pojo.POJODescription> |
getPOJODescriptionList(InputStream xmlInputStream,
String fileName)
Read mappings from an InputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public Configuration addFile(File xmlFile) throws ConversionException
xmlFile
- a path to a file
ConversionException
public Configuration addURL(URL url) throws ConversionException
url
-
ConversionException
public com.gigaspaces.converter.pojo.Mappings createMappings()
public Configuration addResource(String path) throws ConversionException
ConversionException
public Configuration addClass(Class persistentClass) throws ConversionException
persistentClass
- the mapped class
ConversionException
public Configuration addClass(String persistentClass) throws ConversionException
persistentClass
- the mapped class name.
ConversionException
public com.gigaspaces.converter.pojo.POJODescription getPOJODescription(String persistentClass) throws ConversionException
persistentClass
- the mapped class name.
ConversionException
public Configuration addInputStream(InputStream xmlInputStream, String fileName) throws ConversionException
xmlInputStream
- an InputStream containing XML
ConversionException
public List<com.gigaspaces.converter.pojo.POJODescription> getPOJODescriptionList(InputStream xmlInputStream, String fileName) throws ConversionException
xmlInputStream
- an InputStream containing XML
ConversionException
public Configuration addJar(File jar) throws ConversionException
jar
- a jar file
ConversionException
public Configuration addDirectory(File dir) throws ConversionException
dir
- a directory
ConversionException
public Map<String,com.gigaspaces.converter.pojo.POJODescription> getExternalEntryMap()
public Map<Object,Configuration.MapHolder> getClassLoaderMapHolders()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |