org.jpos.space
Class SpaceFactory
java.lang.Object
org.jpos.space.SpaceFactory
public class SpaceFactory
- extends Object
Creates a space based on a space URI.
A space URI has three parts:
- scheme
- name
- optional parameter
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");
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SpaceFactory
public SpaceFactory()
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.