Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - EasyBeans
  - Copyright (C) 2007 Bull S.A.S.
  - Contact: easybeans@objectweb.org
  -
  - This library is free software; you can redistribute it and/or
  - modify it under the terms of the GNU Lesser General Public
  - License as published by the Free Software Foundation; either
  - version 2.1 of the License, or (at your option) any later version.
  -
  - This library is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  - Lesser General Public License for more details.
  -
  - You should have received a copy of the GNU Lesser General Public
  - License along with this library; if not, write to the Free Software
  - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
  -
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - $Id: core-service.xml 2177 2007-12-12 17:45:48Z benoitf $
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
<component enabled="true"
           immediate="true"
           name="core-component">

  <property name="service.pid" value="org.ow2.easybeans.core" />
  <implementation class="org.ow2.easybeans.osgi.core.EZBCoreService" />

  <service>
    <provide interface="org.ow2.easybeans.osgi.core.EZBCoreService" />
  </service>

  <!-- Mandatory reference because Core needs carol to start -->
  <reference name="carolComponent"
             cardinality="1..1"
             interface="org.ow2.easybeans.component.carol.CarolComponent"
             policy="static" />

  <reference name="ezbComponents"
             cardinality="0..n"
             interface="org.ow2.easybeans.component.api.EZBComponent"
             policy="dynamic"
             bind="addComponent"
             unbind="removeComponent" />

  <reference name="ezbContainers"
             cardinality="0..n"
             interface="org.ow2.easybeans.api.EZBContainer"
             policy="dynamic"
             bind="addContainer"
             unbind="removeContainer" />
</component>
New to GrepCode? Check out our FAQ X