@Override
	protected void configure() {
		final SerializerConfig sc = new SerializerConfig();
		sc.setTypeClass(SpaceID.class);
		sc.setImplementation(new SpaceIDSerializer());

		final SerializerConfig sc2 = new SerializerConfig();
		sc2.setTypeClass(Address.class);
		sc2.setImplementation(new AddressSerializer());

		final Config hazelcastConfig = new Config();
		hazelcastConfig.getSerializationConfig().addSerializerConfig(sc);
		hazelcastConfig.getSerializationConfig().addSerializerConfig(sc2);

		bind(Config.class).toInstance(hazelcastConfig);

		// Ensure the system property for the hazelcast logger factory
		final String factory = JanusConfig.getSystemProperty(JanusConfig.HAZELCAST_LOGGER_FACTORY_NAME,
				JanusConfig.HAZELCAST_LOGGER_FACTORY_VALUE);
		assert factory != null && !factory.isEmpty();
		System.setProperty(JanusConfig.HAZELCAST_LOGGER_FACTORY_NAME, factory);

		// Bind the infrastructure service dedicated to Hazelcast
		final Multibinder<Service> serviceSetBinder = Multibinder.newSetBinder(binder(), Service.class);
		serviceSetBinder.addBinding().to(HazelcastInfrastructureService.class).in(Singleton.class);

		// Bind the services based on Hazelcast
		bind(DistributedDataStructureService.class).to(HazelcastDistributedDataStructureService.class).in(Singleton.class);
		bind(KernelDiscoveryService.class).to(HazelcastKernelDiscoveryService.class).in(Singleton.class);
	}
@ Override protected void configure ( ) { final SerializerConfig sc = new SerializerConfig ( ) ; sc . setTypeClass ( SpaceID . class ) ; sc . setImplementation ( new SpaceIDSerializer ( ) ) ; final SerializerConfig sc2 = new SerializerConfig ( ) ; sc2 . setTypeClass ( Address . class ) ; sc2 . setImplementation ( new AddressSerializer ( ) ) ; final Config hazelcastConfig = new Config ( ) ; hazelcastConfig . getSerializationConfig ( ) . addSerializerConfig ( sc ) ; hazelcastConfig . getSerializationConfig ( ) . addSerializerConfig ( sc2 ) ; bind ( Config . class ) . toInstance ( hazelcastConfig ) ; final String factory = JanusConfig . getSystemProperty ( JanusConfig . HAZELCAST_LOGGER_FACTORY_NAME , JanusConfig . HAZELCAST_LOGGER_FACTORY_VALUE ) ; assert factory != null && ! factory . isEmpty ( ) ; System . setProperty ( JanusConfig . HAZELCAST_LOGGER_FACTORY_NAME , factory ) ; final Multibinder < Service > serviceSetBinder = Multibinder . newSetBinder ( binder ( ) , Service . class ) ; serviceSetBinder . addBinding ( ) . to ( HazelcastInfrastructureService . class ) . in ( Singleton . class ) ; bind ( DistributedDataStructureService . class ) . to ( HazelcastDistributedDataStructureService . class ) . in ( Singleton . class ) ; bind ( KernelDiscoveryService . class ) . to ( HazelcastKernelDiscoveryService . class ) . in ( Singleton . class ) ; }
$NON-NLS-1$