From 84c036b3bc6d8313b86317d752b92c417bd89d7f Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Sun, 14 Jan 2018 19:03:01 -0500 Subject: initial logging project structure Issue-ID: LOG-120 Change-Id: If96346fa4f35b81ec01aacc087f96875011e5f82 Signed-off-by: Michael O'Brien --- .../java/org/onap/logging/ApplicationService.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 reference/logging-demo/src/main/java/org/onap/logging/ApplicationService.java (limited to 'reference/logging-demo/src/main/java/org/onap/logging/ApplicationService.java') diff --git a/reference/logging-demo/src/main/java/org/onap/logging/ApplicationService.java b/reference/logging-demo/src/main/java/org/onap/logging/ApplicationService.java new file mode 100644 index 0000000..09a8afb --- /dev/null +++ b/reference/logging-demo/src/main/java/org/onap/logging/ApplicationService.java @@ -0,0 +1,34 @@ +/** + * ============LICENSE_START======================================================= + * org.onap.logging + * ================================================================================ + * Copyright © 2018 Amdocs + * All rights reserved. + * ================================================================================ + * 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. + * ============LICENSE_END========================================================= + */ +package org.onap.logging; + +import org.springframework.stereotype.Service; +@Service("daoFacade") +public class ApplicationService implements ApplicationServiceLocal { + + @Override + public Boolean health() { + Boolean health = true; + // TODO: check database + return health; + } + +} -- cgit 1.2.3-korg