Class MapConfigurer

java.lang.Object
org.openspaces.core.map.MapConfigurer

public class MapConfigurer extends Object
A simple configurer helper to create IMap based on an IJSpace. The configurer wraps MapFactoryBean and providing a simpler means to configure it using code.

An example of using it:

 UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
          .noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});
 IJSpace space = urlSpaceConfigurer.space();

 IMap map = new MapConfigurer(space).localCachePutFirst(true).createMap();
 ...
 urlSpaceConfigurer.destroySpace(); // optional
 
Author:
kimchy