08-25-2009 05:34 AM
<property name="targetData">
<map>
<entry key="target1">
<map>
<entry key="root"><value>content/data1</value></entry>
<entry key="prepare">
<list>
<ref bean="prepareCallback" />
</list>
</entry>
</map>
</entry>
</map>
</property>
<bean id="prepareCallback" class="com.sample.deployment.PrepareCallback" >
<property name="fileTarget">
<ref bean="fileTarget" />
</property>
<property name="filePath">
<ref bean="filePath" />
</property>
</bean>
<bean id="fileTarget" class="com.sample.deployment.FileTarget" />
<bean id="filePath" class="com.sample.deployment.FilePath" />
public class PrepareCallback implements FSDeploymentRunnable{
public FileTarget fileTarget = null;
public Filepath filePath = null;
public void init(Deployment deployment) {
}
public void setFileTarget(FileTarget fileTarget) {
this.fileTarget = fileTarget;
}
}
FSR being an spring application,if we use PrepareCallback with default singleton scope in application context, so it will be instantiated once when the server starts or when the application context is loaded,.08-25-2009 06:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.