From: David ‘Bombe’ Roden Date: Fri, 25 Jan 2013 18:18:43 +0000 (+0100) Subject: Make constructor injectable. X-Git-Tag: 0.8.5^2~3^2~54 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=58b03da8dc5b087b72058278339c6f85d1e54726;p=Sone.git Make constructor injectable. --- diff --git a/src/main/java/net/pterodactylus/sone/data/impl/DefaultPostBuilderFactory.java b/src/main/java/net/pterodactylus/sone/data/impl/DefaultPostBuilderFactory.java index 25f6a86..cf32640 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/DefaultPostBuilderFactory.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/DefaultPostBuilderFactory.java @@ -17,6 +17,8 @@ package net.pterodactylus.sone.data.impl; +import com.google.inject.Inject; + import net.pterodactylus.sone.core.SoneProvider; import net.pterodactylus.sone.data.PostBuilder; import net.pterodactylus.sone.data.PostBuilderFactory; @@ -38,6 +40,7 @@ public class DefaultPostBuilderFactory implements PostBuilderFactory { * @param soneProvider * The Sone provider */ + @Inject public DefaultPostBuilderFactory(SoneProvider soneProvider) { this.soneProvider = soneProvider; }