![JAR search and dependency download from the Maven repository](/logo.png)
OSGI-INF.blueprint.blueprint.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-karaf-init Show documentation
Show all versions of brooklyn-karaf-init Show documentation
OSGi launcher - initializes the ManagementContext
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2015 The Apache Software Foundation. Licensed 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.2.0" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.2.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.2.0.xsd "> <!-- Makes sure core bundle is already started --> <reference id="brooklynVersion" interface="org.apache.brooklyn.core.BrooklynVersionService" /> <reference id="systemService" interface="org.apache.karaf.system.SystemService" /> <reference id="configAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" /> <cm:property-placeholder persistent-id="org.apache.brooklyn.osgilauncher" update-strategy="none"> <cm:default-properties> <cm:property name="ignoreCatalogErrors" value="true" /> <cm:property name="ignorePersistenceErrors" value="true" /> <cm:property name="highAvailabilityMode" value="AUTO" /> <cm:property name="persistMode" value="AUTO" /> <cm:property name="persistenceDir" value="" /> <cm:property name="persistenceLocation" value="" /> <cm:property name="persistPeriod" value="1s" /> <cm:property name="globalBrooklynPropertiesFile" value="~/.brooklyn/brooklyn.properties" /> <cm:property name="localBrooklynPropertiesFile" value="" /> <!-- used to be settable through cli params --> <cm:property name="default.catalog.location" value="etc/default.catalog.bom" /> </cm:default-properties> </cm:property-placeholder> <bean id="deserializingClassRenamesProvider" class="org.apache.brooklyn.launcher.osgi.ClassRenameOsgiConfigLoader" init-method="init" destroy-method="destroy"> <property name="configAdmin" ref="configAdmin" /> <cm:managed-properties persistent-id="org.apache.brooklyn.classrename" update-method="updateProperties" update-strategy="component-managed" /> </bean> <bean id="deserializingJcloudsRenamesProvider" class="org.apache.brooklyn.launcher.osgi.JcloudsProviderRenameOsgiConfigLoader" init-method="init" destroy-method="destroy"> <property name="configAdmin" ref="configAdmin" /> <cm:managed-properties persistent-id="org.apache.brooklyn.jcloudsrename" update-method="updateProperties" update-strategy="component-managed" /> </bean> <bean id="launcher" class="org.apache.brooklyn.launcher.osgi.OsgiLauncherImpl" init-method="initOsgi" destroy-method="destroyOsgi" depends-on="deserializingClassRenamesProvider deserializingJcloudsRenamesProvider"> <property name="brooklynVersion" ref="brooklynVersion" /> <property name="ignoreCatalogErrors" value="${ignoreCatalogErrors}" /> <property name="ignorePersistenceErrors" value="${ignorePersistenceErrors}" /> <property name="highAvailabilityMode" value="${highAvailabilityMode}" /> <property name="persistMode" value="${persistMode}" /> <property name="persistenceDir" value="${persistenceDir}" /> <property name="persistenceLocation" value="${persistenceLocation}" /> <property name="persistPeriod" value="${persistPeriod}" /> <property name="globalBrooklynProperties" value="${globalBrooklynPropertiesFile}" /> <property name="localBrooklynProperties" value="${localBrooklynPropertiesFile}" /> <property name="defaultCatalogLocation" value="${default.catalog.location}" /> <property name="configAdmin" ref="configAdmin" /> <cm:managed-properties persistent-id="brooklyn" update-method="updateProperties" update-strategy="component-managed" /> </bean> <bean id="localManagementContextService" class="org.apache.brooklyn.core.mgmt.internal.LocalManagementContext" factory-ref="launcher" factory-method="getManagementContext" /> <bean id="campPlatform" class="org.apache.brooklyn.camp.CampPlatform" factory-ref="launcher" factory-method="getCampPlatform" /> <service interface="org.apache.brooklyn.core.mgmt.ShutdownHandler"> <bean class="org.apache.brooklyn.launcher.osgi.OsgiShutdownHandler" /> </service> <service ref="localManagementContextService"> <interfaces> <value>org.apache.brooklyn.api.mgmt.ManagementContext</value> <value>org.apache.brooklyn.core.mgmt.internal.ManagementContextInternal</value> </interfaces> </service> <service ref="launcher"> <interfaces> <value>org.apache.brooklyn.launcher.osgi.OsgiLauncher</value> </interfaces> </service> </blueprint>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy