title: How to pass Endpoint parameter to Endpoint defined as bean in Spring context
body: <p>I have camel Fileendpoint defined in following way:</p>
  
  <pre><code>&lt;bean id="hotfolderEndpoint" 
            class="org.apache.camel.component.file.FileEndpoint"
            factory-bean="camel" 
            factory-method="getEndpoint"&gt;       
          &lt;constructor-arg ref="hotfolder" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I want to define some File parameters such as preMove, move etc.
  Variable hotfolder is String taken from JNDI and I have no impact on it. 
  When I define property as </p>
  
  <pre><code>&lt;bean id="moveExp" class="org.apache.camel.model.language.SimpleExpression"&gt;
   &lt;property name="expression" value="done/${file:name}"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>it is not correctly parsed and the file get name done/name</p>