blob: 15343b121e09f56218679eab0e3205d4f11c6b1c [file] [log] [blame]
David Jenckscb9f9422013-02-04 02:16:11 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.apache.felix.scr;
20
David Jencks652fad72013-02-04 02:16:16 +000021import java.io.PrintWriter;
David Jenckscb9f9422013-02-04 02:16:11 +000022
23/**
24 * Abstraction of command interface.
25 *
David Jencks652fad72013-02-04 02:16:16 +000026 * @Since 1.8
David Jenckscb9f9422013-02-04 02:16:11 +000027 */
28public interface ScrInfo
29{
30
31 /**
32 * List in text the components for the bundle specified, or all components if null, sorted by component ID
33 * @param bundleIdentifier bundle the components are in or null for all components
34 * @param out PrintStream for normal output
David Jencks652fad72013-02-04 02:16:16 +000035 * @throws IllegalArgumentException if nothing can be found
David Jenckscb9f9422013-02-04 02:16:11 +000036 */
David Jencks652fad72013-02-04 02:16:16 +000037 void list(String bundleIdentifier, PrintWriter out);
David Jenckscb9f9422013-02-04 02:16:11 +000038
39 /**
40 * List in text detailed information about the specified components. Components can be specified by
41 * numeric componentId, component name, a regexp to match for component name, or null for all components.
42 * @param componentId specifier for desired components
43 * @param out PrintStream for normal output
David Jencks652fad72013-02-04 02:16:16 +000044 * @throws IllegalArgumentException if nothing can be found
David Jenckscb9f9422013-02-04 02:16:11 +000045 */
David Jencks652fad72013-02-04 02:16:16 +000046 void info(String componentId, PrintWriter out);
David Jenckscb9f9422013-02-04 02:16:11 +000047
48 /**
49 * List in text the current SCR configuration
50 * @param out PrintStream for output.
51 */
David Jencks652fad72013-02-04 02:16:16 +000052 void config(PrintWriter out);
David Jenckscb9f9422013-02-04 02:16:11 +000053
54}