/** * Return the name of the servlet context. * * @return The name */ @Override public String getServletContextName() { return application.getName(); }
/** * Return the name of the servlet context. * * @return The name */ @Override public String getServletContextName() { return application.getName(); }
/** * Get the context path. For this mock implementation the name of the application is always * returned. * * @return The context path */ public String getContextPath() { return "/" + application.getName(); }
/** * Return the name of the servlet context. * * @return The name */ public String getServletContextName() { return application.getName(); }
/** * Get the context path. For this mock implementation the name of the application is always * returned. * * @return The context path */ public String getContextPath() { return "/" + application.getName(); }
/** * Iterate initializers list, calling their {@link IInitializer#destroy(Application) destroy} * methods. */ private void destroyInitializers() { for (IInitializer initializer : initializers) { log.info("[{}] destroy: {}", getName(), initializer); initializer.destroy(this); } }
/** * Iterate initializers list, calling any instances found in it. */ private final void callInitializers() { for (Iterator i = initializers.iterator(); i.hasNext();) { IInitializer initializer = (IInitializer)i.next(); log.info("[" + getName() + "] init: " + initializer); initializer.init(this); } }
/** * Iterate initializers list, calling their {@link IInitializer#destroy(Application) destroy} * methods. */ private void destroyInitializers() { for (IInitializer initializer : initializers) { log.info("[{}] destroy: {}", getName(), initializer); initializer.destroy(this); } }
/** * @param properties * Properties map with names of any library initializers in it */ private void load(final Properties properties) { addInitializer(properties.getProperty("initializer")); addInitializer(properties.getProperty(getName() + "-initializer")); }
/** * @param properties * Properties map with names of any library initializers in it */ private void load(final Properties properties) { addInitializer(properties.getProperty("initializer")); addInitializer(properties.getProperty(getName() + "-initializer")); }
/** * @param properties * Properties map with names of any library initializers in it */ private final void load(final Properties properties) { addInitializer(properties.getProperty("initializer")); addInitializer(properties.getProperty(getName() + "-initializer")); }
/** * @param properties * Properties map with names of any library initializers in it */ private final void load(final Properties properties) { addInitializer(properties.getProperty("initializer")); addInitializer(properties.getProperty(getName() + "-initializer")); }
private static String defaultEncryptionKey(String cookieKey) { if (Application.exists()) { return Application.get().getName(); } return cookieKey; }
private static String defaultEncryptionKey(String cookieKey) { if (Application.exists()) { return Application.get().getName(); } return cookieKey; }
public AbstractClientMessage(Application application, String sessionId, IKey key) { this.applicationName = Args.notNull(application, "application").getName(); this.sessionId = Args.notNull(sessionId, "sessionId"); this.key = Args.notNull(key, "key"); }
public AbstractClientMessage(Application application, String sessionId, IKey key) { this.applicationName = Args.notNull(application, "application").getName(); this.sessionId = Args.notNull(sessionId, "sessionId"); this.key = Args.notNull(key, "key"); }
@Override protected IDataStore newDataStore() { StoreSettings storeSettings = application.getStoreSettings(); File fileStoreFolder = storeSettings.getFileStoreFolder(); Bytes maxSizePerSession = storeSettings.getMaxSizePerSession(); dataStore = new DebugDiskDataStore(application.getName(), fileStoreFolder, maxSizePerSession); return dataStore; } }
protected IDataStore newDataStore() { StoreSettings storeSettings = getStoreSettings(); Bytes maxSizePerSession = storeSettings.getMaxSizePerSession(); File fileStoreFolder = storeSettings.getFileStoreFolder(); return new DiskDataStore(application.getName(), fileStoreFolder, maxSizePerSession); }
protected IDataStore newDataStore() { StoreSettings storeSettings = getStoreSettings(); Bytes maxSizePerSession = storeSettings.getMaxSizePerSession(); File fileStoreFolder = storeSettings.getFileStoreFolder(); return new DiskDataStore(application.getName(), fileStoreFolder, maxSizePerSession); }
@Override public IPageManager apply(IPageManagerContext pageManagerContext) { IDataStore dataStore = new HttpSessionDataStore(pageManagerContext, evictionStrategy); int cacheSize = application.getStoreSettings().getInmemoryCacheSize(); ISerializer pageSerializer = application.getFrameworkSettings().getSerializer(); IPageStore pageStore = new DefaultPageStore(pageSerializer, dataStore, cacheSize); return new PageStoreManager(application.getName(), pageStore, pageManagerContext); } }