Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 13bb904f0e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 80 lines (66 sloc) 3.807 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
<?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.0.0"
           xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">

    <!-- Retrieve ManagementStrategy from OSGi service registry -->
    <reference id="managementStrategy" interface="org.fusesource.commons.management.ManagementStrategy"/>

    <bean id="servicemix-validation" class="org.apache.servicemix.validation.ValidationComponent">
        <property name="executorFactory" ref="executorFactory" />
    </bean>

    <bean id="executorFactory" class="org.apache.servicemix.executors.impl.ExecutorFactoryImpl">
        <property name="defaultConfig">
            <bean class="org.apache.servicemix.executors.impl.ExecutorConfig">
                <property name="corePoolSize" value="${threadPoolCorePoolSize}"/>
                <property name="maximumPoolSize" value="${threadPoolMaximumPoolSize}"/>
                <property name="queueSize" value="${threadPoolQueueSize}"/>
            </bean>
        </property>
        <property name="managementStrategy" ref="managementStrategy"/>
    </bean>

    <bean id="endpoint-tracker" class="org.apache.servicemix.common.osgi.EndpointTracker">
        <property name="component" ref="servicemix-validation" />
    </bean>

    <reference-list id="endpoints"
               interface="org.apache.servicemix.common.osgi.EndpointWrapper"
               availability="optional">
        <reference-listener ref="endpoint-tracker" bind-method="register" unbind-method="unregister" />
    </reference-list>

    <service ref="servicemix-validation" interface="javax.jbi.component.Component">
        <service-properties>
            <entry key="NAME" value="servicemix-validation" />
            <entry key="TYPE" value="service-engine" />
        </service-properties>
    </service>

    <service interface="org.apache.aries.blueprint.NamespaceHandler">
        <service-properties>
            <entry key="osgi.service.blueprint.namespace" value="http://servicemix.apache.org/validation/1.0"/>
        </service-properties>
        <bean class="org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler">
            <argument value="http://servicemix.apache.org/validation/1.0"/>
            <argument value="servicemix-validation.xsd"/>
            <argument ref="blueprintBundle"/>
            <argument value="META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/validation/1.0"/>
        </bean>
    </service>

    <cm:property-placeholder persistent-id="org.apache.servicemix.components.validation">
        <cm:default-properties>
            <cm:property name="threadPoolCorePoolSize" value="8"/>
            <cm:property name="threadPoolMaximumPoolSize" value="32"/>
            <cm:property name="threadPoolQueueSize" value="256"/>
</cm:default-properties>
    </cm:property-placeholder>
    
</blueprint>
Something went wrong with that request. Please try again.