de.akquinet.jbosscc.guttenbase.hints.impl.DefaultZipExporterClassResourcesHint Maven / Gradle / Ivy
package de.akquinet.jbosscc.guttenbase.hints.impl;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import de.akquinet.jbosscc.guttenbase.export.zip.ZipExporterClassResources;
import de.akquinet.jbosscc.guttenbase.export.zip.ZipStartup;
import de.akquinet.jbosscc.guttenbase.hints.ZipExporterClassResourcesHint;
/**
* By default use the {@link ZipStartup} class as the main class of the JAR. Adds all GuttenBase and log4j classes to the JAR.
*
*
* © 2012 akquinet tech@spree
*
*
* @author M. Dahm
*/
public class DefaultZipExporterClassResourcesHint extends ZipExporterClassResourcesHint {
@Override
public ZipExporterClassResources getValue() {
return new ZipExporterClassResources() {
@Override
public Class> getStartupClass() {
return ZipStartup.class;
}
@Override
public List> getClassResources() {
final List> classes = new ArrayList>();
classes.add(getStartupClass());
classes.add(Logger.class);
return classes;
}
};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy