| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> |
| |
| <ext:property-placeholder /> |
| |
| <bean id="features" class="org.apache.karaf.diagnostic.core.internal.FeaturesDumpProvider"> |
| <argument> |
| <reference interface="org.apache.karaf.features.FeaturesService" |
| availability="optional" /> |
| </argument> |
| </bean> |
| <service ref="features" auto-export="interfaces" /> |
| |
| <bean id="logs" class="org.apache.karaf.diagnostic.core.internal.LogDumpProvider"> |
| <property name="bundleContext" ref="blueprintBundleContext"/> |
| </bean> |
| <service ref="logs" auto-export="interfaces" /> |
| |
| <bean id="bundles" class="org.apache.karaf.diagnostic.core.internal.BundleDumpProvider"> |
| <argument ref="blueprintBundleContext" /> |
| </bean> |
| <service ref="bundles" auto-export="interfaces" /> |
| |
| <bean id="threads" class="org.apache.karaf.diagnostic.core.internal.ThreadDumpProvider" /> |
| <service ref="threads" auto-export="interfaces" /> |
| |
| <bean id="memory" class="org.apache.karaf.diagnostic.core.internal.MemoryDumpProvider" /> |
| <service ref="memory" auto-export="interfaces" /> |
| |
| <bean id="heap" class="org.apache.karaf.diagnostic.core.internal.HeapDumpProvider" /> |
| <service ref="heap" auto-export="interfaces" /> |
| |
| <reference-list id="providers" availability="optional" |
| interface="org.apache.karaf.diagnostic.core.DumpProvider" /> |
| |
| <bean id="diagnosticDumpMBean" class="org.apache.karaf.diagnostic.core.internal.DiagnosticDumpMBeanImpl"> |
| <property name="providers" ref="providers" /> |
| </bean> |
| |
| <service ref="diagnosticDumpMBean" auto-export="interfaces"> |
| <service-properties> |
| <entry key="jmx.objectname" value="org.apache.karaf:type=diagnostic,name=${karaf.name}"/> |
| </service-properties> |
| </service> |
| |
| <bean id="environment" class="org.apache.karaf.diagnostic.core.internal.EnvironmentDumpProvider" > |
| <argument ref="blueprintBundleContext" /> |
| </bean> |
| <service ref="environment" auto-export="interfaces" /> |
| </blueprint> |