// Path: src/main/java/com/proofpoint/cloudmanagement/service/inventoryclient/InventoryClientModule.java
// public class InventoryClientModule
//         implements Module
// {
//     public void configure(Binder binder)
//     {
//         binder.requireExplicitBindings();
//         binder.disableCircularProxies();
// 
//         ConfigurationModule.bindConfig(binder).to(InventoryClientConfig.class);
//         ConfigurationModule.bindConfig(binder).to(HttpClientConfig.class);
//         binder.bind(InventoryClient.class).in(Scopes.SINGLETON);
// 
//         binder.bind(DnsManager.class).to(InventoryDnsManager.class).in(Scopes.SINGLETON);
//         binder.bind(TagManager.class).to(InventoryTagManager.class).in(Scopes.SINGLETON);
// 
//         Multibinder<InstanceCreationNotifier> instanceCreationNotifierMultibinder = Multibinder.newSetBinder(binder, InstanceCreationNotifier.class);
//         instanceCreationNotifierMultibinder.addBinding().to(InventoryClient.class).in(Scopes.SINGLETON);
// 
//         HttpClientBinder.httpClientBinder(binder).bindHttpClient("inventory", Inventory.class);
//     }
// }


import org.weakref.jmx.guice.MBeanModule;
import com.google.inject.Injector;
import com.proofpoint.bootstrap.Bootstrap;
import com.proofpoint.cloudmanagement.service.inventoryclient.InventoryClientModule;
import com.proofpoint.discovery.client.Announcer;
import com.proofpoint.discovery.client.DiscoveryModule;
import com.proofpoint.event.client.NullEventModule;
import com.proofpoint.http.server.HttpServerModule;
import com.proofpoint.jaxrs.JaxrsModule;
import com.proofpoint.jmx.JmxModule;
import com.proofpoint.jmx.http.rpc.JmxHttpRpcModule;
import com.proofpoint.json.JsonModule;
import com.proofpoint.log.LogJmxModule;
import com.proofpoint.log.Logger;
import com.proofpoint.node.NodeModule;
import com.proofpoint.tracetoken.TraceTokenModule;
/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * 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 com.proofpoint.cloudmanagement.service;


public class Main
{
    private final static Logger log = Logger.get(Main.class);

    public static void main(String[] args)
            throws Exception
    {
        Bootstrap app = new Bootstrap(
                new NodeModule(),
                new DiscoveryModule(),
                new HttpServerModule(),
                new JsonModule(),
                new JaxrsModule(),
                new MBeanModule(),
                new JmxModule(),
                new JmxHttpRpcModule(),
                new LogJmxModule(),
                new TraceTokenModule(),
                new NullEventModule(),
// Path: src/main/java/com/proofpoint/cloudmanagement/service/inventoryclient/InventoryClientModule.java
// public class InventoryClientModule
//         implements Module
// {
//     public void configure(Binder binder)
//     {
//         binder.requireExplicitBindings();
//         binder.disableCircularProxies();
// 
//         ConfigurationModule.bindConfig(binder).to(InventoryClientConfig.class);
//         ConfigurationModule.bindConfig(binder).to(HttpClientConfig.class);
//         binder.bind(InventoryClient.class).in(Scopes.SINGLETON);
// 
//         binder.bind(DnsManager.class).to(InventoryDnsManager.class).in(Scopes.SINGLETON);
//         binder.bind(TagManager.class).to(InventoryTagManager.class).in(Scopes.SINGLETON);
// 
//         Multibinder<InstanceCreationNotifier> instanceCreationNotifierMultibinder = Multibinder.newSetBinder(binder, InstanceCreationNotifier.class);
//         instanceCreationNotifierMultibinder.addBinding().to(InventoryClient.class).in(Scopes.SINGLETON);
// 
//         HttpClientBinder.httpClientBinder(binder).bindHttpClient("inventory", Inventory.class);
//     }
// }


// Path: src/main/java/com/proofpoint/cloudmanagement/service/Main.java
import org.weakref.jmx.guice.MBeanModule;
import com.google.inject.Injector;
import com.proofpoint.bootstrap.Bootstrap;
import com.proofpoint.cloudmanagement.service.inventoryclient.InventoryClientModule;
import com.proofpoint.discovery.client.Announcer;
import com.proofpoint.discovery.client.DiscoveryModule;
import com.proofpoint.event.client.NullEventModule;
import com.proofpoint.http.server.HttpServerModule;
import com.proofpoint.jaxrs.JaxrsModule;
import com.proofpoint.jmx.JmxModule;
import com.proofpoint.jmx.http.rpc.JmxHttpRpcModule;
import com.proofpoint.json.JsonModule;
import com.proofpoint.log.LogJmxModule;
import com.proofpoint.log.Logger;
import com.proofpoint.node.NodeModule;
import com.proofpoint.tracetoken.TraceTokenModule;

/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * 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 com.proofpoint.cloudmanagement.service;


public class Main
{
    private final static Logger log = Logger.get(Main.class);

    public static void main(String[] args)
            throws Exception
    {
        Bootstrap app = new Bootstrap(
                new NodeModule(),
                new DiscoveryModule(),
                new HttpServerModule(),
                new JsonModule(),
                new JaxrsModule(),
                new MBeanModule(),
                new JmxModule(),
                new JmxHttpRpcModule(),
                new LogJmxModule(),
                new TraceTokenModule(),
                new NullEventModule(),
                ConditionalModule.installIfPropertyEquals(new InventoryClientModule(), "cloud-management.manager", "Inventory"),