Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bbca1c63d9b8dd3ff05e10a650f13300b91cba03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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());
	}
}

Back to the top