Merge "Add password recovery procedure for default admin user"
[controller.git] / opendaylight / northbound / bundlescanner / api / src / main / java / org / opendaylight / controller / northbound / bundlescanner / IBundleScanService.java
1 /**
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.northbound.bundlescanner;
10
11 import java.util.List;
12
13 import org.osgi.framework.BundleContext;
14
15 /**
16  * The bundle scan service provides services which allow introspection of
17  * bundle classes for detecting annotated classes. The scanning is performed
18  * when a bundle is RESOLVED.
19  */
20 public interface IBundleScanService {
21     /**
22      * The list of annotations to be scanned
23      */
24     public final String[] ANNOTATIONS_TO_SCAN = {
25         "javax.xml.bind.annotation.*", // JAXB annotatinos
26         "javax.ws.rs.*"                // JAX-RS annotatinos
27     };
28
29
30     public List<Class<?>> getAnnotatedClasses(
31             BundleContext context,
32             String[] annotations,
33             boolean includeDependentBundleClasses);
34 }