GigaSpaces - Open Spaces

org.openspaces.core.space.cache
Class LocalViewSpaceConfigurer

java.lang.Object
  extended by org.openspaces.core.space.cache.LocalViewSpaceConfigurer

public class LocalViewSpaceConfigurer
extends Object

A simple configurer helper to create IJSpace local view. The configurer wraps LocalViewSpaceFactoryBean 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();

 LocalViewSpaceConfigurer localViewConfigurer = new LocalViewSpaceConfigurer(space)
           .addView(new View(SimpleMessage.class, "processed = true"));
 IJSpace localView = localViewConfigurer.localView();
 ...
 localViewConfigurer.destroy();
 urlSpaceConfigurer.destroy(); // optional
 

Author:
kimchy

Constructor Summary
LocalViewSpaceConfigurer(com.j_spaces.core.IJSpace space)
           
 
Method Summary
 LocalViewSpaceConfigurer addProperty(String name, String value)
           
 LocalViewSpaceConfigurer addView(com.j_spaces.core.client.view.View view)
           
 void destroy()
           
 com.j_spaces.core.IJSpace localView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalViewSpaceConfigurer

public LocalViewSpaceConfigurer(com.j_spaces.core.IJSpace space)
Method Detail

addProperty

public LocalViewSpaceConfigurer addProperty(String name,
                                            String value)
See Also:
AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties)

addView

public LocalViewSpaceConfigurer addView(com.j_spaces.core.client.view.View view)

localView

public com.j_spaces.core.IJSpace localView()

destroy

public void destroy()

GigaSpaces - Open Spaces

Copyright © GigaSpaces.