summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-29 05:59:00 (EDT)
committerEike Stepper2007-08-29 05:59:00 (EDT)
commit52ec43baf2638114018ba89aec79717b109f60e7 (patch)
tree1e3516dd69f1e328bd55a0d8bd651cb04178ecdf
parent29a8d98d2631884c646d755bcea6fd224a047f0f (diff)
downloadcdo-52ec43baf2638114018ba89aec79717b109f60e7.zip
cdo-52ec43baf2638114018ba89aec79717b109f60e7.tar.gz
cdo-52ec43baf2638114018ba89aec79717b109f60e7.tar.bz2
[201514] Make IRepository implementation configurable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201514
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryFactory.java7
-rw-r--r--plugins/org.eclipse.net4j.util/plugin.xml1
-rw-r--r--plugins/org.eclipse.net4j/build.properties3
-rw-r--r--plugins/org.eclipse.net4j/plugin.xml4
-rw-r--r--plugins/org.eclipse.net4j/schema/elementProcessors.exsd105
-rw-r--r--plugins/org.eclipse.net4j/schema/factories.exsd124
6 files changed, 9 insertions, 235 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryFactory.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryFactory.java
index e07f62f..fe428d2 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryFactory.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryFactory.java
@@ -29,6 +29,13 @@ public class RepositoryFactory extends Factory<Repository>
public Repository create(String name)
{
+ Repository repository = createRepository();
+ repository.setName(name);
+ return repository;
+ }
+
+ protected Repository createRepository()
+ {
return new Repository();
}
diff --git a/plugins/org.eclipse.net4j.util/plugin.xml b/plugins/org.eclipse.net4j.util/plugin.xml
index 158fa0e..27430a6 100644
--- a/plugins/org.eclipse.net4j.util/plugin.xml
+++ b/plugins/org.eclipse.net4j.util/plugin.xml
@@ -4,6 +4,7 @@
<plugin>
<extension-point id="factories" name="Factories" schema="schema/factories.exsd"/>
+
<extension-point id="elementProcessors" name="Element Processors" schema="schema/elementProcessors.exsd"/>
</plugin>
diff --git a/plugins/org.eclipse.net4j/build.properties b/plugins/org.eclipse.net4j/build.properties
index 72ff082..c844378 100644
--- a/plugins/org.eclipse.net4j/build.properties
+++ b/plugins/org.eclipse.net4j/build.properties
@@ -8,5 +8,4 @@ bin.includes = META-INF/,\
copyright.txt,\
epl-v10.html,\
license.html,\
- plugin.xml,\
- schema/
+ plugin.xml
diff --git a/plugins/org.eclipse.net4j/plugin.xml b/plugins/org.eclipse.net4j/plugin.xml
index 34c3a39..e478fac 100644
--- a/plugins/org.eclipse.net4j/plugin.xml
+++ b/plugins/org.eclipse.net4j/plugin.xml
@@ -3,10 +3,6 @@
<plugin>
- <extension-point id="factories" name="Factories" schema="schema/factories.exsd"/>
-
- <extension-point id="elementProcessors" name="Element Processors" schema="schema/elementProcessors.exsd"/>
-
<extension
point="org.eclipse.net4j.util.factories">
<factory
diff --git a/plugins/org.eclipse.net4j/schema/elementProcessors.exsd b/plugins/org.eclipse.net4j/schema/elementProcessors.exsd
deleted file mode 100644
index 9845086..0000000
--- a/plugins/org.eclipse.net4j/schema/elementProcessors.exsd
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.net4j">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.eclipse.net4j" id="elementProcessors" name="Element Processors"/>
- </appInfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <complexType>
- <sequence>
- <element ref="elementProcessor" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="elementProcessor">
- <complexType>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="apiInfo"/>
- </appInfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="implementation"/>
- </appInfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
-</schema>
diff --git a/plugins/org.eclipse.net4j/schema/factories.exsd b/plugins/org.eclipse.net4j/schema/factories.exsd
deleted file mode 100644
index b755309..0000000
--- a/plugins/org.eclipse.net4j/schema/factories.exsd
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.net4j">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.eclipse.net4j" id="factories" name="Factories"/>
- </appInfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <complexType>
- <sequence>
- <element ref="factory" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="factory">
- <annotation>
- <appInfo>
- <meta.element labelAttribute="class"/>
- </appInfo>
- </annotation>
- <complexType>
- <attribute name="productGroup" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="type" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn="org.eclipse.net4j.util.factory.IFactory"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="apiInfo"/>
- </appInfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="implementation"/>
- </appInfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
-</schema>