Add method to expose a Sone loader.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / SoneProvider.java
index 993804f..b944ab8 100644 (file)
@@ -21,6 +21,7 @@ import java.util.Collection;
 
 import net.pterodactylus.sone.data.Sone;
 
+import com.google.common.base.Function;
 import com.google.common.base.Optional;
 
 /**
@@ -30,6 +31,8 @@ import com.google.common.base.Optional;
  */
 public interface SoneProvider {
 
+       Function<String, Optional<Sone>> getSone();
+
        /**
         * Returns the Sone with the given ID, or {@link Optional#absent()} if it
         * does not exist.