@Override public void setCacheObjectMaxSize(int cacheObjectMaxSize) { cache.setObjectMaxSize(cacheObjectMaxSize); // Don't enforce the limit when not running as attributes may get set in // any order. if (getState().isAvailable()) { cache.enforceObjectMaxSizeLimit(); } }
@Override public void setCacheObjectMaxSize(int cacheObjectMaxSize) { cache.setObjectMaxSize(cacheObjectMaxSize); // Don't enforce the limit when not running as attributes may get set in // any order. if (getState().isAvailable()) { cache.enforceObjectMaxSizeLimit(); } }
@Override public void setCacheObjectMaxSize(int cacheObjectMaxSize) { cache.setObjectMaxSize(cacheObjectMaxSize); // Don't enforce the limit when not running as attributes may get set in // any order. if (getState().isAvailable()) { cache.enforceObjectMaxSizeLimit(); } }
@Override protected void startInternal() throws LifecycleException { mainResources.clear(); main = createMainResourceSet(); mainResources.add(main); for (List<WebResourceSet> list : allResources) { // Skip class resources since they are started below if (list != classResources) { for (WebResourceSet webResourceSet : list) { webResourceSet.start(); } } } // This has to be called after the other resources have been started // else it won't find all the matching resources processWebInfLib(); // Need to start the newly found resources for (WebResourceSet classResource : classResources) { classResource.start(); } cache.enforceObjectMaxSizeLimit(); setState(LifecycleState.STARTING); }
@Override protected void startInternal() throws LifecycleException { mainResources.clear(); main = createMainResourceSet(); mainResources.add(main); for (List<WebResourceSet> list : allResources) { // Skip class resources since they are started below if (list != classResources) { for (WebResourceSet webResourceSet : list) { webResourceSet.start(); } } } // This has to be called after the other resources have been started // else it won't find all the matching resources processWebInfLib(); // Need to start the newly found resources for (WebResourceSet classResource : classResources) { classResource.start(); } cache.enforceObjectMaxSizeLimit(); setState(LifecycleState.STARTING); }