org.jclouds.cloudsigma.compute.functions
Class ParseOsFamilyVersion64BitFromImageName

java.lang.Object
  extended by org.jclouds.cloudsigma.compute.functions.ParseOsFamilyVersion64BitFromImageName
All Implemented Interfaces:
com.google.common.base.Function<String,OsFamilyVersion64Bit>

@Singleton
public class ParseOsFamilyVersion64BitFromImageName
extends Object
implements com.google.common.base.Function<String,OsFamilyVersion64Bit>

Defaults to version null and 64bit, if the operating system is unrecognized and the pattern "32bit" isn't in the string.

Author:
Adrian Cole

Field Summary
static Pattern PATTERN
           
 
Constructor Summary
ParseOsFamilyVersion64BitFromImageName(Map<OsFamily,Map<String,String>> osVersionMap)
           
 
Method Summary
 OsFamilyVersion64Bit apply(String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

PATTERN

public static final Pattern PATTERN
Constructor Detail

ParseOsFamilyVersion64BitFromImageName

@Inject
public ParseOsFamilyVersion64BitFromImageName(Map<OsFamily,Map<String,String>> osVersionMap)
Method Detail

apply

public OsFamilyVersion64Bit apply(String input)
Specified by:
apply in interface com.google.common.base.Function<String,OsFamilyVersion64Bit>


Copyright © 2009-2012 jclouds. All Rights Reserved.