org.jclouds.cloudstack.compute.functions
Class TemplateToOperatingSystem

java.lang.Object
  extended by org.jclouds.cloudstack.compute.functions.TemplateToOperatingSystem
All Implemented Interfaces:
com.google.common.base.Function<Template,OperatingSystem>

@Singleton
public class TemplateToOperatingSystem
extends Object
implements com.google.common.base.Function<Template,OperatingSystem>

Author:
Adrian Cole

Field Summary
static Pattern DEFAULT_PATTERN
           
protected  Logger logger
           
 
Constructor Summary
TemplateToOperatingSystem(com.google.common.base.Supplier<Map<Long,OSType>> osTypes, com.google.common.base.Supplier<Map<Long,String>> osCategories, Map<OsFamily,Map<String,String>> osVersionMap)
           
 
Method Summary
 OperatingSystem apply(Template from)
           
 
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

DEFAULT_PATTERN

public static final Pattern DEFAULT_PATTERN

logger

@Named(value="jclouds.compute")
protected Logger logger
Constructor Detail

TemplateToOperatingSystem

@Inject
public TemplateToOperatingSystem(com.google.common.base.Supplier<Map<Long,OSType>> osTypes,
                                        com.google.common.base.Supplier<Map<Long,String>> osCategories,
                                        Map<OsFamily,Map<String,String>> osVersionMap)
Method Detail

apply

public OperatingSystem apply(Template from)
Specified by:
apply in interface com.google.common.base.Function<Template,OperatingSystem>


Copyright © 2009-2012 jclouds. All Rights Reserved.