Updates PlaylistManager to use faster jackson XML serialization.

Removes native xml.bind serialization for improved compatibility with
 Java 9.

 Global optimize imports on the entire project.
This commit is contained in:
Denny
2017-12-21 07:18:26 -05:00
parent 47cc194415
commit ee6aeafa84
303 changed files with 3457 additions and 4687 deletions

View File

@@ -17,9 +17,9 @@
******************************************************************************/
package io.github.dsheirer.module.log;
import io.github.dsheirer.module.decode.event.CallEvent;
import io.github.dsheirer.module.decode.event.ICallEventListener;
import io.github.dsheirer.sample.Listener;
import io.github.dsheirer.module.decode.event.CallEvent;
import java.nio.file.Path;

View File

@@ -1,57 +1,59 @@
/*******************************************************************************
* SDR Trunk
* Copyright (C) 2014 Dennis Sheirer
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
******************************************************************************/
package io.github.dsheirer.module.log.config;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import io.github.dsheirer.controller.config.Configuration;
import io.github.dsheirer.module.log.EventLogType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;
@XmlRootElement( name = "event_log_configuration" )
@JsonSubTypes.Type(value = EventLogConfiguration.class, name = "eventLogConfiguration")
@JacksonXmlRootElement(localName = "event_log_configuration")
public class EventLogConfiguration extends Configuration
{
protected List<EventLogType> mLoggers = new ArrayList<EventLogType>();
protected List<EventLogType> mLoggers = new ArrayList<EventLogType>();
public EventLogConfiguration()
{
}
public EventLogConfiguration()
{
}
@XmlElement( name = "logger" )
public List<EventLogType> getLoggers()
{
return mLoggers;
}
public void setLoggers( ArrayList<EventLogType> loggers )
{
mLoggers = loggers;
}
@JacksonXmlProperty(isAttribute = false, localName = "logger")
public List<EventLogType> getLoggers()
{
return mLoggers;
}
public void addLogger( EventLogType logger )
{
mLoggers.add( logger );
}
public void clear()
{
mLoggers.clear();
}
public void setLoggers(ArrayList<EventLogType> loggers)
{
mLoggers = loggers;
}
public void addLogger(EventLogType logger)
{
mLoggers.add(logger);
}
public void clear()
{
mLoggers.clear();
}
}