/*
 * Copyright (c) 2006-2015 DMDirc Developers
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.addons.nickkeep;

import com.dmdirc.ClientModule;
import com.dmdirc.plugins.PluginDomain;
import com.dmdirc.plugins.PluginInfo;

import dagger.Module;
import dagger.Provides;

/**
 * Dagger injection module for the Nick Keep plugin
 */
@Module(injects = NickKeepModule.class, addsTo = ClientModule.class)
public class NickKeepModule {

    private final PluginInfo pluginInfo;

    public NickKeepModule(final PluginInfo pluginInfo) {
        this.pluginInfo = pluginInfo;
    }

    @Provides
    @PluginDomain(NickKeepPlugin.class)
    public String getSettingsDomain() {
        return pluginInfo.getDomain();
    }

    @Provides
    @PluginDomain(NickKeepPlugin.class)
    public PluginInfo getPluginInfo() {
        return pluginInfo;
    }
}

@@ -1194,48 +1194,8 @@
 le;%0A
-import com.dmdirc.plugins.PluginDomain;%0A
 impo
@@ -1254,32 +1254,8 @@
 ule;
-%0Aimport dagger.Provides;
 %0A%0A/*
@@ -1558,275 +1558,7 @@
    %7D
-%0A%0A    @Provides%0A    @PluginDomain(NickKeepPlugin.class)%0A    public String getSettingsDomain() %7B%0A        return pluginInfo.getDomain();%0A    %7D%0A%0A    @Provides%0A    @PluginDomain(NickKeepPlugin.class)%0A    public PluginInfo getPluginInfo() %7B%0A        return pluginInfo;%0A    %7D
 %0A%7D%0A

Fix compiling?