<commit_before>/**
 * Copyright 2010 CosmoCode GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.cosmocode.palava.ipc.json.rpc;

import com.google.inject.Binder;
import com.google.inject.Module;

import de.cosmocode.palava.concurrent.BackgroundSchedulerModule;
import de.cosmocode.palava.concurrent.DefaultThreadProviderModule;
import de.cosmocode.palava.core.DefaultRegistryModule;
import de.cosmocode.palava.core.inject.TypeConverterModule;
import de.cosmocode.palava.core.lifecycle.LifecycleModule;
import de.cosmocode.palava.ipc.DefaultIpcCallFilterChainFactoryModule;
import de.cosmocode.palava.ipc.IpcEventModule;
import de.cosmocode.palava.ipc.IpcModule;
import de.cosmocode.palava.ipc.command.localvm.LocalIpcCommandExecutorModule;
import de.cosmocode.palava.ipc.session.store.IpcSessionStore;
import de.cosmocode.palava.ipc.session.store.StoreIpcSessionModule;
import de.cosmocode.palava.jmx.FakeMBeanServerModule;
import de.cosmocode.palava.store.MemoryStoreModule;
import de.cosmocode.palava.store.Store;

/**
 * Test module.
 *
 * @since 1.0
 * @author <NAME>
 */
public final class JsonRpcTestModule implements Module {

    @Override
    public void configure(Binder binder) {
        binder.install(new LifecycleModule());
        binder.install(new TypeConverterModule());
        binder.install(new DefaultRegistryModule());
        binder.install(new BackgroundSchedulerModule());
        binder.install(new DefaultThreadProviderModule());
        binder.install(new FakeMBeanServerModule());
        binder.install(new IpcModule());
        binder.install(new IpcEventModule());
        binder.install(new LocalIpcCommandExecutorModule());
        binder.install(new DefaultIpcCallFilterChainFactoryModule());
        binder.install(new StoreIpcSessionModule());
        binder.install(new MemoryStoreModule());
        binder.bind(Store.class).annotatedWith(IpcSessionStore.class).to(Store.class);
        binder.install(new JsonRpcModule());
        binder.install(new JsonRpc2Module());
    }<commit_msg>replaced deprecated module with new one<commit_after>/**
 * Copyright 2010 CosmoCode GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.cosmocode.palava.ipc.json.rpc;

import com.google.inject.Binder;
import com.google.inject.Module;

import de.cosmocode.palava.concurrent.BackgroundSchedulerModule;
import de.cosmocode.palava.concurrent.DefaultThreadProviderModule;
import de.cosmocode.palava.core.DefaultRegistryModule;
import de.cosmocode.palava.core.inject.TypeConverterModule;
import de.cosmocode.palava.core.lifecycle.LifecycleModule;
import de.cosmocode.palava.ipc.DefaultIpcCallFilterChainFactoryModule;
import de.cosmocode.palava.ipc.IpcEventModule;
import de.cosmocode.palava.ipc.IpcModule;
import de.cosmocode.palava.ipc.execvm.LocalExecutorModule;
import de.cosmocode.palava.ipc.session.store.IpcSessionStore;
import de.cosmocode.palava.ipc.session.store.StoreIpcSessionModule;
import de.cosmocode.palava.jmx.FakeMBeanServerModule;
import de.cosmocode.palava.store.MemoryStoreModule;
import de.cosmocode.palava.store.Store;

/**
 * Test module.
 *
 * @since 1.0
 * @author <NAME>
 */
public final class JsonRpcTestModule implements Module {

    @Override
    public void configure(Binder binder) {
        binder.install(new LifecycleModule());
        binder.install(new TypeConverterModule());
        binder.install(new DefaultRegistryModule());
        binder.install(new BackgroundSchedulerModule());
        binder.install(new DefaultThreadProviderModule());
        binder.install(new FakeMBeanServerModule());
        binder.install(new IpcModule());
        binder.install(new IpcEventModule());
        binder.install(new LocalExecutorModule());
        binder.install(new DefaultIpcCallFilterChainFactoryModule());
        binder.install(new StoreIpcSessionModule());
        binder.install(new MemoryStoreModule());
        binder.bind(Store.class).annotatedWith(IpcSessionStore.class).to(Store.class);
        binder.install(new JsonRpcModule());
        binder.install(new JsonRpc2Module());
    }
{'fraction_non_alphanumeric': 0.09966712355590367, 'fraction_numerical': 0.004307812805952614, 'mean_word_length': 4.54614549402823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3634458', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1507, 'n_words': 331}