Merge "Bug 1029: Remove dead code: samples/clustersession"
[controller.git] / opendaylight / adsal / 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 import java.util.Set;
13
14 import org.osgi.framework.BundleContext;
15
16 /**
17  * The bundle scan service provides services which allow introspection of
18  * bundle classes for detecting annotated classes. The scanning is performed
19  * when a bundle is RESOLVED.
20  */
21 public interface IBundleScanService {
22     /**
23      * The list of annotations to be scanned
24      */
25     public final String[] ANNOTATIONS_TO_SCAN = {
26         "javax.xml.bind.annotation.*", // JAXB annotatinos
27         "javax.ws.rs.*"                // JAX-RS annotatinos
28     };
29
30
31     public List<Class<?>> getAnnotatedClasses(
32             BundleContext context,
33             String[] annotations,
34             Set<String> excludes,
35             boolean includeDependentBundleClasses);
36 }