Project

General

Profile

Feature #1762

Wrap com.zfabrik.springframework.ComponentFactoryBean into custom Spring bean: <z2:bean>

Added by Udo Offermann over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
z2-addon-spring
Target version:
Start date:
05.06.2014
Due date:
% Done:

0%

Estimated time:
origin:

Description

Provide custom Spring xml namespace so that one can replace

    <bean id="magicService" class="com.zfabrik.springframework.ComponentFactoryBean">
        <property name="componentName" value="com.zfabrik.service.provider/MagicService" />
        <property name="className" value="com.zfabrik.service.provider.MagicService" />
    </bean>

by

    <z2:bean id="magicService" 
             component="com.zfabrik.service.provider/MagicService" 
             class="com.zfabrik.service.provider.MagicService"/>

See http://docs.spring.io/spring/docs/3.1.2.RELEASE/spring-framework-reference/html/extensible-xml.html

Also available in: Atom PDF