Revision 35486
Added by Michele Artini about 9 years ago
InformationServiceImpl.java | ||
---|---|---|
11 | 11 |
import org.apache.commons.lang.math.NumberUtils; |
12 | 12 |
import org.apache.commons.logging.Log; |
13 | 13 |
import org.apache.commons.logging.LogFactory; |
14 |
import org.springframework.beans.factory.annotation.Required; |
|
14 | 15 |
|
15 | 16 |
import com.google.common.base.Function; |
16 | 17 |
import com.google.common.collect.Iterables; |
... | ... | |
40 | 41 |
|
41 | 42 |
public class InformationServiceImpl extends AbstractBaseService implements InformationService { |
42 | 43 |
|
43 |
private static final Log log = LogFactory.getLog(InformationServiceImpl.class); |
|
44 |
@Resource |
|
45 |
private UniqueServiceLocator serviceLocator; |
|
44 | 46 |
|
45 |
@Resource |
|
46 | 47 |
private DnetSimpleDaoFactory daoFactory; |
47 |
|
|
48 |
@Resource |
|
49 | 48 |
private DatabaseUtils dbUtils; |
49 |
private HibObjectHelper hibObjectHelper; |
|
50 | 50 |
|
51 |
@Resource |
|
52 |
private UniqueServiceLocator serviceLocator; |
|
51 |
private static final Log log = LogFactory.getLog(InformationServiceImpl.class); |
|
53 | 52 |
|
54 |
@Resource |
|
55 |
private HibObjectHelper hibObjectHelper; |
|
56 |
|
|
57 | 53 |
@Override |
58 | 54 |
public String addSubscription(final Subcription subscription) throws InformationServiceException { |
59 | 55 |
final String id = "subscr-" + Hashing.md5(subscription.getServiceId() + "-" + subscription.getOperation() + "-" + subscription.getTable()); |
... | ... | |
271 | 267 |
}); |
272 | 268 |
} |
273 | 269 |
|
270 |
public DnetSimpleDaoFactory getDaoFactory() { |
|
271 |
return daoFactory; |
|
272 |
} |
|
273 |
|
|
274 |
@Required |
|
275 |
public void setDaoFactory(final DnetSimpleDaoFactory daoFactory) { |
|
276 |
this.daoFactory = daoFactory; |
|
277 |
} |
|
278 |
|
|
279 |
public DatabaseUtils getDbUtils() { |
|
280 |
return dbUtils; |
|
281 |
} |
|
282 |
|
|
283 |
@Required |
|
284 |
public void setDbUtils(final DatabaseUtils dbUtils) { |
|
285 |
this.dbUtils = dbUtils; |
|
286 |
} |
|
287 |
|
|
288 |
public HibObjectHelper getHibObjectHelper() { |
|
289 |
return hibObjectHelper; |
|
290 |
} |
|
291 |
|
|
292 |
@Required |
|
293 |
public void setHibObjectHelper(final HibObjectHelper hibObjectHelper) { |
|
294 |
this.hibObjectHelper = hibObjectHelper; |
|
295 |
} |
|
296 |
|
|
274 | 297 |
} |
Also available in: Unified diff
renamed some beans