org.infinispan.rest
Class ServerBootstrap

java.lang.Object
  extended by 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)

Field Summary
static String CACHE_MANAGER
           
static String CONFIGURATION
           
static String MANAGER_INSTANCE
           
 
Constructor Summary
ServerBootstrap()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
static EmbeddedCacheManager getCacheManager(ServletContext ctx)
           
static RestServerConfiguration getConfiguration(ServletContext ctx)
           
static org.infinispan.rest.ManagerInstance getManagerInstance(ServletContext ctx)
           
static void setCacheManager(ServletContext ctx, EmbeddedCacheManager cacheManager)
           
static void setConfiguration(ServletContext ctx, RestServerConfiguration cfg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ServerBootstrap

public ServerBootstrap()
Method Detail

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.