mirror of
https://github.com/apache/activemq.git
synced 2025-02-23 18:44:47 +00:00
https://issues.apache.org/jira/browse/AMQ-4682 - tidy imports and format
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1516652 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b8e726eec
commit
a52c014648
@ -17,7 +17,6 @@
|
||||
package org.apache.activemq.plugin;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
@ -39,8 +38,6 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import javax.xml.validation.Schema;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
import javax.xml.validation.Validator;
|
||||
import javax.xml.validation.ValidatorHandler;
|
||||
import org.apache.activemq.broker.BrokerFilter;
|
||||
import org.apache.activemq.broker.ConnectionContext;
|
||||
import org.apache.activemq.broker.jmx.ManagementContext;
|
||||
@ -79,6 +76,7 @@ public class RuntimeConfigurationBroker extends BrokerFilter {
|
||||
private final ReentrantReadWriteLock addDestinationBarrier = new ReentrantReadWriteLock();
|
||||
private ObjectName objectName;
|
||||
private String infoString;
|
||||
private Schema schema;
|
||||
|
||||
public RuntimeConfigurationBroker(org.apache.activemq.broker.Broker next) {
|
||||
super(next);
|
||||
@ -473,12 +471,11 @@ public class RuntimeConfigurationBroker extends BrokerFilter {
|
||||
return jaxbConfig;
|
||||
}
|
||||
|
||||
private Schema schema;
|
||||
private Schema getSchema() throws SAXException {
|
||||
if (schema == null) {
|
||||
SchemaFactory schemaFactory = SchemaFactory.newInstance(
|
||||
XMLConstants.W3C_XML_SCHEMA_NS_URI);
|
||||
schema = schemaFactory.newSchema(getClass().getResource("/activemq.xsd"));
|
||||
XMLConstants.W3C_XML_SCHEMA_NS_URI);
|
||||
schema = schemaFactory.newSchema(getClass().getResource("/activemq.xsd"));
|
||||
}
|
||||
return schema;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user