spring beans
This commit is contained in:
parent
d2998b4a8a
commit
ab3964043d
|
@ -38,15 +38,13 @@ public class WfExecutorApplication extends AbstractDnetApp {
|
|||
}
|
||||
|
||||
@Bean
|
||||
public XsltTransformFactory xsltTransformFactory() {
|
||||
return new XsltTransformFactory(dnetServiceClientFactory().getClient(SimpleResourceClient.class),
|
||||
public XsltTransformFactory xsltTransformFactory(final DnetServiceClientFactory clientFactory) {
|
||||
return new XsltTransformFactory(clientFactory.getClient(SimpleResourceClient.class),
|
||||
xsltFunctions != null ? xsltFunctions : new ArrayList<>());
|
||||
}
|
||||
|
||||
@Bean
|
||||
public CleanerFactory cleanerFactory() {
|
||||
final DnetServiceClientFactory clientFactory = dnetServiceClientFactory();
|
||||
|
||||
public CleanerFactory cleanerFactory(final DnetServiceClientFactory clientFactory) {
|
||||
return new CleanerFactory(clientFactory.getClient(SimpleResourceClient.class), clientFactory.getClient(VocabularyClient.class));
|
||||
}
|
||||
|
||||
|
|
|
@ -38,14 +38,14 @@ public class WfManagerApplication extends AbstractDnetApp {
|
|||
}
|
||||
|
||||
@Bean
|
||||
public XsltTransformFactory xsltTransformFactory() {
|
||||
return new XsltTransformFactory(dnetServiceClientFactory().getClient(SimpleResourceClient.class),
|
||||
public XsltTransformFactory xsltTransformFactory(final DnetServiceClientFactory clientFactory) {
|
||||
return new XsltTransformFactory(clientFactory.getClient(SimpleResourceClient.class),
|
||||
xsltFunctions != null ? xsltFunctions : new ArrayList<>());
|
||||
}
|
||||
|
||||
@Bean
|
||||
public CleanerFactory cleanerFactory() {
|
||||
final DnetServiceClientFactory clientFactory = dnetServiceClientFactory();
|
||||
public CleanerFactory cleanerFactory(final DnetServiceClientFactory clientFactory) {
|
||||
return new CleanerFactory(clientFactory.getClient(SimpleResourceClient.class), clientFactory.getClient(VocabularyClient.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue