diff --git a/core/src/doc/core.xml b/core/src/doc/core.xml index f54754f..93841a6 100644 --- a/core/src/doc/core.xml +++ b/core/src/doc/core.xml @@ -141,13 +141,20 @@ public class HostImpl implements Host { Host configuration using the plugin namespace - <import resource="classpath*:com/acme/**/plugins.xml" /> + <beans xmlns="http://www.springframework.org/schema/beans" + xmlns:plugin="http://schemas.synyx.org/hera" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://schemas.synyx.org/hera http://schemas.synyx.org/hera/hera.xsd"> -<bean id="host" class="com.acme.HostImpl"> - <property name="plugins" ref="plugins" /> -</bean> + <import resource="classpath*:com/acme/**/plugins.xml" /> -<plugin:list id="plugins" class="org.acme.MyPluginInterface" /> + <bean id="host" class="com.acme.HostImpl"> + <property name="plugins" ref="plugins" /> + </bean> + + <plugin:list id="plugins" class="org.acme.MyPluginInterface" /> +</beans> Suggested you have added the namespace XSD into Eclipse and @@ -158,10 +165,6 @@ public class HostImpl implements Host { Using inner beans - - This feature is only available for version 0.3 and above! - - The listing above features an indirection for the plugin bean definition. Defining the plugin list as top level bean can have advantages: you easily could place all plugin lists