Project

General

Profile

« Previous | Next » 

Revision 41502854

Added by Andreas Müller over 2 years ago

cleanup

View differences:

cdmlib-print/src/main/java/eu/etaxonomy/cdm/print/LocalXMLEntityFactory.java
56 56
    private final JsonView xmlView;
57 57

  
58 58
    @Autowired
59
    private final ICdmRepository applicationConfiguration;
59
    private final ICdmRepository repository;
60 60

  
61 61
    @Autowired
62 62
    private JsonConfig jsonConfig;
......
88 88

  
89 89
    private final IProgressMonitor monitor;
90 90

  
91
    /**
92
     *
93
     * @param applicationConfiguration
94
     * @param monitor
95
     */
96 91
    protected LocalXMLEntityFactory(
97 92
            ICdmRepository applicationConfiguration,
98 93
            IProgressMonitor monitor) {
99
        this.applicationConfiguration = applicationConfiguration;
94
        this.repository = applicationConfiguration;
100 95
        this.monitor = monitor;
101 96
        this.xmlView = new JsonView();
102 97
        xmlView.setType(Type.XML);
......
104 99
        initJsonConfigs();
105 100
    }
106 101

  
107
    /**
108
     *
109
     */
110 102
    private void initControllers() {
111
    	classificationListController = (ClassificationListController) applicationConfiguration
103
    	classificationListController = (ClassificationListController) repository
112 104
    			.getBean("classificationListController");
113
    	classificationController = (ClassificationController) applicationConfiguration
105
    	classificationController = (ClassificationController) repository
114 106
    			.getBean("classificationController");
115
    	taxonNodePrintAppController = (TaxonNodePrintAppController) applicationConfiguration
107
    	taxonNodePrintAppController = (TaxonNodePrintAppController) repository
116 108
    			.getBean("taxonNodePrintAppController");
117 109

  
118
    	nameController = (NameController) applicationConfiguration
110
    	nameController = (NameController) repository
119 111
    			.getBean("nameController");
120 112

  
121
    	featureTreeListController = (TermTreeListController) applicationConfiguration
113
    	featureTreeListController = (TermTreeListController) repository
122 114
    			.getBean("featureTreeListController");
123
    	featureTreeController = (TermTreeController) applicationConfiguration
115
    	featureTreeController = (TermTreeController) repository
124 116
    			.getBean("featureTreeController");
125
    	termNodeController = (TermNodeController) applicationConfiguration
117
    	termNodeController = (TermNodeController) repository
126 118
    			.getBean("featureNodeController");
127 119

  
128
    	taxonPortalController = (TaxonPortalController) applicationConfiguration
120
    	taxonPortalController = (TaxonPortalController) repository
129 121
    			.getBean("taxonPortalController");
130 122

  
131
    	polytomousKeyNodeDtoController = (PolytomousKeyNodeDtoController) applicationConfiguration.getBean("polytomousKeyNodeDtoController");
123
    	polytomousKeyNodeDtoController = (PolytomousKeyNodeDtoController) repository.getBean("polytomousKeyNodeDtoController");
132 124
    }
133 125

  
134
    /**
135
     *
136
     */
137 126
    private void initJsonConfigs() {
138
        jsonConfig = (JsonConfig) applicationConfiguration.getBean("jsonConfig");
139
        jsonConfigPortal = (JsonConfig) applicationConfiguration
127
        jsonConfig = (JsonConfig) repository.getBean("jsonConfig");
128
        jsonConfigPortal = (JsonConfig) repository
140 129
                .getBean("jsonConfigPortal");
141 130
    }
142 131

  

Also available in: Unified diff