org.terracotta.maven.plugins.tc
Class ProcessConfigurationConverter

java.lang.Object
  extended by org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
      extended by org.terracotta.maven.plugins.tc.ProcessConfigurationConverter
All Implemented Interfaces:
org.codehaus.plexus.component.configurator.converters.ConfigurationConverter

public class ProcessConfigurationConverter
extends org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter

Convert process configuration.

 <processes>
   <process tcMode="express|custom" nodeName="master" count="1" jvmargs="-Xmx20m"
     <className>org.terracotta.maven.plugins.tc.test.MasterProcess</className>
   </process>         
   <process tcMode="express|custom" nodeName="sample" count="2" jvmargs="-Xmx20m"
            className="org.terracotta.maven.plugins.tc.test.SampleProcess">
     <systemProperty key="foo" value="boo"/>       
   </process>         
   <process tcMode="express|custom" nodeName="tomcat" count="2" jvmargs="-Xmx20m">
     <container>
       <containerId>tomcat5x</containerId>
       <zipUrlInstaller>
         <url>http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip</url>
         <installDir>${project.build.directory}/install/tomcat5x</installDir>
       </zipUrlInstaller>
     </container>
   </process>         
 </processes>
 

Author:
Eugene Kuleshov

Constructor Summary
ProcessConfigurationConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class type)
           
 java.lang.Object fromConfiguration(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup converterLookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator expressionEvaluator, org.codehaus.plexus.component.configurator.ConfigurationListener listener)
           
 
Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessConfigurationConverter

public ProcessConfigurationConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)

fromConfiguration

public java.lang.Object fromConfiguration(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup converterLookup,
                                          org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                          java.lang.Class type,
                                          java.lang.Class baseType,
                                          java.lang.ClassLoader classLoader,
                                          org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator expressionEvaluator,
                                          org.codehaus.plexus.component.configurator.ConfigurationListener listener)
                                   throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.