org.jpos.space
Class SpaceFactory

java.lang.Object
  extended by org.jpos.space.SpaceFactory

public class SpaceFactory
extends Object

Creates a space based on a space URI.

A space URI has three parts:

Examples:

   // default unnamed space (tspace:default)
   Space sp = SpaceFactory.getSpace (); 

   // transient space named "test"
   Space sp = SpaceFactory.getSpace ("transient:test");  

   // persistent space named "test"
   Space sp = SpaceFactory.getSpace ("persistent:test"); 

   // jdbm space named test
   Space sp = SpaceFactory.getSpace ("jdbm:test");

   // jdbm space named test, storage located in /tmp/test
   Space sp = SpaceFactory.getSpace ("jdbm:test:/tmp/test");  
 


Field Summary
static String DEFAULT
           
static String JDBM
           
static String JE
           
static String PERSISTENT
           
static String SPACELET
           
static String TRANSIENT
           
static String TSPACE
           
 
Constructor Summary
SpaceFactory()
           
 
Method Summary
static Space getSpace()
           
static Space getSpace(String spaceUri)
           
static Space getSpace(String scheme, String name, String param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TSPACE

public static final String TSPACE
See Also:
Constant Field Values

TRANSIENT

public static final String TRANSIENT
See Also:
Constant Field Values

PERSISTENT

public static final String PERSISTENT
See Also:
Constant Field Values

SPACELET

public static final String SPACELET
See Also:
Constant Field Values

JDBM

public static final String JDBM
See Also:
Constant Field Values

JE

public static final String JE
See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values
Constructor Detail

SpaceFactory

public SpaceFactory()
Method Detail

getSpace

public static Space getSpace()
Returns:
the default TransientSpace

getSpace

public static Space getSpace(String spaceUri)
Parameters:
spaceUri -
Returns:
Space for given URI or null

getSpace

public static Space getSpace(String scheme,
                             String name,
                             String param)


Copyright © 1998-2012 jPOS.org. All Rights Reserved.