2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.northbound.bundlescanner;
11 import java.util.List;
13 import org.osgi.framework.BundleContext;
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.
20 public interface IBundleScanService {
22 * The list of annotations to be scanned
24 public final String[] ANNOTATIONS_TO_SCAN = {
25 "javax.xml.bind.annotation.*", // JAXB annotatinos
26 "javax.ws.rs.*" // JAX-RS annotatinos
30 public List<Class<?>> getAnnotatedClasses(
31 BundleContext context,
33 boolean includeDependentBundleClasses);