* completed renaming

git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@3035 5a64d73e-33d6-4ccc-9058-23f8668ecac9
This commit is contained in:
Oliver Gierke
2008-10-15 17:40:52 +00:00
parent 8bc770e679
commit 1c82b3869c
28 changed files with 60 additions and 56 deletions

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core;
package org.synyx.hera.core;
/**
* Central interface for plugins for the system. This interface is meant to be

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core;
package org.synyx.hera.core;
import java.util.ArrayList;
import java.util.Iterator;

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core.config;
package org.synyx.hera.core.config;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.ManagedMap;
@@ -13,6 +13,9 @@ import org.w3c.dom.Element;
public class PluginListDefinitionParser extends
AbstractSingleBeanDefinitionParser {
protected static final String PACKAGE = "org.synyx.hera.core.support.";
/*
* (non-Javadoc)
*
@@ -23,7 +26,7 @@ public class PluginListDefinitionParser extends
@Override
protected String getBeanClassName(Element element) {
return "org.synyx.plugin.core.support.BeanListBeanFactoryPostProcessor";
return PACKAGE + "BeanListBeanFactoryPostProcessor";
}

View File

@@ -14,15 +14,14 @@
* the License.
*/
package org.synyx.plugin.core.config;
package org.synyx.hera.core.config;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
* Simple namespace handler for {@literal dao-config} namespace.
* Simple namespace handler for {@literal plugin-config} namespace.
*
* @author Eberhard Wolff
* @author Oliver Gierke - gierke@synyx.de
*/
public class PluginNamespaceHandler extends NamespaceHandlerSupport {

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core.config;
package org.synyx.hera.core.config;
import org.w3c.dom.Element;
@@ -18,6 +18,6 @@ public class PluginRegistryDefinitionParser extends PluginListDefinitionParser {
@Override
protected String getBeanClassName(Element element) {
return "org.synyx.plugin.core.support.PluginRegistryBeanFactoryPostProcessor";
return PACKAGE + "PluginRegistryBeanFactoryPostProcessor";
}
}

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core.support;
package org.synyx.hera.core.support;
import java.util.Arrays;
import java.util.HashMap;
@@ -17,7 +17,7 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.ManagedList;
import org.synyx.plugin.core.PluginRegistry;
import org.synyx.hera.core.PluginRegistry;
/**
@@ -38,7 +38,7 @@ import org.synyx.plugin.core.PluginRegistry;
* </pre>
*
* This would register all Spring beans implementing the
* {@link org.synyx.plugin.core.Plugin} interface in a list bean with the name
* {@link org.synyx.hera.core.Plugin} interface in a list bean with the name
* {@coder beanName}.
*
* @author Oliver Gierke - gierke@synyx.de

View File

@@ -1,10 +1,10 @@
package org.synyx.plugin.core.support;
package org.synyx.hera.core.support;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.synyx.plugin.core.PluginRegistry;
import org.synyx.hera.core.PluginRegistry;
/**
@@ -12,7 +12,7 @@ import org.synyx.plugin.core.PluginRegistry;
* from the {@link BeanFactory} hierarchy and registers {@link PluginRegistry}
* instances for them.
*
* @see org.synyx.plugin.core.support.BeanListBeanFactoryPostProcessor
* @see org.synyx.hera.core.support.BeanListBeanFactoryPostProcessor
* @author Oliver Gierke - gierke@synyx.de
*/
public class PluginRegistryBeanFactoryPostProcessor extends

View File

@@ -1 +1 @@
http\://www.synyx.org/schema/plugin=org.synyx.plugin.core.config.PluginNamespaceHandler
http\://www.synyx.org/schema/hera=org.synyx.hera.core.config.PluginNamespaceHandler

View File

@@ -1 +1 @@
http\://www.synyx.org/schema/plugin/plugin-config.xsd=org/synyx/plugin/core/config/plugin-config.xsd
http\://www.synyx.org/schema/hera/plugin-config.xsd=org/synyx/hera/core/config/plugin-config.xsd

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://www.synyx.org/schema/plugin"
<xsd:schema xmlns="http://www.synyx.org/schema/hera"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:tool="http://www.springframework.org/schema/tool"
targetNamespace="http://www.synyx.org/schema/plugin"
targetNamespace="http://www.synyx.org/schema/hera"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://www.springframework.org/schema/tool"/>

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core;
package org.synyx.hera.core;
import java.util.Arrays;
import java.util.List;
@@ -29,7 +29,7 @@ public class PluginRegistryUnitTest {
provider = new SamplePluginImplementation();
registry = PluginRegistry.create();
registry = new PluginRegistry<SamplePlugin, String>();
registry.setPlugins(Arrays.asList(provider));
}

View File

@@ -1,4 +1,6 @@
package org.synyx.plugin.core;
package org.synyx.hera.core;
import org.synyx.hera.core.Plugin;
/**
* @author Oliver Gierke - gierke@synyx.de

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core;
package org.synyx.hera.core;
/**
* @author Oliver Gierke - gierke@synyx.de

View File

@@ -1,4 +1,4 @@
package org.synyx.plugin.core.config;
package org.synyx.hera.core.config;
import java.util.List;
@@ -7,8 +7,8 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.synyx.plugin.core.PluginRegistry;
import org.synyx.plugin.core.SamplePlugin;
import org.synyx.hera.core.PluginRegistry;
import org.synyx.hera.core.SamplePlugin;
/**

View File

@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:plugin="http://www.synyx.org/schema/plugin"
xmlns:plugin="http://www.synyx.org/schema/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://www.synyx.org/schema/plugin http://www.synyx.org/schema/plugin/plugin-config.xsd">
http://www.synyx.org/schema/hera http://www.synyx.org/schema/hera/plugin-config.xsd">
<plugin:list id="foo" class="org.synyx.plugin.core.SamplePlugin" />
<plugin:list id="foo" class="org.synyx.hera.core.SamplePlugin" />
<plugin:registry id="bar" class="org.synyx.plugin.core.SamplePlugin" />
<plugin:registry id="bar" class="org.synyx.hera.core.SamplePlugin" />
<bean class="org.synyx.plugin.core.SamplePluginImplementation" />
<bean class="org.synyx.hera.core.SamplePluginImplementation" />
</beans>