diff options
Diffstat (limited to 'examples/bundles/com.mycorp.examples.timeservice.consumer.ds/src/com/mycorp/examples/timeservice/consumer/ds/TimeServiceComponent.java')
-rw-r--r-- | examples/bundles/com.mycorp.examples.timeservice.consumer.ds/src/com/mycorp/examples/timeservice/consumer/ds/TimeServiceComponent.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/bundles/com.mycorp.examples.timeservice.consumer.ds/src/com/mycorp/examples/timeservice/consumer/ds/TimeServiceComponent.java b/examples/bundles/com.mycorp.examples.timeservice.consumer.ds/src/com/mycorp/examples/timeservice/consumer/ds/TimeServiceComponent.java new file mode 100644 index 000000000..bbca1c63d --- /dev/null +++ b/examples/bundles/com.mycorp.examples.timeservice.consumer.ds/src/com/mycorp/examples/timeservice/consumer/ds/TimeServiceComponent.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2013 Composent, Inc. All rights reserved. This + * program and the accompanying materials are made available under the terms of + * the Eclipse Public License v1.0 which accompanies this distribution, and is + * available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: Scott Lewis - initial API and implementation + ******************************************************************************/ +package com.mycorp.examples.timeservice.consumer.ds; + +import com.mycorp.examples.timeservice.ITimeService; + +public class TimeServiceComponent { + + void bindTimeService(ITimeService timeService) { + System.out.println("Calling ITimeService discovered via DS. timeService=" + + timeService); + // Call the service and print out result! + System.out + .println("Call Done. Current time given by ITimeService.getCurrentTime() is: " + + timeService.getCurrentTime()); + } +} |