CustomAppConfiguration.java
/*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
package org.eclipse.rdf4j.federated.server;
import java.io.IOException;
import org.eclipse.rdf4j.common.app.AppConfiguration;
import org.eclipse.rdf4j.common.app.logging.base.AbstractLogConfiguration;
import org.eclipse.rdf4j.common.logging.LogReader;
/**
* A bean for configuring the RDF4J Http Server webapp. Makes sure to initialize the logging framework properly.
*
* See <i>build/test/rdf4j-server/WEB-INF/rdf4j-http-server-servlet.xml</i>
*
* @author andreas.schwarte
*
*/
public class CustomAppConfiguration extends AppConfiguration {
@Override
public void load() throws IOException {
super.load();
getProperties().put("feature.logging.impl",
"org.eclipse.rdf4j.federated.server.CustomAppConfiguration$FedXLoggingConfiguration");
}
public static class FedXLoggingConfiguration extends AbstractLogConfiguration {
public FedXLoggingConfiguration() throws IOException {
super();
}
@Override
public LogReader getLogReader(String appender) {
return null;
}
@Override
public LogReader getDefaultLogReader() {
return null;
}
@Override
public void init() {
}
@Override
public void load() {
}
@Override
public void save() {
}
@Override
public void destroy() {
}
}
}