mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-23 14:37:56 +01:00
More classes to annotation.
This commit is contained in:
parent
8ec7c4edea
commit
50e4a68d28
@ -29,7 +29,7 @@ import org.springframework.stereotype.Repository;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Repository("labelManager")
|
||||||
public class LabelManagerImpl
|
public class LabelManagerImpl
|
||||||
implements LabelManager {
|
implements LabelManager {
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -34,7 +34,7 @@ import org.springframework.stereotype.Repository;
|
|||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Repository("mindmapManager")
|
||||||
public class MindmapManagerImpl
|
public class MindmapManagerImpl
|
||||||
implements MindmapManager {
|
implements MindmapManager {
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -28,6 +28,7 @@ import org.hibernate.SessionFactory;
|
|||||||
import org.hibernate.query.SelectionQuery;
|
import org.hibernate.query.SelectionQuery;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@ -38,9 +39,10 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
|||||||
@Repository
|
@Repository
|
||||||
public class UserManagerImpl
|
public class UserManagerImpl
|
||||||
implements UserManager {
|
implements UserManager {
|
||||||
@Resource
|
@Autowired
|
||||||
private SessionFactory sessionFactory;
|
private SessionFactory sessionFactory;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
private PasswordEncoder passwordEncoder;
|
private PasswordEncoder passwordEncoder;
|
||||||
|
|
||||||
public void setEncoder(PasswordEncoder passwordEncoder) {
|
public void setEncoder(PasswordEncoder passwordEncoder) {
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
/WEB-INF/wisemapping-datasource.xml
|
/WEB-INF/wisemapping-datasource.xml
|
||||||
/WEB-INF/wisemapping-dao.xml
|
/WEB-INF/wisemapping-dao.xml
|
||||||
/WEB-INF/wisemapping-service.xml
|
/WEB-INF/wisemapping-service.xml
|
||||||
/WEB-INF/wisemapping-model.xml
|
|
||||||
/WEB-INF/wisemapping-servlet.xml
|
/WEB-INF/wisemapping-servlet.xml
|
||||||
</param-value>
|
</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans
|
|
||||||
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
||||||
<beans>
|
|
||||||
<bean id="userManager" class="com.wisemapping.dao.UserManagerImpl">
|
|
||||||
<property name="encoder" ref="passwordEncoder"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="mindmapManager" class="com.wisemapping.dao.MindmapManagerImpl"/>
|
|
||||||
|
|
||||||
<bean id="labelManager" class="com.wisemapping.dao.LabelManagerImpl"/>
|
|
||||||
|
|
||||||
</beans>
|
|
||||||
</beans>
|
|
Loading…
Reference in New Issue
Block a user