Class ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,​H,​I,​L>

  • All Implemented Interfaces:
    com.google.inject.Module
    Enclosing class:
    ComputeServiceAdapterContextModule<N,​H,​I,​L>

    public static class ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,​H,​I,​L>
    extends com.google.inject.AbstractModule
    install this, if you want to use your computeservice adapter to handle locations. Note that if you do this, you'll want to instantiate a subclass to prevent type erasure. ex.
     install(new LocationsFromComputeServiceAdapterModule<NodeMetadata, Hardware, Image, Location>() {
     });
     
    not
     install(new LocationsFromComputeServiceAdapterModule<NodeMetadata, Hardware, Image, Location>());
     
    • Constructor Detail

      • LocationsFromComputeServiceAdapterModule

        public LocationsFromComputeServiceAdapterModule()
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule