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
8 package org.opendaylight.controller.config.api.annotations;
10 import java.lang.annotation.ElementType;
11 import java.lang.annotation.Retention;
12 import java.lang.annotation.RetentionPolicy;
13 import java.lang.annotation.Target;
16 * Indicates what service interface is expected to be obtained as a dependency
17 * of a module. This annotation must be present for each dependency setter in
18 * {@link org.opendaylight.controller.config.spi.Module} M(X)Bean interface.
19 * Together with name of dependent bean the {@link #value()} will be used to get
20 * {@link javax.management.ObjectName} of dependency.
26 * {@literal @}RequireInterface(value = ThreadPoolServiceInterface.class, optional = false)<br>
27 * void setThreadPool(ObjectName on);
30 @Retention(RetentionPolicy.RUNTIME)
31 @Target(ElementType.METHOD)
32 public @interface RequireInterface {
35 * Declares dependency on service interface.
37 Class<? extends AbstractServiceInterface> value();