Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-07-08 21:24:54 +0000
committerRyan D. Brooks2011-07-08 21:24:54 +0000
commit970063917867f7b1681b1b2f485903a7ab26d860 (patch)
tree864f98326f256776aac114f82f5f69948ce4c822 /plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core
parent822f3c44c61509726a0c5ae71de6d2034e4f47b5 (diff)
downloadorg.eclipse.osee-970063917867f7b1681b1b2f485903a7ab26d860.tar.gz
org.eclipse.osee-970063917867f7b1681b1b2f485903a7ab26d860.tar.xz
org.eclipse.osee-970063917867f7b1681b1b2f485903a7ab26d860.zip
feature: Remove need for onBirth and onInitializationComplete
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java19
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactFactory.java3
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java5
3 files changed, 0 insertions, 27 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
index 56a65ac4ee1..0a4f7e46f77 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
@@ -219,25 +219,6 @@ public class Artifact extends NamedIdentity implements IArtifact, IAdaptable, IB
return objs;
}
- /**
- * Called upon completion of the initialization of an artifact when it is initially created. This allows sub-class
- * artifacts to set default attributes or do default processing.
- */
- @SuppressWarnings("unused")
- public void onBirth() throws OseeCoreException {
- // provided for subclass implementation
- }
-
- /**
- * Called upon completion of the initialization of an artifact when loaded from the persistence layer, and when
- * initially created. When called upon initial creation, it is called after <code>onBirth()</code>. This allows
- * sub-class artifacts to set default attributes or do default processing.
- */
- @SuppressWarnings("unused")
- public void onInitializationComplete() throws OseeCoreException {
- // provided for subclass implementation
- }
-
@Override
public final int getArtId() {
return artId;
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactFactory.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactFactory.java
index 8b2d1ff53cb..02c753ef53e 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactFactory.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactFactory.java
@@ -76,9 +76,6 @@ public abstract class ArtifactFactory {
ArtifactCache.cache(artifact);
artifact.setLinksLoaded(true);
- artifact.onBirth();
-
- artifact.onInitializationComplete();
if (Strings.isValid(artifactName)) {
artifact.setName(artifactName);
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
index 70f8d84b7de..0650e39d40e 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
@@ -352,13 +352,8 @@ public final class ArtifactLoader {
artifact.prepareForReload();
}
}
-
AttributeLoader.loadAttributeData(queryId, artifacts, historical, allowDeleted, loadLevel);
RelationLoader.loadRelationData(queryId, artifacts, historical, loadLevel);
-
- for (Artifact artifact : artifacts) {
- artifact.onInitializationComplete();
- }
}
public static int getNewQueryId() {

Back to the top