Github user CMoH commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1048#discussion_r45801898
  
    --- Diff: core/src/main/resources/OSGI-INF/blueprint/blueprint.xml ---
    @@ -0,0 +1,41 @@
    +<?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.1.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/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
    +             ">
    +
    +<!--    <cm:property-placeholder 
persistent-id="org.apache.brooklyn.properties" update-strategy="reload">
    +        <cm:default-properties>
    +            <cm:property name="some-property" 
value="${karaf.data}/some-path"/>
    +        </cm:default-properties>
    +    </cm:property-placeholder>-->
    +
    +    <bean id="localManagementContextService"
    +          
class="org.apache.brooklyn.core.mgmt.internal.LocalManagementContext" />
    --- End diff --
    
    You are correct. The concept is that when brooklyn-core bundle is started, 
these beans get instantiated and they are up and running, and initialized via 
properties defined as in the commented section above. Later on one can install 
brooklyn-rest-server, therefore attaching the REST server to the mix, or choose 
to just leave brooklyn-core running to manage services etc.
    
    For this reason the initialization sequence will certainly be different 
than that in `BrooklynLauncher`, but in the end achieve the same effect. For 
now I have not gotten on that road yet.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to