1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.config.supplier;
17
18 import java.util.Properties;
19
20 import org.kuali.common.util.project.ProjectService;
21 import org.kuali.common.util.project.model.Project;
22 import org.springframework.util.Assert;
23
24
25
26
27 @Deprecated
28 public class ProjectPropertiesSupplier implements PropertiesSupplier {
29
30 ProjectService service;
31 String groupId;
32 String artifactId;
33
34 @Override
35 public Properties getProperties() {
36
37 Assert.hasText(groupId, "groupId has no text");
38 Assert.hasText(artifactId, "artifactId has no text");
39 Assert.notNull(service, "service is null");
40
41 Project project = service.getProject(groupId, artifactId);
42 return project.getProperties();
43 }
44
45 public String getGroupId() {
46 return groupId;
47 }
48
49 public void setGroupId(String groupId) {
50 this.groupId = groupId;
51 }
52
53 public String getArtifactId() {
54 return artifactId;
55 }
56
57 public void setArtifactId(String artifactId) {
58 this.artifactId = artifactId;
59 }
60
61 public ProjectService getService() {
62 return service;
63 }
64
65 public void setService(ProjectService service) {
66 this.service = service;
67 }
68
69 }