ItEr20S04ArquitecturaServidorItEr19S04: Erasing PlannerDAORegistry since it's not used.
This commit is contained in:
parent
efaaccd102
commit
db7a75fbb0
2 changed files with 0 additions and 39 deletions
|
|
@ -1,30 +0,0 @@
|
|||
package org.navalplanner.business.planner.daos;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* A registry of Planner DAOs. Classes in which dependency injection (DI) is
|
||||
* not directly supported by Spring (e.g. entities) must use this class to
|
||||
* access resource DAOs. For the rest of classes (e.g. services, tests, etc.),
|
||||
* Spring DI is a more convenient option.
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
|
||||
public class PlannerDAORegistry {
|
||||
|
||||
private static PlannerDAORegistry instance = new PlannerDAORegistry();
|
||||
|
||||
@Autowired
|
||||
private ITaskElementDAO taskElement;
|
||||
|
||||
private PlannerDAORegistry() {
|
||||
}
|
||||
|
||||
public static PlannerDAORegistry getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static ITaskElementDAO getTaskElementDao() {
|
||||
return getInstance().taskElement;
|
||||
}
|
||||
}
|
||||
|
|
@ -62,15 +62,6 @@
|
|||
|
||||
<context:component-scan base-package="org.navalplanner.business" />
|
||||
|
||||
<!--
|
||||
DAO registries (to be used from non-Spring managed objects (e.g.
|
||||
entities)
|
||||
-->
|
||||
|
||||
<bean id="plannerDaoRegistry"
|
||||
class="org.navalplanner.business.planner.daos.PlannerDAORegistry"
|
||||
factory-method="getInstance" />
|
||||
|
||||
<bean id="registry"
|
||||
class="org.navalplanner.business.common.Registry"
|
||||
factory-method="getInstance" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue