/**
 * (c) 2010 Tobias Sarnowski
 * All rights reserved.
 */
package org.onsteroids.eve.api;

import com.google.inject.Binder;
import com.google.inject.Module;
import org.onsteroids.eve.api.connector.parser.ApiCoreParserV2Module;
import org.onsteroids.eve.api.connector.http.PooledHttpApiConnectionModule;
import org.onsteroids.eve.api.connector.TranquilityModule;
import org.onsteroids.eve.api.provider.ApiServicesModule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Tobias Sarnowski
 */
public class DefaultTranquilityModule implements Module {
	private static final Logger LOG = LoggerFactory.getLogger(DefaultTranquilityModule.class);

	@Override
	public void configure(Binder binder) {
		// use the official ccp api server for the live servers
		binder.install(new TranquilityModule());

		// thread safe, pooled implementation to make high performance http calls
		binder.install(new PooledHttpApiConnectionModule());

		// parser which can handle API version 2
		binder.install(new ApiCoreParserV2Module());

		// binds all ApiServices
		binder.install(new ApiServicesModule());
	}
}

@@ -153,32 +153,95 @@
 inject.Module;%0D%0A
+import org.onsteroids.eve.api.cache.InfinispanApiCacheModule;%0D%0A
 import org.onste
@@ -1128,24 +1128,95 @@
 dule());%0D%0A%0D%0A
+%09%09// use a cache%0D%0A%09%09binder.install(new InfinispanApiCacheModule());%0D%0A%0D%0A
 %09%09// binds a

use infinispan cache by default