-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathStudentServiceImpl2.java
26 lines (21 loc) · 1.19 KB
/
StudentServiceImpl2.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*******************************************************************************
* Copyright (c) 2015 Composent, Inc. and others. 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:
* Composent, Inc. - initial API and implementation
******************************************************************************/
package com.mycorp.examples.student.remoteservice.host;
import javax.ws.rs.Path;
import org.osgi.service.component.annotations.Component;
import com.mycorp.examples.student.StudentService;
// The jax-rs path annotation for this service
@Path("/studentservice")
// The OSGi DS (declarative services) component annotation.
@Component(immediate = true, property = { "service.exported.interfaces=*", "service.exported.intents=osgi.async",
"service.exported.configs=ecf.jaxrs.jersey.server",
"service.exported.intents=jaxrs", "osgi.basic.timeout=1000000", "ecf.jaxrs.server.pathPrefix=/rs2" })
public class StudentServiceImpl2 extends AbstractStudentService implements StudentService {
}