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,org.jclouds.compute.domain.OperatingSystem>

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

Author:
Adrian Cole

Field Summary
static Pattern DEFAULT_PATTERN
           
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
TemplateToOperatingSystem(com.google.common.base.Supplier<Map<String,OSType>> osTypes, com.google.common.base.Supplier<Map<String,String>> osCategories, Map<org.jclouds.compute.domain.OsFamily,Map<String,String>> osVersionMap)
           
 
Method Summary
 org.jclouds.compute.domain.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 org.jclouds.logging.Logger logger
Constructor Detail

TemplateToOperatingSystem

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

apply

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


Copyright © 2009-2012 jclouds. All Rights Reserved.