Mail Archive Home | gotm-commits List | August 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Date: Tuesday, August 16, 2005 @ 15:38:07
Author: rouvoy
Path: /cvsroot/gotm/gotm-explorer/src/java/org/objectweb/gotm/browser
Modified: coordination/CoordinationFeatureProcessAction.java
Removed: ComponentFactoryFeatureCreateAction.java
ComponentPoolContext.java ComponentPoolRemoveAction.java
ComponentStringFactoryFeatureCreateAction.java
event/EventContextContainer.java
event/EventListenerFeatureContext.java
* removing deprecated code.
----------------------------------------------------+
ComponentFactoryFeatureCreateAction.java | 55 ------------
ComponentPoolContext.java | 68 ---------------
ComponentPoolRemoveAction.java | 74 -----------------
ComponentStringFactoryFeatureCreateAction.java | 75 -----------------
coordination/CoordinationFeatureProcessAction.java | 6 -
event/EventContextContainer.java | 52 ------------
event/EventListenerFeatureContext.java | 81 -------------------
7 files changed, 3 insertions(+), 408 deletions(-)
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentFactoryFeatureCreateAction.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentFactoryFeatureCreateAction.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentFactoryFeatureCreateAction.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentFactoryFeatureCreateAction.java:1.2
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentFactoryFeatureCreateAction.java
Tue Aug 16 15:38:07 2005
@@ -1,55 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: ComponentFactoryFeatureCreateAction.java,v 1.2 2005/01/10 16:16:53
rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser;
-
-import org.objectweb.gotm.api.utils.FactoryFeature;
-import org.objectweb.util.browser.api.MenuItemTreeView;
-import
org.objectweb.util.browser.plugins.fractal.menu.DefaultFractalMenuItem;
-
-/**
- * Create Action for the Transaction Component Factory.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- */
-public class ComponentFactoryFeatureCreateAction
- extends DefaultFractalMenuItem
-{
- /** <code>count</code> attribute to mark transaction instances. */
- public static int count = 1 ;
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#actionStartedPerformed(org.objectweb.util.browser.api.MenuItemEvent)
- */
- public void actionStartedPerformed(MenuItemTreeView arg0)
- throws Exception
- {
- FactoryFeature fctr = (FactoryFeature) arg0.getSelectedObject();
- arg0.getTree().addEntry("Transaction"+(count++), fctr.create());
- }
-}
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolContext.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolContext.java:1.3
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolContext.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolContext.java:1.3
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolContext.java
Tue Aug 16 15:38:07 2005
@@ -1,68 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: ComponentPoolContext.java,v 1.3 2005/01/10 16:16:53 rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser;
-
-import java.util.Vector;
-
-import org.objectweb.fractal.api.Component;
-import org.objectweb.fractal.api.NoSuchInterfaceException;
-import org.objectweb.fractal.util.Fractal;
-import org.objectweb.gotm.api.utils.ComponentPool;
-import org.objectweb.util.browser.api.Entry;
-import org.objectweb.util.browser.core.naming.DefaultEntry;
-import org.objectweb.util.browser.core.naming.DefaultName;
-import
org.objectweb.util.browser.plugins.fractal.context.DefaultFractalContext;
-
-/**
- * Context for a pool component.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.3 $
- */
-public class ComponentPoolContext
- extends DefaultFractalContext
-{
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.context.DefaultFractalContext#getStartedEntries()
- */
- public Entry[] getStartedEntries() {
- Object[] c = ((ComponentPool) this.object_).getComponents() ;
- Vector list = new Vector();
- for (int i=0 ; i < c.length ; i++) {
- String name="Entry "+i ;
- Component ci = (Component) c[i];
- try {
- name = Fractal.getNameController(ci).getFcName();
- } catch (NoSuchInterfaceException ex) {
- ex.printStackTrace();
- }
- list.add(new DefaultEntry(ci, new DefaultName(name), this));
- }
- return (Entry[]) list.toArray(new Entry[0]);
- }
-}
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolRemoveAction.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolRemoveAction.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolRemoveAction.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolRemoveAction.java:1.2
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentPoolRemoveAction.java
Tue Aug 16 15:38:07 2005
@@ -1,74 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: ComponentPoolRemoveAction.java,v 1.2 2005/01/10 16:16:53 rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser;
-
-import org.objectweb.gotm.api.utils.ComponentPool;
-import org.objectweb.util.browser.api.MenuItem;
-import org.objectweb.util.browser.api.MenuItemTreeView;
-import org.objectweb.util.browser.api.TreeView;
-import
org.objectweb.util.browser.plugins.fractal.menu.DefaultFractalMenuItem;
-
-/**
- * Remove Action available on the Component Pool.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- */
-public class ComponentPoolRemoveAction
- extends DefaultFractalMenuItem
-{
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#actionStartedPerformed(org.objectweb.util.browser.api.MenuItemEvent)
- */
- public void actionStartedPerformed(MenuItemTreeView arg0) throws
Exception {
- // Nothing to filter.
- }
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#actionStoppedPerformed(org.objectweb.util.browser.api.MenuItemEvent)
- */
- public void actionStoppedPerformed(MenuItemTreeView arg0) throws
Exception {
- ComponentPool pool = (ComponentPool) arg0.getParentObject();
- pool.removeComponent(arg0.getSelectedObject());
- }
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#getStartedStatus(org.objectweb.util.browser.api.TreeView)
- */
- public int getStartedStatus(TreeView arg0){
- return MenuItem.DISABLED_STATUS;
- }
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#getStoppedStatus(org.objectweb.util.browser.api.TreeView)
- */
- public int getStoppedStatus(TreeView arg0){
- return MenuItem.ENABLED_STATUS;
- }
-}
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentStringFactoryFeatureCreateAction.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentStringFactoryFeatureCreateAction.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentStringFactoryFeatureCreateAction.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentStringFactoryFeatureCreateAction.java:1.2
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/ComponentStringFactoryFeatureCreateAction.java
Tue Aug 16 15:38:07 2005
@@ -1,75 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: ComponentStringFactoryFeatureCreateAction.java,v 1.2 2005/01/10
16:16:53 rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser;
-
-import org.objectweb.gotm.api.utils.StringFactoryFeature;
-import org.objectweb.util.browser.api.MenuItemTreeView;
-import org.objectweb.util.browser.api.TreeView;
-import org.objectweb.util.browser.gui.api.DialogAction;
-import org.objectweb.util.browser.gui.api.DialogBox;
-import org.objectweb.util.browser.gui.lib.DefaultDialogBox;
-import org.objectweb.util.browser.gui.lib.LabelBox;
-import
org.objectweb.util.browser.plugins.fractal.menu.DefaultFractalMenuItem;
-
-/**
- * Create Action available on the <code>ComponentStringFactoryFeature</code>.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- */
-public class ComponentStringFactoryFeatureCreateAction
- extends DefaultFractalMenuItem
- implements DialogAction
-{
- protected TreeView tree ;
- protected StringFactoryFeature fctr ;
- protected LabelBox label ;
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.api.FractalMenuItem#actionStartedPerformed(org.objectweb.util.browser.api.MenuItemEvent)
- */
- public void actionStartedPerformed(MenuItemTreeView arg0) throws
Exception {
- this.fctr = (StringFactoryFeature) arg0.getSelectedObject();
- this.tree = arg0;
- this.label = new LabelBox("Identity's Name");
-
- DialogBox dialog = new DefaultDialogBox("Factory Feature");
- dialog.addElementBox(this.label);
- dialog.setValidateLabel("create");
- dialog.setValidateAction(this);
- dialog.show();
- }
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.gui.api.DialogAction#executeAction()
- */
- public void executeAction() throws Exception {
- this.tree.getTree().addEntry(this.label.getLabel(),
-
this.fctr.create(this.label.getLabel()));
- }
-}
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/coordination/CoordinationFeatureProcessAction.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/coordination/CoordinationFeatureProcessAction.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/coordination/CoordinationFeatureProcessAction.java:1.3
---
gotm-explorer/src/java/org/objectweb/gotm/browser/coordination/CoordinationFeatureProcessAction.java:1.2
Mon Jul 11 10:27:06 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/coordination/CoordinationFeatureProcessAction.java
Tue Aug 16 15:38:07 2005
@@ -23,7 +23,7 @@
Contributor(s): .
---------------------------------------------------------------------
-$Id: CoordinationFeatureProcessAction.java,v 1.2 2005/07/11 08:27:06 rouvoy
Exp $
+$Id: CoordinationFeatureProcessAction.java,v 1.3 2005/08/16 13:38:07 rouvoy
Exp $
====================================================================*/
package org.objectweb.gotm.browser.coordination;
@@ -46,7 +46,7 @@
/**
* Process Action implementation for the Coordination Feature.
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class CoordinationFeatureProcessAction
extends DefaultFractalMenuItem
@@ -74,6 +74,6 @@
*/
public void actionStartedPerformed(MenuItemTreeView arg0) throws
Exception {
CoordinationFeature coord = (CoordinationFeature)
arg0.getSelectedObject();
- coord.process(new HashMap());
+ coord.execute(new HashMap());
}
}
\ No newline at end of file
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventContextContainer.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventContextContainer.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventContextContainer.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventContextContainer.java:1.2
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventContextContainer.java
Tue Aug 16 15:38:07 2005
@@ -1,52 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: EventContextContainer.java,v 1.2 2005/01/10 16:16:53 rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser.event;
-
-import org.objectweb.transaction.api.event.EventNotificationFeature;
-import org.objectweb.util.browser.core.naming.DefaultContextContainer;
-
-/**
- * Implementation of a <code>DefaultContextContainer</code> to handle
- * <code>EventNotificationFeature</code>
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- */
-public class EventContextContainer
- extends DefaultContextContainer
-{
- /**
- * Default Constructor.
- * @param elf notification features.
- */
- public EventContextContainer(EventNotificationFeature[] elf) {
- for (int i=0;i<elf.length;i++) {
- super.addEntry("Observer"+(i+1),elf[i]);
- }
- }
-}
Index:
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventListenerFeatureContext.java
diff -u
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventListenerFeatureContext.java:1.2
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventListenerFeatureContext.java:removed
---
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventListenerFeatureContext.java:1.2
Mon Jan 10 17:16:53 2005
+++
gotm-explorer/src/java/org/objectweb/gotm/browser/event/EventListenerFeatureContext.java
Tue Aug 16 15:38:07 2005
@@ -1,81 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: EventListenerFeatureContext.java,v 1.2 2005/01/10 16:16:53 rouvoy Exp $
-====================================================================*/
-
-package org.objectweb.gotm.browser.event;
-
-import java.util.Vector;
-
-import org.objectweb.transaction.api.event.Event;
-import org.objectweb.transaction.api.event.EventListenerFeature;
-import org.objectweb.util.browser.api.Entry;
-import org.objectweb.util.browser.core.naming.DefaultEntry;
-import org.objectweb.util.browser.core.naming.DefaultName;
-import
org.objectweb.util.browser.plugins.fractal.context.DefaultFractalContext;
-
-/**
- * Implementation of a <code>DefaultFractalContext</code> for the
- * <code>EventListenerFeature</code>.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- */
-public class EventListenerFeatureContext
- extends DefaultFractalContext
-{
- /** <code>listener</code> . */
- private EventListenerFeature listener ;
-
- /**
- * Provides the current <code>EventListenerFeature</code>.
- * @return Returns the listener.
- */
- protected EventListenerFeature getListener() {
- return this.listener;
- }
-
- /**
- * Defines the current <code>EventListenerFeature</code>.
- * @param listener The listener to set.
- */
- protected void setListener(EventListenerFeature listener) {
- this.listener = listener;
- }
-
- /* (non-Javadoc)
- * @see
org.objectweb.util.browser.plugins.fractal.context.DefaultFractalContext#getStartedEntries()
- */
- public Entry[] getStartedEntries() {
- Event[] events = getListener().getEvents();
- Vector entries = new Vector();
- for (int i=0;i<events.length;i++) {
- entries.add(new DefaultEntry(new
EventContextContainer(getListener().getListeners(events[i])),
- new
DefaultName(events[i].getClass().getName()),
- this));
- }
- return (Entry[]) entries.toArray(new Entry[0]);
- }
-}
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.