/*
 * Copyright 2012-2013 Erwin Müller <erwin.mueller@deventm.org>
 *
 * This file is part of sscontrol-workers-text.
 *
 * sscontrol-workers-text is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * sscontrol-workers-text is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with sscontrol-workers-text. If not, see <http://www.gnu.org/licenses/>.
 */
package com.anrisoftware.sscontrol.workers.text.tokentemplate;

import com.anrisoftware.sscontrol.workers.api.WorkerFactory;
import com.google.inject.AbstractModule;
import com.google.inject.assistedinject.FactoryModuleBuilder;

/**
 * Installs the tokens template worker factory.
 * 
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */
public class TokensTemplateWorkerModule extends AbstractModule {

	@Override
	protected void configure() {
		install(new FactoryModuleBuilder().implement(
				TokensTemplateWorker.class, TokensTemplateWorker.class).build(
				TokensTemplateWorkerFactory.class));
		bind(WorkerFactory.class).to(TokensTemplateWorkerFactory.class);
	}
}

@@ -62,17 +62,18 @@
 .org%3E%0A *
+ 
 %0A
-
  * This 
@@ -110,24 +110,25 @@
 ers-text.%0A *
+ 
 %0A * sscontro
@@ -190,16 +190,19 @@
 t and/or
+%0A *
  modify 
@@ -203,19 +203,16 @@
 odify it
-%0A *
  under t
@@ -263,16 +263,19 @@
 cense as
+%0A *
  publish
@@ -283,19 +283,16 @@
 d by the
-%0A *
  Free So
@@ -342,16 +342,19 @@
 License,
+%0A *
  or (at 
@@ -357,19 +357,16 @@
 (at your
-%0A *
  option)
@@ -383,24 +383,25 @@
  version.%0A *
+ 
 %0A * sscontro
@@ -653,16 +653,17 @@
 ails.%0A *
+ 
 %0A * You 
@@ -780,16 +780,19 @@
 not, see
+%0A *
  %3Chttp:/
@@ -888,69 +888,8 @@
 e;%0A%0A
-import com.anrisoftware.sscontrol.workers.api.WorkerFactory;%0A
 impo
@@ -1336,16 +1336,16 @@
 .build(%0A
+
 %09%09%09%09Toke
@@ -1381,75 +1381,8 @@
 ));%0A
-%09%09bind(WorkerFactory.class).to(TokensTemplateWorkerFactory.class);%0A
 %09%7D%0A%7D

Remove factory binding, because it is already bound