From 36952dbce0584a5eb1accd2988ca8e8e0ec6e5dd Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 16 Oct 2008 06:33:43 +0000 Subject: [PATCH] * added Apache Licence 2.0 text * fixed #2 git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@3039 5a64d73e-33d6-4ccc-9058-23f8668ecac9 --- .../main/java/org/synyx/hera/core/Plugin.java | 16 ++++++++++++++++ .../org/synyx/hera/core/PluginRegistry.java | 16 ++++++++++++++++ .../config/PluginListDefinitionParser.java | 15 +++++++++++++++ .../config/PluginRegistryDefinitionParser.java | 18 ++++++++++++++++++ .../BeanListBeanFactoryPostProcessor.java | 15 +++++++++++++++ ...PluginRegistryBeanFactoryPostProcessor.java | 15 +++++++++++++++ .../hera/core/PluginRegistryUnitTest.java | 15 +++++++++++++++ .../java/org/synyx/hera/core/SamplePlugin.java | 17 +++++++++++++++-- .../hera/core/SamplePluginImplementation.java | 15 +++++++++++++++ .../metadata/AbstractMetadataBasedPlugin.java | 15 +++++++++++++++ .../synyx/hera/metadata/MetadataProvider.java | 15 +++++++++++++++ .../synyx/hera/metadata/PluginMetadata.java | 15 +++++++++++++++ .../hera/metadata/SimplePluginMetadata.java | 15 +++++++++++++++ 13 files changed, 200 insertions(+), 2 deletions(-) diff --git a/hera-core/src/main/java/org/synyx/hera/core/Plugin.java b/hera-core/src/main/java/org/synyx/hera/core/Plugin.java index b03369c..a70b2d2 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/Plugin.java +++ b/hera-core/src/main/java/org/synyx/hera/core/Plugin.java @@ -1,3 +1,19 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ + package org.synyx.hera.core; /** diff --git a/hera-core/src/main/java/org/synyx/hera/core/PluginRegistry.java b/hera-core/src/main/java/org/synyx/hera/core/PluginRegistry.java index af5f6a4..00a7009 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/PluginRegistry.java +++ b/hera-core/src/main/java/org/synyx/hera/core/PluginRegistry.java @@ -1,3 +1,19 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ + package org.synyx.hera.core; import java.util.ArrayList; diff --git a/hera-core/src/main/java/org/synyx/hera/core/config/PluginListDefinitionParser.java b/hera-core/src/main/java/org/synyx/hera/core/config/PluginListDefinitionParser.java index 4d6def8..7fac33f 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/config/PluginListDefinitionParser.java +++ b/hera-core/src/main/java/org/synyx/hera/core/config/PluginListDefinitionParser.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core.config; import org.springframework.beans.factory.support.BeanDefinitionBuilder; diff --git a/hera-core/src/main/java/org/synyx/hera/core/config/PluginRegistryDefinitionParser.java b/hera-core/src/main/java/org/synyx/hera/core/config/PluginRegistryDefinitionParser.java index 1093028..bdc4340 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/config/PluginRegistryDefinitionParser.java +++ b/hera-core/src/main/java/org/synyx/hera/core/config/PluginRegistryDefinitionParser.java @@ -1,9 +1,27 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core.config; import org.w3c.dom.Element; /** + * Simple extension of {@link PluginListDefinitionParser}. Simply registers a + * {@code PluginListDefinitionParser} instead of the original class. + * * @author Oliver Gierke - gierke@synyx.de */ public class PluginRegistryDefinitionParser extends PluginListDefinitionParser { diff --git a/hera-core/src/main/java/org/synyx/hera/core/support/BeanListBeanFactoryPostProcessor.java b/hera-core/src/main/java/org/synyx/hera/core/support/BeanListBeanFactoryPostProcessor.java index 353bef0..e0f65c8 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/support/BeanListBeanFactoryPostProcessor.java +++ b/hera-core/src/main/java/org/synyx/hera/core/support/BeanListBeanFactoryPostProcessor.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core.support; import java.util.Arrays; diff --git a/hera-core/src/main/java/org/synyx/hera/core/support/PluginRegistryBeanFactoryPostProcessor.java b/hera-core/src/main/java/org/synyx/hera/core/support/PluginRegistryBeanFactoryPostProcessor.java index b779b9d..5af63ed 100644 --- a/hera-core/src/main/java/org/synyx/hera/core/support/PluginRegistryBeanFactoryPostProcessor.java +++ b/hera-core/src/main/java/org/synyx/hera/core/support/PluginRegistryBeanFactoryPostProcessor.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core.support; import org.springframework.beans.factory.BeanFactory; diff --git a/hera-core/src/test/java/org/synyx/hera/core/PluginRegistryUnitTest.java b/hera-core/src/test/java/org/synyx/hera/core/PluginRegistryUnitTest.java index 84cdb95..98b7cba 100644 --- a/hera-core/src/test/java/org/synyx/hera/core/PluginRegistryUnitTest.java +++ b/hera-core/src/test/java/org/synyx/hera/core/PluginRegistryUnitTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core; import java.util.Arrays; diff --git a/hera-core/src/test/java/org/synyx/hera/core/SamplePlugin.java b/hera-core/src/test/java/org/synyx/hera/core/SamplePlugin.java index 31d4615..febcb60 100644 --- a/hera-core/src/test/java/org/synyx/hera/core/SamplePlugin.java +++ b/hera-core/src/test/java/org/synyx/hera/core/SamplePlugin.java @@ -1,7 +1,20 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core; -import org.synyx.hera.core.Plugin; - /** * @author Oliver Gierke - gierke@synyx.de */ diff --git a/hera-core/src/test/java/org/synyx/hera/core/SamplePluginImplementation.java b/hera-core/src/test/java/org/synyx/hera/core/SamplePluginImplementation.java index 84d4690..67e65c5 100644 --- a/hera-core/src/test/java/org/synyx/hera/core/SamplePluginImplementation.java +++ b/hera-core/src/test/java/org/synyx/hera/core/SamplePluginImplementation.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.core; /** diff --git a/hera-metadata/src/main/java/org/synyx/hera/metadata/AbstractMetadataBasedPlugin.java b/hera-metadata/src/main/java/org/synyx/hera/metadata/AbstractMetadataBasedPlugin.java index 1844377..a223155 100644 --- a/hera-metadata/src/main/java/org/synyx/hera/metadata/AbstractMetadataBasedPlugin.java +++ b/hera-metadata/src/main/java/org/synyx/hera/metadata/AbstractMetadataBasedPlugin.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.metadata; import org.synyx.hera.core.Plugin; diff --git a/hera-metadata/src/main/java/org/synyx/hera/metadata/MetadataProvider.java b/hera-metadata/src/main/java/org/synyx/hera/metadata/MetadataProvider.java index 0203643..636b36f 100644 --- a/hera-metadata/src/main/java/org/synyx/hera/metadata/MetadataProvider.java +++ b/hera-metadata/src/main/java/org/synyx/hera/metadata/MetadataProvider.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.metadata; /** diff --git a/hera-metadata/src/main/java/org/synyx/hera/metadata/PluginMetadata.java b/hera-metadata/src/main/java/org/synyx/hera/metadata/PluginMetadata.java index 71e7990..07ba973 100644 --- a/hera-metadata/src/main/java/org/synyx/hera/metadata/PluginMetadata.java +++ b/hera-metadata/src/main/java/org/synyx/hera/metadata/PluginMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.metadata; /** diff --git a/hera-metadata/src/main/java/org/synyx/hera/metadata/SimplePluginMetadata.java b/hera-metadata/src/main/java/org/synyx/hera/metadata/SimplePluginMetadata.java index 21aacdc..1acaa91 100644 --- a/hera-metadata/src/main/java/org/synyx/hera/metadata/SimplePluginMetadata.java +++ b/hera-metadata/src/main/java/org/synyx/hera/metadata/SimplePluginMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed 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. + */ package org.synyx.hera.metadata; import org.apache.commons.lang.ObjectUtils;