Package org.jclouds.ohai.config
Class OhaiModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.ohai.config.OhaiModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
JMXOhaiModule
public class OhaiModule extends com.google.inject.AbstractModule
Wires the components needed to parse ohai data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OhaiModule.CurrentUserProvider
static class
OhaiModule.OhaiTimeProvider
static class
OhaiModule.PlatformProvider
static class
OhaiModule.PlatformVersionProvider
static class
OhaiModule.SystemPropertiesProvider
static class
OhaiModule.SystemPropertyProvider
-
Constructor Summary
Constructors Constructor Description OhaiModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.inject.multibindings.MapBinder<String,com.google.common.base.Supplier<JsonBall>>
bindOhai()
protected void
configure()
protected com.google.common.base.Supplier<Map<String,JsonBall>>
guiceProvideAutomatic(AutomaticSupplier in)
protected Long
millis()
protected com.google.common.base.Supplier<Map<String,JsonBall>>
provideAutomatic(AutomaticSupplier in)
protected Long
provideMillis()
protected Properties
provideSystemProperties()
protected Properties
systemProperties()
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
guiceProvideAutomatic
@Provides protected final com.google.common.base.Supplier<Map<String,JsonBall>> guiceProvideAutomatic(AutomaticSupplier in)
-
provideAutomatic
protected com.google.common.base.Supplier<Map<String,JsonBall>> provideAutomatic(AutomaticSupplier in)
-
provideSystemProperties
@Named("systemProperties") @Provides protected final Properties provideSystemProperties()
-
systemProperties
protected Properties systemProperties()
-
bindOhai
public com.google.inject.multibindings.MapBinder<String,com.google.common.base.Supplier<JsonBall>> bindOhai()
-
provideMillis
@Provides protected final Long provideMillis()
-
millis
protected Long millis()
-
-