This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added missing services
fixed retrieving of csv resources
- Loading branch information
mgeiss
committed
Aug 15, 2017
1 parent
59a4abf
commit f536d56
Showing
5 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/io/mifos/dev/listener/DepositAccountManagementListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright 2017 The Mifos Initiative. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.mifos.dev.listener; | ||
|
||
import io.mifos.core.lang.config.TenantHeaderFilter; | ||
import io.mifos.core.test.listener.EventRecorder; | ||
import io.mifos.deposit.api.v1.EventConstants; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.jms.annotation.JmsListener; | ||
import org.springframework.messaging.handler.annotation.Header; | ||
import org.springframework.stereotype.Component; | ||
|
||
@SuppressWarnings("unused") | ||
@Component | ||
public class DepositAccountManagementListener { | ||
|
||
private final EventRecorder eventRecorder; | ||
|
||
@Autowired | ||
public DepositAccountManagementListener(final EventRecorder eventRecorder) { | ||
this.eventRecorder = eventRecorder; | ||
} | ||
|
||
@JmsListener( | ||
subscription = EventConstants.DESTINATION, | ||
destination = EventConstants.DESTINATION, | ||
selector = EventConstants.SELECTOR_INITIALIZE | ||
) | ||
public void onInitialized(@Header(TenantHeaderFilter.TENANT_HEADER) final String tenant, | ||
final String payload) { | ||
this.eventRecorder.event(tenant, EventConstants.INITIALIZE, payload, String.class); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/io/mifos/dev/listener/ReportingListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright 2017 The Mifos Initiative. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.mifos.dev.listener; | ||
|
||
import io.mifos.core.lang.config.TenantHeaderFilter; | ||
import io.mifos.core.test.listener.EventRecorder; | ||
import io.mifos.reporting.api.v1.EventConstants; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.jms.annotation.JmsListener; | ||
import org.springframework.messaging.handler.annotation.Header; | ||
import org.springframework.stereotype.Component; | ||
|
||
@SuppressWarnings("unused") | ||
@Component | ||
public class ReportingListener { | ||
|
||
private final EventRecorder eventRecorder; | ||
|
||
@Autowired | ||
public ReportingListener(final EventRecorder eventRecorder) { | ||
this.eventRecorder = eventRecorder; | ||
} | ||
|
||
@JmsListener( | ||
subscription = EventConstants.DESTINATION, | ||
destination = EventConstants.DESTINATION, | ||
selector = EventConstants.SELECTOR_INITIALIZE | ||
) | ||
public void onInitialized(@Header(TenantHeaderFilter.TENANT_HEADER) final String tenant, | ||
final String payload) { | ||
this.eventRecorder.event(tenant, EventConstants.INITIALIZE, payload, String.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright 2017 The Mifos Initiative. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.mifos.dev.listener; | ||
|
||
import io.mifos.core.lang.config.TenantHeaderFilter; | ||
import io.mifos.core.test.listener.EventRecorder; | ||
import io.mifos.teller.api.v1.EventConstants; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.jms.annotation.JmsListener; | ||
import org.springframework.messaging.handler.annotation.Header; | ||
import org.springframework.stereotype.Component; | ||
|
||
@SuppressWarnings("unused") | ||
@Component | ||
public class TellerListener { | ||
|
||
private final EventRecorder eventRecorder; | ||
|
||
@Autowired | ||
public TellerListener(final EventRecorder eventRecorder) { | ||
this.eventRecorder = eventRecorder; | ||
} | ||
|
||
@JmsListener( | ||
subscription = EventConstants.DESTINATION, | ||
destination = EventConstants.DESTINATION, | ||
selector = EventConstants.SELECTOR_INITIALIZE | ||
) | ||
public void onInitialized(@Header(TenantHeaderFilter.TENANT_HEADER) final String tenant, | ||
final String payload) { | ||
this.eventRecorder.event(tenant, EventConstants.INITIALIZE, payload, String.class); | ||
} | ||
} |