title: Call Spring init method based on condiction
body: <p>I am working 2 different processes.</p>
  
  <p>I am passing process name in JVM argument. Using that argument either of the processes should call.</p>
  
  <p>my app context XML.</p>
  
  <pre><code>&lt;bean id="propertyPlaceHolderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="locations"&gt;
              &lt;list&gt;
                  &lt;value&gt;classpath*:properties/${processJVMArg}.properties&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  &lt;bean id="splitService" class="com.split.service.SplitService" init-method="process1"&gt;&lt;!-- "based on processJVMArg JVM argument should call process1 or process2. " --&gt;
  </code></pre>
  
  <p>Is there is a way to configure more than one init method, init method should call based on conduction?</p>
  
  <p>Thanks,</p>
  
  <p>Rama</p>