|
@@ -22,7 +22,6 @@
|
22
|
22
|
|
23
|
23
|
package com.dmdirc.addons.audio;
|
24
|
24
|
|
25
|
|
-import com.dmdirc.interfaces.CommandController;
|
26
|
25
|
import com.dmdirc.plugins.PluginInfo;
|
27
|
26
|
import com.dmdirc.plugins.implementations.BaseCommandPlugin;
|
28
|
27
|
|
|
@@ -33,24 +32,14 @@ import dagger.ObjectGraph;
|
33
|
32
|
*/
|
34
|
33
|
public class AudioPlugin extends BaseCommandPlugin {
|
35
|
34
|
|
36
|
|
- /**
|
37
|
|
- * Creates a new instance of this plugin.
|
38
|
|
- *
|
39
|
|
- * @param commandController Command controller to register commands
|
40
|
|
- */
|
41
|
|
- public AudioPlugin(final CommandController commandController) {
|
42
|
|
- super(commandController);
|
43
|
|
- }
|
44
|
|
-
|
45
|
35
|
/** {@inheritDoc} */
|
46
|
36
|
@Override
|
47
|
37
|
public void load(final PluginInfo pluginInfo, final ObjectGraph graph) {
|
48
|
38
|
super.load(pluginInfo, graph);
|
49
|
39
|
|
50
|
|
- final ObjectGraph myGraph = graph.plus(new AudioPluginModule());
|
51
|
|
- registerCommand(myGraph.get(AudioCommand.class), AudioCommand.INFO);
|
52
|
|
- registerCommand(myGraph.get(BeepCommand.class), BeepCommand.INFO);
|
53
|
|
- setObjectGraph(myGraph);
|
|
40
|
+ setObjectGraph(graph.plus(new AudioPluginModule()));
|
|
41
|
+ registerCommand(AudioCommand.class, AudioCommand.INFO);
|
|
42
|
+ registerCommand(BeepCommand.class, BeepCommand.INFO);
|
54
|
43
|
}
|
55
|
44
|
|
56
|
45
|
}
|