From d0760125c528fb41d49a7eb9d8833ded0f3b6656 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 16:24:17 +0200 Subject: [PATCH] Add stub of Sone inserter. --- .../net/pterodactylus/sone/core/SoneInserter.java | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/main/java/net/pterodactylus/sone/core/SoneInserter.java 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() { + } + +} -- 2.7.4