| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gigaspaces.converter.pojo.ConverterHelper
public class ConverterHelper
A helper convertor class, used to get gs.xml files from different resources
| Constructor Summary | |
|---|---|
ConverterHelper()
Empty Constructor  | 
|
ConverterHelper(boolean isInvokePropSet)
Constructor  | 
|
| Method Summary | |
|---|---|
 void | 
afterPropertiesSet()
Initialize the Convertor for the given or the default location.  | 
 Configuration | 
getConfiguration()
Get the configuration  | 
static File | 
getFile(URL resourceUrl)
Resolve the given resource URL to a java.io.File, i.e. to
 a file in the file system. | 
 InputStream | 
getInputStream(String path)
This implementation opens an InputStream for the given class path resource.  | 
 URL | 
getURL(String path)
This implementation returns a URL for the underlying class path resource.  | 
 void | 
setMappingDirectoryLocations(String[] mappingDirectoryLocations)
Set locations of directories that contain GigaSpaces mapping resources, like "WEB-INF/mappings".  | 
 void | 
setMappingJarLocations(String[] mappingJarLocations)
Set locations of jar files that contain GigaSpaces mapping resources, like "WEB-INF/lib/example.gs.jar".  | 
 void | 
setMappingResources(String[] mappingResources)
Set GigaSpaces mapping resources to be found in the class path, like "example.gs.xml" or "mypackage/example.gs.xml".  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ConverterHelper()
public ConverterHelper(boolean isInvokePropSet)
isInvokePropSet - indicate if to invoke the method afterProertiesSet()
 after setMapping..() methods| Method Detail | 
|---|
public void setMappingResources(String[] mappingResources)
                         throws IOException
Can be used to add to mappings from a GigaSpaces XML config file, or to specify all mappings locally.
mappingResources - 
IOException
public void setMappingJarLocations(String[] mappingJarLocations)
                            throws FileNotFoundException,
                                   IOException
Can be used to add to mappings from a GigaSpaces XML config file, or to specify all mappings locally.
mappingJarLocations - 
IOException
FileNotFoundException
public void setMappingDirectoryLocations(String[] mappingDirectoryLocations)
                                  throws IOException
Can be used to add to mappings from a GigaSpaces XML config file, or to specify all mappings locally.
org.GigaSpaces.cfg.Configuration#addDirectory(java.io.File) - 
IOException
FileNotFoundException
public static File getFile(URL resourceUrl)
                    throws FileNotFoundException
java.io.File, i.e. to
 a file in the file system.
resourceUrl - the resource URL to resolvedescription - a description of the original resource that the URL was
           created for (for example, a class path location)
FileNotFoundException - if the URL cannot be resolved to a file in
            the file system
public URL getURL(String path)
           throws IOException
IOExceptionClassLoader.getResource(String), 
Class.getResource(String)
public InputStream getInputStream(String path)
                           throws IOException
path - 
IOException
public void afterPropertiesSet()
                        throws Exception
Exception
ConversionException - in case of GigaSpaces initialization errorspublic Configuration getConfiguration()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||