Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2014-03-31 19:43:30 +0000
committerMegumi Telles2014-04-04 15:24:38 +0000
commita98ee52a24b4c0f819121a01781d9d3ece9e8f2f (patch)
treeda3f58efd55e292388dfad021b0ac636d8020885 /plugins/org.eclipse.osee.framework.jini
parent4ac8186eb9becc6283b806b2089253e929f4ec26 (diff)
downloadorg.eclipse.osee-a98ee52a24b4c0f819121a01781d9d3ece9e8f2f.tar.gz
org.eclipse.osee-a98ee52a24b4c0f819121a01781d9d3ece9e8f2f.tar.xz
org.eclipse.osee-a98ee52a24b4c0f819121a01781d9d3ece9e8f2f.zip
refinement[ats_ATS37298]: Remove unused framework.jini.event
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jini')
-rw-r--r--plugins/org.eclipse.osee.framework.jini/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventListener.java18
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventService.java21
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java45
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventListener.java22
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedEventListener.java30
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedRemoteType.java39
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteEventListener.java18
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteSubscriber.java26
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEvent.java32
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEventInstance.java50
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/PopupEventType.java33
12 files changed, 0 insertions, 336 deletions
diff --git a/plugins/org.eclipse.osee.framework.jini/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.jini/META-INF/MANIFEST.MF
index 6c6e08fb334..c41e3e2e6a3 100644
--- a/plugins/org.eclipse.osee.framework.jini/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.jini/META-INF/MANIFEST.MF
@@ -7,8 +7,6 @@ Bundle-Activator: org.eclipse.osee.framework.jini.JiniPlugin
Bundle-Vendor: Eclipse Open System Engineering Environment
Export-Package: org.eclipse.osee.framework.jini,
org.eclipse.osee.framework.jini.discovery,
- org.eclipse.osee.framework.jini.event,
- org.eclipse.osee.framework.jini.event.old,
org.eclipse.osee.framework.jini.lease,
org.eclipse.osee.framework.jini.service.core,
org.eclipse.osee.framework.jini.service.directory.service,
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventListener.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventListener.java
deleted file mode 100644
index 6827170b8bc..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventListener.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event;
-
-import java.util.EventListener;
-
-public interface IRemoteEventListener extends EventListener {
-
- public void notify(String event);
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventService.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventService.java
deleted file mode 100644
index 5be5ce63660..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/IRemoteEventService.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event;
-
-import org.eclipse.osee.framework.jini.service.interfaces.IService;
-
-public interface IRemoteEventService extends IService {
-
- // public void publish(String event) throws RemoteException;
- // public void subscribe(EventType eventKey, IOseeRemoteSubscriber subscriber) throws RemoteException;
- // public void unsubscribe(EventType eventKey, IOseeRemoteSubscriber subscriber) throws RemoteException;
- // public OseeLease getLease(IOseeRemoteSubscriber remoteInstance, long duration) throws RemoteException;
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java
deleted file mode 100644
index 6bda8901747..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event;
-
-import net.jini.core.lookup.ServiceItem;
-import org.eclipse.osee.framework.jini.discovery.IServiceLookupListener;
-import org.eclipse.osee.framework.jini.event.old.IOseeRemoteSubscriber;
-
-/**
- * Singleton class which provides an interface for all OSEE Remote Events to the event service.
- *
- * @author David Diepenbrock
- */
-public class RemoteEventHandler implements IServiceLookupListener, IOseeRemoteSubscriber {
-
- @Override
- public void serviceAdded(ServiceItem serviceItem) {
- }
-
- @Override
- public void serviceChanged(ServiceItem serviceItem) {
- }
-
- @Override
- public void serviceRemoved(ServiceItem serviceItem) {
- }
-
- @Override
- public boolean receiveEventType(String event) {
- return false;
- }
-
- @Override
- public boolean receiveEventGuid(String event) {
- return false;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventListener.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventListener.java
deleted file mode 100644
index 5fd50865086..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event;
-
-/**
- * @author Donald G. Dunne
- */
-public class RemoteEventListener implements IRemoteEventListener {
-
- @Override
- public void notify(String event) {
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedEventListener.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedEventListener.java
deleted file mode 100644
index 315e30d0f9c..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedEventListener.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-public class ArtifactModifiedEventListener implements IOseeRemoteEventListener {
-
- @Override
- public void notify(OseeRemoteEvent event) {
-
- if (event.eventData.getEventType().equals(ArtifactModifiedRemoteType.class.getCanonicalName())) {
- try {
- // final long seqNum = event.sequenceNumber;
- final ArtifactModifiedRemoteType data = (ArtifactModifiedRemoteType) event.eventData;
-
- System.err.println("Received guid changed event => " + data.getChangedGuid());
- System.err.println("Received guid changed type => " + data.getType());
- } catch (ClassCastException ex) {
- ex.printStackTrace();
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedRemoteType.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedRemoteType.java
deleted file mode 100644
index cfe0a42e5bf..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/ArtifactModifiedRemoteType.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-/**
- * This class defines the popup event type. Any listener which desires to receive these events can establish a
- * subscription for PopupEventType.class.getCanonicalName().
- *
- * @author Donald G. Dunne
- */
-public class ArtifactModifiedRemoteType extends OseeRemoteEventInstance {
-
- private static final long serialVersionUID = 1665518299340674326L;
- private final String guid;
- private final String type;
-
- public ArtifactModifiedRemoteType(String eventGuid, String changedGuid, String type) {
- super(eventGuid);
- this.guid = changedGuid;
- this.type = type;
- }
-
- public String getChangedGuid() {
- return guid;
- }
-
- public String getType() {
- return type;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteEventListener.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteEventListener.java
deleted file mode 100644
index 7cca4585877..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteEventListener.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-import java.util.EventListener;
-
-public interface IOseeRemoteEventListener extends EventListener {
-
- public void notify(OseeRemoteEvent event);
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteSubscriber.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteSubscriber.java
deleted file mode 100644
index cf64502feba..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/IOseeRemoteSubscriber.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-public interface IOseeRemoteSubscriber extends Remote {
- /**
- * @return false iff the event should no longer be sent to this subscriber
- */
- public boolean receiveEventType(String event) throws RemoteException;
-
- /**
- * @return false iff the event should no longer be sent to this subscriber
- */
- public boolean receiveEventGuid(String event) throws RemoteException;
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEvent.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEvent.java
deleted file mode 100644
index 6522f15c38a..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEvent.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-import java.io.Serializable;
-import java.rmi.MarshalledObject;
-
-public class OseeRemoteEvent implements Serializable {
-
- public final long sequenceNumber;
- public final OseeRemoteEventInstance eventData;
- public final MarshalledObject handback;
- public final String publisherGUID;
-
- private static final long serialVersionUID = -8680199233419549125L;
-
- public OseeRemoteEvent(OseeRemoteEventInstance eventData, long sequenceNumber, MarshalledObject handback, String publisherGUID) {
- this.eventData = eventData;
- this.sequenceNumber = sequenceNumber;
- this.handback = handback;
- this.publisherGUID = publisherGUID;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEventInstance.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEventInstance.java
deleted file mode 100644
index e08709772a8..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/OseeRemoteEventInstance.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-import java.io.Serializable;
-
-/**
- * This class provides all that is needed for sending RemoteEvents. It should be extended for each specific type of
- * event.
- * <p>
- * Listeners can subscribe using <code>&lt;SubClass&gt;.class.getCanonicalName()</code> as the event type ID (unless the
- * subclass overrides getEventType()).
- *
- * @author David Diepenbrock
- */
-public abstract class OseeRemoteEventInstance implements Serializable {
-
- private static final long serialVersionUID = -2226670843874819289L;
- public final String eventGuid;
- private final Class<? extends OseeRemoteEventInstance> myClass;
-
- public OseeRemoteEventInstance(String eventGuid) {
- this.eventGuid = eventGuid;
- myClass = this.getClass();
- }
-
- /**
- * A serializable object which uniquely identifies this event type. Most commonly this will be the class name of the
- * specific EventInstance class. Listeners who have registered using an eventID which evaluate true using .equals()
- * will receive notification of this event. By default the canonical class name is used. It is not recommended for
- * subclasses to override this method.
- *
- * @return a serializable object which uniquely identifies this event type.
- */
- public String getEventType() {
- return myClass.getCanonicalName();
- }
-
- public String getEventGuid() {
- return eventGuid;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/PopupEventType.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/PopupEventType.java
deleted file mode 100644
index 57716bd5feb..00000000000
--- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/old/PopupEventType.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jini.event.old;
-
-/**
- * This class defines the popup event type. Any listener which desires to receive these events can establish a
- * subscription for PopupEventType.class.getCanonicalName().
- *
- * @author David Diepenbrock
- */
-public class PopupEventType extends OseeRemoteEventInstance {
-
- private static final long serialVersionUID = 8818248591835649870L;
- private final String message;
-
- public PopupEventType(String eventGuid, String message) {
- super(eventGuid);
- this.message = message;
- }
-
- public String getMessage() {
- return message;
- }
-
-}

Back to the top