Package org.jclouds.digitalocean2.config
Class DigitalOceanParserModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.digitalocean2.config.DigitalOceanParserModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class DigitalOceanParserModule extends com.google.inject.AbstractModule
Custom parser bindings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DigitalOceanParserModule.SshPublicKeyAdapter
-
Constructor Summary
Constructors Constructor Description DigitalOceanParserModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
Map<Type,Object>
provideCustomAdapterBindings(DigitalOceanParserModule.SshPublicKeyAdapter sshPublicKeyAdapter)
com.google.common.base.Function<PublicKey,String>
publicKeyToSshKey()
com.google.common.base.Function<String,PublicKey>
sshKeyToPublicKey()
-
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
-
publicKeyToSshKey
@Provides @Singleton public com.google.common.base.Function<PublicKey,String> publicKeyToSshKey()
-
sshKeyToPublicKey
@Provides @Singleton public com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey()
-
provideCustomAdapterBindings
@Provides @Singleton public Map<Type,Object> provideCustomAdapterBindings(DigitalOceanParserModule.SshPublicKeyAdapter sshPublicKeyAdapter)
-
-