summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-28 01:05:51 (EDT)
committerEike Stepper2007-08-28 01:05:51 (EDT)
commita9168048610c836e30a721c1eb147b28bc38f3f6 (patch)
treede163007ddc687d9a4d9f8296367679e6e9c1045
parent893c2b4f192ec40fffd6c36823169f2483f35621 (diff)
downloadcdo-a9168048610c836e30a721c1eb147b28bc38f3f6.zip
cdo-a9168048610c836e30a721c1eb147b28bc38f3f6.tar.gz
cdo-a9168048610c836e30a721c1eb147b28bc38f3f6.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java10
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IRepository.java2
2 files changed, 7 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
index 468b79c..401997b 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
@@ -15,6 +15,7 @@ import org.eclipse.emf.cdo.internal.protocol.CDOIDRangeImpl;
import org.eclipse.emf.cdo.protocol.CDOID;
import org.eclipse.emf.cdo.protocol.CDOIDRange;
import org.eclipse.emf.cdo.server.IRepository;
+import org.eclipse.emf.cdo.server.IRepositoryElement;
import org.eclipse.emf.cdo.server.IStore;
import org.eclipse.net4j.internal.util.container.Container;
@@ -29,7 +30,7 @@ import java.util.UUID;
/**
* @author Eike Stepper
*/
-public class Repository extends Container implements IRepository
+public class Repository extends Container<IRepositoryElement> implements IRepository
{
public static final String PROP_OVERRIDE_UUID = "overrideUUID";
@@ -63,7 +64,7 @@ public class Repository extends Container implements IRepository
private RevisionManager revisionManager = new RevisionManager(this);
- private Object[] elements;
+ private IRepositoryElement[] elements;
private long nextOIDValue = INITIAL_OID_VALUE;
@@ -84,7 +85,8 @@ public class Repository extends Container implements IRepository
this.name = name;
this.store = store;
- elements = new Object[] { packageManager, sessionManager, resourceManager, revisionManager, typeManager, store };
+ elements = new IRepositoryElement[] { packageManager, sessionManager, resourceManager, revisionManager,
+ typeManager, store };
}
public String getName()
@@ -170,7 +172,7 @@ public class Repository extends Container implements IRepository
return revisionManager;
}
- public Object[] getElements()
+ public IRepositoryElement[] getElements()
{
return elements;
}
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IRepository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IRepository.java
index 29aa00c..d308731 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IRepository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IRepository.java
@@ -17,7 +17,7 @@ import org.eclipse.net4j.util.container.IContainer;
/**
* @author Eike Stepper
*/
-public interface IRepository extends IContainer
+public interface IRepository extends IContainer<IRepositoryElement>
{
public String getName();