Make constructor injectable.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Jan 2013 18:18:43 +0000 (19:18 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Jan 2013 18:18:43 +0000 (19:18 +0100)
src/main/java/net/pterodactylus/sone/data/impl/DefaultPostBuilderFactory.java

index 25f6a86..cf32640 100644 (file)
@@ -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;
        }