@Override public void init(WebApplication webApplication) { StoreSettings storeSettings = webApplication.getStoreSettings(); if (props.getAsynchronous() != null) { storeSettings.setAsynchronous(props.getAsynchronous()); } if (props.getAsynchronousQueueCapacity() != null) { storeSettings.setAsynchronousQueueCapacity(props.getAsynchronousQueueCapacity()); } if (props.getFileStoreFolder() != null) { storeSettings.setFileStoreFolder(new File(props.getFileStoreFolder())); } if (props.getInmemoryCacheSize() != null) { storeSettings.setInmemoryCacheSize(props.getInmemoryCacheSize()); } storeSettings.setMaxSizePerSession(TypeParser.parse(props.getSessionSize(), props.getSessionUnit())); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
@Override public void init(WebApplication webApplication) { StoreSettings storeSettings = webApplication.getStoreSettings(); if (props.getAsynchronous() != null) { storeSettings.setAsynchronous(props.getAsynchronous()); } if (props.getAsynchronousQueueCapacity() != null) { storeSettings.setAsynchronousQueueCapacity(props.getAsynchronousQueueCapacity()); } if (props.getFileStoreFolder() != null) { storeSettings.setFileStoreFolder(new File(props.getFileStoreFolder())); } if (props.getInmemoryCacheSize() != null) { storeSettings.setInmemoryCacheSize(props.getInmemoryCacheSize()); } storeSettings.setMaxSizePerSession(TypeParser.parse(props.getSessionSize(), props.getSessionUnit())); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }