From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 14:24:17 +0000 (+0200) Subject: Add stub of Sone inserter. X-Git-Tag: 0.1-RC1~462 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d0760125c528fb41d49a7eb9d8833ded0f3b6656;p=Sone.git Add stub of Sone inserter. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java new file mode 100644 index 0000000..75fda7c --- /dev/null +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -0,0 +1,55 @@ +/* + * FreenetSone - SoneInserter.java - Copyright © 2010 David Roden + * + * 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 . + */ + +package net.pterodactylus.sone.core; + +import net.pterodactylus.sone.data.Sone; +import net.pterodactylus.util.service.AbstractService; + +/** + * A Sone inserter is responsible for inserting a Sone if it has changed. + * + * @author David ‘Bombe’ Roden + */ +public class SoneInserter extends AbstractService { + + /** The Sone to insert. */ + private final Sone sone; + + /** + * Creates a new Sone inserter. + * + * @param sone + * The Sone to insert + */ + public SoneInserter(Sone sone) { + super("Sone Inserter for “" + sone.getName() + "”"); + this.sone = sone; + } + + // + // SERVICE METHODS + // + + /** + * {@inheritDoc} + */ + @Override + protected void serviceRun() { + } + +}