* 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:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>plugin-core</name>
|
||||
<name>hera-core</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
@@ -21,12 +21,12 @@
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="plugin-core">
|
||||
<wb-module deploy-name="hera-core">
|
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
||||
</wb-module>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.synyx.plugin</groupId>
|
||||
<artifactId>plugin-core</artifactId>
|
||||
<groupId>org.synyx.hera</groupId>
|
||||
<artifactId>hera-core</artifactId>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
|
||||
<name>Plugin Core</name>
|
||||
<name>Hera Core</name>
|
||||
<description>Core plugin infrastructure</description>
|
||||
|
||||
<parent>
|
||||
<artifactId>synyx-plugin</artifactId>
|
||||
<groupId>org.synyx.plugin</groupId>
|
||||
<artifactId>hera</artifactId>
|
||||
<groupId>org.synyx.hera</groupId>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.synyx.plugin.core;
|
||||
package org.synyx.hera.core;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"/>
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.synyx.plugin.core;
|
||||
package org.synyx.hera.core;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke - gierke@synyx.de
|
||||
@@ -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;
|
||||
|
||||
|
||||
/**
|
||||
@@ -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>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>plugin-metadata</name>
|
||||
<name>hera-metadata</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
@@ -16,12 +16,12 @@
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="plugin-metadata">
|
||||
<wb-module deploy-name="hera-metadata">
|
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.synyx.plugin</groupId>
|
||||
<artifactId>plugin-metadata</artifactId>
|
||||
<groupId>org.synyx.hera</groupId>
|
||||
<artifactId>hera-metadata</artifactId>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
|
||||
<name>Plugin metadata</name>
|
||||
<name>Hera Metadata Extension</name>
|
||||
<description>Extension package for metadata based plugins</description>
|
||||
|
||||
<parent>
|
||||
<artifactId>synyx-plugin</artifactId>
|
||||
<groupId>org.synyx.plugin</groupId>
|
||||
<artifactId>hera</artifactId>
|
||||
<groupId>org.synyx.hera</groupId>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.synyx.plugin</groupId>
|
||||
<artifactId>plugin-core</artifactId>
|
||||
<groupId>org.synyx.hera</groupId>
|
||||
<artifactId>hera-core</artifactId>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.synyx.plugin.metadata;
|
||||
package org.synyx.hera.metadata;
|
||||
|
||||
import org.synyx.plugin.core.Plugin;
|
||||
import org.synyx.hera.core.Plugin;
|
||||
|
||||
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.synyx.plugin.metadata;
|
||||
package org.synyx.hera.metadata;
|
||||
|
||||
/**
|
||||
* Interface for plugins providing metadata information. Usually the plugins
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.synyx.plugin.metadata;
|
||||
package org.synyx.hera.metadata;
|
||||
|
||||
/**
|
||||
* Basic interface to define a set of metadata information for plugins.
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.synyx.plugin.metadata;
|
||||
package org.synyx.hera.metadata;
|
||||
|
||||
import org.apache.commons.lang.ObjectUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
Reference in New Issue
Block a user