]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/org/argeo/slc/core/execution/ExecutionResourcesFactoryBean.java
Adapt to changes in Spring and OSGi (mostly generics)
[gpl/argeo-slc.git] / org.argeo.slc.core / src / org / argeo / slc / core / execution / ExecutionResourcesFactoryBean.java
index bf5ffef120442398ded8cad6cd052dac5228340e..0b887da5af4f2bf9f7cdd93f5e583f74924f7c80 100644 (file)
@@ -19,12 +19,12 @@ import org.springframework.beans.factory.FactoryBean;
 import org.springframework.core.io.Resource;
 import org.springframework.util.Assert;
 
-/** Workaround when execution placedholders needs to be passed.*/
-public class ExecutionResourcesFactoryBean implements FactoryBean {
+/** Workaround when execution placedholders needs to be passed. */
+public class ExecutionResourcesFactoryBean implements FactoryBean<Resource> {
        private ExecutionResources executionResources;
        private String relativePath;
 
-       public Object getObject() throws Exception {
+       public Resource getObject() throws Exception {
                Assert.notNull(executionResources, "executionResources is null");
                Assert.notNull(relativePath, "relativePath is null");
                return executionResources.getWritableResource(relativePath);