/
QRApplication.java
33 lines (26 loc) · 997 Bytes
/
QRApplication.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
27
28
29
30
31
32
33
/*
* Licensed Materials - Property of IBM
* 5725-I43 (C) Copyright IBM Corp. 2015. All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
package com.sample;
import java.util.logging.Logger;
import com.worklight.wink.extensions.MFPJAXRSApplication;
public class QRApplication extends MFPJAXRSApplication{
static Logger logger = Logger.getLogger(QRApplication.class.getName());
@Override
protected void init() throws Exception {
logger.info("Adapter initialized!");
}
@Override
protected void destroy() throws Exception {
logger.info("Adapter destroyed!");
}
@Override
protected String getPackageToScan() {
//The package of this class will be scanned (recursively) to find JAX-RS resources.
//It is also possible to override "getPackagesToScan" method in order to return more than one package for scanning
return getClass().getPackage().getName();
}
}