org.infinispan.rest
Class ServerBootstrap
java.lang.Object
org.infinispan.rest.ServerBootstrap
- All Implemented Interfaces:
- EventListener, ServletContextListener
public class ServerBootstrap
- extends Object
- implements ServletContextListener
Initializes cache manager for the REST server and sets it into the servlet context.
- Since:
- 5.2
- Author:
- Michal Linhard (mlinhard@redhat.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_MANAGER
public static final String CACHE_MANAGER
- See Also:
- Constant Field Values
CONFIGURATION
public static final String CONFIGURATION
- See Also:
- Constant Field Values
MANAGER_INSTANCE
public static final String MANAGER_INSTANCE
- See Also:
- Constant Field Values
ServerBootstrap
public ServerBootstrap()
setCacheManager
public static void setCacheManager(ServletContext ctx,
EmbeddedCacheManager cacheManager)
getCacheManager
public static EmbeddedCacheManager getCacheManager(ServletContext ctx)
getConfiguration
public static RestServerConfiguration getConfiguration(ServletContext ctx)
setConfiguration
public static void setConfiguration(ServletContext ctx,
RestServerConfiguration cfg)
getManagerInstance
public static org.infinispan.rest.ManagerInstance getManagerInstance(ServletContext ctx)
contextInitialized
public void contextInitialized(ServletContextEvent sce)
- Specified by:
contextInitialized
in interface ServletContextListener
contextDestroyed
public void contextDestroyed(ServletContextEvent sce)
- Specified by:
contextDestroyed
in interface ServletContextListener
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.