Changeset 1321


Ignore:
Timestamp:
05/16/11 15:26:25 (13 years ago)
Author:
twagoo
Message:

Fixed Jersey/Spring? with config

Location:
ComponentRegistry/trunk/ComponentRegistry/src/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java

    r1282 r1321  
    4242import clarin.cmdi.componentregistry.model.ProfileDescription;
    4343import clarin.cmdi.componentregistry.model.RegisterResponse;
     44import com.sun.jersey.api.spring.Autowire;
    4445
    4546import com.sun.jersey.multipart.FormDataParam;
     
    4748
    4849@Path("/registry")
     50@Autowire
    4951public class ComponentRegistryRestService {
    5052
     
    511513        }
    512514    }
     515
     516    /**
     517     * @param componentRegistryFactory the componentRegistryFactory to set
     518     */
     519    public void setComponentRegistryFactory(ComponentRegistryFactory componentRegistryFactory) {
     520        this.componentRegistryFactory = componentRegistryFactory;
     521    }
    513522}
  • ComponentRegistry/trunk/ComponentRegistry/src/main/webresources/WEB-INF/applicationContext.xml

    r1279 r1321  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    3   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
     3        xmlns:context="http://www.springframework.org/schema/context"
     4        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     5                           http://www.springframework.org/schema/context
     6                           http://www.springframework.org/schema/context/spring-context-2.5.xsd">
     7
     8    <context:annotation-config />
    49
    510    <import resource="spring-config/component-registry.xml"/>
    6     <import resource="spring-config/filesystem-impl.xml"/>
     11<!--    <import resource="spring-config/filesystem-impl.xml"/>-->
     12    <import resource="spring-config/database-impl.xml"/>
    713
    814</beans>
Note: See TracChangeset for help on using the changeset viewer.