[jboss-svn-commits] JBL Code SVN: r6519 - in labs/jbossesb/trunk/product/core: listeners/src/org/jboss/soa/esb/listeners rosetta/src/org/jboss/soa/esb/notification rosetta/src/org/jboss/soa/esb/services rosetta/tests/src/org/jboss/soa/esb/notification services/src/org/jboss/soa/esb/internal/core/objectstore services/src/org/jboss/soa/esb/services services/tests/src/org/jboss/soa/esb/services/tests/objectstore
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Oct 2 08:49:36 EDT 2006
Author: mark.little at jboss.com
Date: 2006-10-02 08:49:17 -0400 (Mon, 02 Oct 2006)
New Revision: 6519
Added:
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/BatchManager.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Encryption.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/NotificationManager.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/PersistManager.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/Storable.java
Removed:
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java
Modified:
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/GpListener.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyUtil.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/DefaultEncryptionFactory.java
labs/jbossesb/trunk/product/core/rosetta/tests/src/org/jboss/soa/esb/notification/NotifyUtilUnitTest.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoSnapTable.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoUidTable.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/tests/objectstore/ObjectStoreFuncTest.java
Log:
Changed names of interfaces to remove i prefix.
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/GpListener.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/GpListener.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/GpListener.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -45,7 +45,7 @@
import org.jboss.soa.esb.notification.NotificationList;
import org.jboss.soa.esb.parameters.ParamRepositoryException;
import org.jboss.soa.esb.parameters.ParamRepositoryFactory;
-import org.jboss.soa.esb.services.InotificationHandler;
+import org.jboss.soa.esb.services.NotificationManager;
import org.jboss.soa.esb.services.NotificationHandlerFactory;
import org.jboss.soa.esb.util.Util;
import org.xml.sax.SAXException;
@@ -618,7 +618,7 @@
}
} // ________________________________
- private static InotificationHandler s_oNH;
+ private static NotificationManager s_oNH;
private static final Object s_oSync = new Integer(0);
@@ -628,7 +628,7 @@
* @return - a reference to an implementation of the interface or null if it
* can't be instantiated
*/
- protected static InotificationHandler getNotifHandler() {
+ protected static NotificationManager getNotifHandler() {
if (null != s_oNH)
return s_oNH;
synchronized (s_oSync) {
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyUtil.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyUtil.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyUtil.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -30,7 +30,7 @@
public class NotifyUtil {
- public static void notifyOK(InotificationHandler p_oNH,
+ public static void notifyOK(NotificationManager p_oNH,
DomElement p_oParent, Serializable p_o, Map p_oCtx) {
try {
DomElement[] oaP = p_oParent.getElementChildren(NotificationList.ELEMENT);
@@ -47,7 +47,7 @@
}
} // __________________________________
- public static void notifyError(InotificationHandler p_oNH,
+ public static void notifyError(NotificationManager p_oNH,
DomElement p_oParent, Object p_o, Map p_oCtx, Exception p_e) {
ByteArrayOutputStream oBO = new ByteArrayOutputStream();
PrintStream oPS = new PrintStream(oBO);
Copied: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/BatchManager.java (from rev 6518, labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java)
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/BatchManager.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -0,0 +1,35 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This 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 (at your option) any later version.
+*
+* This software 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 software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+
+
+package org.jboss.soa.esb.services;
+
+import org.jboss.soa.esb.common.bizclasses.*;
+
+public interface BatchManager
+{
+ public long newBatch () throws Exception;
+ public int addToBatch (String p_s) throws Exception;
+ public void finish () throws Exception;
+ public void commitBatch(BatchProcess p_oBP) throws Exception;
+} //____________________________________________________________________________
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/DefaultEncryptionFactory.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/DefaultEncryptionFactory.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/DefaultEncryptionFactory.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -23,13 +23,13 @@
public class DefaultEncryptionFactory
{
- public static Iencryption getEncrypter()
+ public static Encryption getEncrypter()
{
return new DummyEncrypter();
} //________________________________
- public static Iencryption getEncrypter(Object p_o)
+ public static Encryption getEncrypter(Object p_o)
{
return new DummyEncrypter();
@@ -40,7 +40,7 @@
* encrypt/decrypt methods for a byte[]
*
*/
- private static class DummyEncrypter implements Iencryption
+ private static class DummyEncrypter implements Encryption
{
// private static Cipher s_oCC;
// static
Copied: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Encryption.java (from rev 6518, labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java)
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Encryption.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -0,0 +1,28 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This 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 (at your option) any later version.
+*
+* This software 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 software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.soa.esb.services;
+
+public interface Encryption
+{
+ public byte [] encrypt (byte [] p_ba, Object p_oParms) throws Exception;
+ public byte [] decrypt (byte [] p_ba, Object p_oParms) throws Exception;
+}
Deleted: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IbatchHandler.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -1,35 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software 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 software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-
-
-package org.jboss.soa.esb.services;
-
-import org.jboss.soa.esb.common.bizclasses.*;
-
-public interface IbatchHandler
-{
- public long newBatch () throws Exception;
- public int addToBatch (String p_s) throws Exception;
- public void finish () throws Exception;
- public void commitBatch(BatchProcess p_oBP) throws Exception;
-} //____________________________________________________________________________
Deleted: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/Iencryption.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -1,28 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software 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 software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.soa.esb.services;
-
-public interface Iencryption
-{
- public byte [] encrypt (byte [] p_ba, Object p_oParms) throws Exception;
- public byte [] decrypt (byte [] p_ba, Object p_oParms) throws Exception;
-}
Deleted: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This 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 (at your option) any later version.
- *
- * This software 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 software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.soa.esb.services;
-
-import org.jboss.soa.esb.helpers.*;
-import java.io.Serializable;
-
-/**
- * Use this interface to group all methods that can be useful to
- * trigger events that can be caught by listeners, within or outside of
- * the Rosetta framework
- *
- * @author Esteban
- *
- */
-public interface InotificationHandler {
-
- // REVIEW: Add some Javadoc for this interface!!!
-/**
- * public void sendNotifications(DomElement p_oP, Serializable p_o)
- *
- * @param p_oP DomElement - A serialized NotificationList object (as a DomElement)
- * @param p_o The Serializable object that will be sent to all the
- * NotificationTarget objects contained in the NotificationList
- *
- * <p/>Implementations of this interface will be responsible of sending
- * the Serializable (arg 1) to destinations determined by each
- * NotificationTarget contained in the NotificationList represented by
- * arg 0.
- * <p/>Please see org.jboss.soa.esb.notification package for existing
- * classes that extend NotificationTarget (Files, Queues, Topics, SqlTable...)
- *
- * <p/> Invoking processes are responsible to provide dynamic content
- * of notification
- * <p/> The NotificationTarget objects can define 'static' content for
- * (suc as contents of certain columns in SQL, or message properties for
- * JMS notification targets, etc.
- */
- public void sendNotifications(DomElement p_oP, Serializable p_o) throws Exception;
-
- public void sendNotifications(Serializable p_o) throws Exception;
-} // ____________________________________________________________________________
Deleted: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software 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 software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-
-package org.jboss.soa.esb.services;
-
-import org.jboss.soa.esb.util.*;
-import java.util.*;
-
-public interface IpersistHandler
-{
- public long getUidChunk(int p_iHowMany) throws Exception;
- public ObjLocator[] getLocatorList(Class p_oCls,Properties p_oProp) throws Exception;
-
- public long addObject(BaseBusinessObject p_oQ) throws Exception;
- public BaseBusinessObject getObject(Class p_oCls,long p_lUid) throws Exception;
- public void rplObject(BaseBusinessObject p_o) throws Exception;
- public void rmvObject(Class p_oCls,long p_lUid) throws Exception;
-} //____________________________________________________________________________
Copied: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/NotificationManager.java (from rev 6518, labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java)
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/InotificationHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/NotificationManager.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.services;
+
+import org.jboss.soa.esb.helpers.*;
+import java.io.Serializable;
+
+/**
+ * Use this interface to group all methods that can be useful to
+ * trigger events that can be caught by listeners, within or outside of
+ * the Rosetta framework
+ *
+ * @author Esteban
+ *
+ */
+public interface NotificationManager {
+
+ // REVIEW: Add some Javadoc for this interface!!!
+/**
+ * public void sendNotifications(DomElement p_oP, Serializable p_o)
+ *
+ * @param p_oP DomElement - A serialized NotificationList object (as a DomElement)
+ * @param p_o The Serializable object that will be sent to all the
+ * NotificationTarget objects contained in the NotificationList
+ *
+ * <p/>Implementations of this interface will be responsible of sending
+ * the Serializable (arg 1) to destinations determined by each
+ * NotificationTarget contained in the NotificationList represented by
+ * arg 0.
+ * <p/>Please see org.jboss.soa.esb.notification package for existing
+ * classes that extend NotificationTarget (Files, Queues, Topics, SqlTable...)
+ *
+ * <p/> Invoking processes are responsible to provide dynamic content
+ * of notification
+ * <p/> The NotificationTarget objects can define 'static' content for
+ * (suc as contents of certain columns in SQL, or message properties for
+ * JMS notification targets, etc.
+ */
+ public void sendNotifications(DomElement p_oP, Serializable p_o) throws Exception;
+
+ public void sendNotifications(Serializable p_o) throws Exception;
+} // ____________________________________________________________________________
Copied: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/PersistManager.java (from rev 6518, labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java)
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/IpersistHandler.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/PersistManager.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -0,0 +1,38 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This 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 (at your option) any later version.
+*
+* This software 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 software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+
+package org.jboss.soa.esb.services;
+
+import org.jboss.soa.esb.util.*;
+import java.util.*;
+
+public interface PersistManager
+{
+ public long getUidChunk(int p_iHowMany) throws Exception;
+ public ObjLocator[] getLocatorList(Class p_oCls,Properties p_oProp) throws Exception;
+
+ public long addObject(BaseBusinessObject p_oQ) throws Exception;
+ public BaseBusinessObject getObject(Class p_oCls,long p_lUid) throws Exception;
+ public void rplObject(BaseBusinessObject p_o) throws Exception;
+ public void rmvObject(Class p_oCls,long p_lUid) throws Exception;
+} //____________________________________________________________________________
Modified: labs/jbossesb/trunk/product/core/rosetta/tests/src/org/jboss/soa/esb/notification/NotifyUtilUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/tests/src/org/jboss/soa/esb/notification/NotifyUtilUnitTest.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/rosetta/tests/src/org/jboss/soa/esb/notification/NotifyUtilUnitTest.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -27,7 +27,7 @@
import java.util.List;
import org.jboss.soa.esb.helpers.DomElement;
-import org.jboss.soa.esb.services.InotificationHandler;
+import org.jboss.soa.esb.services.NotificationManager;
import junit.framework.TestCase;
@@ -66,7 +66,7 @@
rootEl.addElemChild(notifEl);
}
- private class TestNotificationHandler implements InotificationHandler {
+ private class TestNotificationHandler implements NotificationManager {
private List<String> messages = new ArrayList<String>();
public void sendNotifications(DomElement p_oP, Serializable p_o) throws Exception {
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoSnapTable.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoSnapTable.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoSnapTable.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -27,7 +27,7 @@
import org.jboss.soa.esb.helpers.persist.JdbcCleanConn;
import org.jboss.soa.esb.helpers.persist.SqlDbTable;
import org.jboss.soa.esb.services.DefaultEncryptionFactory;
-import org.jboss.soa.esb.services.Iencryption;
+import org.jboss.soa.esb.services.Encryption;
import org.jboss.soa.esb.util.BobjStdDTO;
import org.jboss.soa.esb.util.Util;
@@ -224,11 +224,11 @@
}
} //________________________________
- private Iencryption m_oMangler;
+ private Encryption m_oMangler;
private static final Object s_oSync = new Integer(0);
- private Iencryption getMangler() throws Exception
+ private Encryption getMangler() throws Exception
{ return getMangler(null); }
- private Iencryption getMangler(Object p_oFactParms) throws Exception
+ private Encryption getMangler(Object p_oFactParms) throws Exception
{ if (null!=m_oMangler)
return m_oMangler;
synchronized(s_oSync)
@@ -241,7 +241,7 @@
oFactClass = Class.forName(sFactoryName);
Method oMth = oFactClass.getMethod("getEncrypter"
,new Class[] {Object.class});
- m_oMangler = (Iencryption) oMth.invoke(null,p_oFactParms);
+ m_oMangler = (Encryption) oMth.invoke(null,p_oFactParms);
}
return m_oMangler;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoUidTable.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoUidTable.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/DaoUidTable.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -34,7 +34,7 @@
* Data access object for the SQL table that the Object Store uses to assign
* Unique Identifiers (UID) to any object in the framework
*
- * @see IpersistHandler#getUidChunk(int)
+ * @see PersistManager#getUidChunk(int)
*/
public class DaoUidTable extends SqlDbTable {
/**
Deleted: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -1,38 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 (at your option) any later version.
-*
-* This software 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 software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.jboss.soa.esb.internal.core.objectstore;
-
-/**
- * Provides methods to learn about how and where a BusinessObject will be stored
- * and retrieved from a BobjStore
- * @see BobjStore
- */
-
-public interface ItfStorable
-{
- public String getSnapType ();
- public String getSnapTable ();
- public String getLocatorTable ();
- public String getLocatorTable (int p_i);
- public boolean isEncrypted ();
-} // ___________________________________________________________________________
Copied: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/Storable.java (from rev 6518, labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java)
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/ItfStorable.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/internal/core/objectstore/Storable.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -0,0 +1,38 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This 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 (at your option) any later version.
+*
+* This software 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 software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.soa.esb.internal.core.objectstore;
+
+/**
+ * Provides methods to learn about how and where a BusinessObject will be stored
+ * and retrieved from a BobjStore
+ * @see BobjStore
+ */
+
+public interface Storable
+{
+ public String getSnapType ();
+ public String getSnapTable ();
+ public String getLocatorTable ();
+ public String getLocatorTable (int p_i);
+ public boolean isEncrypted ();
+} // ___________________________________________________________________________
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -26,7 +26,7 @@
import javax.naming.Context;
-public class BatchHandlerBsDelegateLocal implements IbatchHandler
+public class BatchHandlerBsDelegateLocal implements BatchManager
{
private BatchHandler m_oBatchH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -28,7 +28,7 @@
import javax.naming.Context;
-public class BatchHandlerBsDelegateRemote implements IbatchHandler
+public class BatchHandlerBsDelegateRemote implements BatchManager
{
private BatchHandler m_oBatchH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -34,7 +34,7 @@
private final static int REM=1;
private final static int MOK=2;
- public static IbatchHandler getBatchHandler(String p_sLocRem,
+ public static BatchManager getBatchHandler(String p_sLocRem,
String p_sJndiType, String p_sJndiServer) throws Exception
{
int iIndex = Arrays.binarySearch(s_saTypes, p_sLocRem.toLowerCase());
@@ -52,7 +52,7 @@
throw new Exception("Invalid Batch Handler Delegate <" + p_sLocRem + ">");
}
- public static IbatchHandler getBatchHandler(Context p_oCtx)
+ public static BatchManager getBatchHandler(Context p_oCtx)
throws Exception
{
return new BatchHandlerBsDelegateRemote(p_oCtx);
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -28,7 +28,7 @@
import javax.naming.Context;
import java.io.Serializable;
-public class NotifHandlerBsDelegateLocal implements InotificationHandler
+public class NotifHandlerBsDelegateLocal implements NotificationManager
{
private NotificationHandler m_oNotifH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -29,7 +29,7 @@
import javax.naming.Context;
import java.io.Serializable;
-public class NotifHandlerBsDelegateRemote implements InotificationHandler
+public class NotifHandlerBsDelegateRemote implements NotificationManager
{
private NotificationHandler m_oNotifH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -37,7 +37,7 @@
private final static int REM=1;
private final static int MOK=2;
- public static InotificationHandler getNotifHandler
+ public static NotificationManager getNotifHandler
(String p_sLocRem, String p_sJndiType, String p_sJndiServer) throws Exception
{
int iIndex = Arrays.binarySearch(s_saTypes,p_sLocRem.toLowerCase());
@@ -52,7 +52,7 @@
throw new Exception("Invalid Notification Handler Delegate <" + p_sLocRem + ">");
}
- private static InotificationHandler getNotifHandler(Context p_oCtx) throws Exception
+ private static NotificationManager getNotifHandler(Context p_oCtx) throws Exception
{
return new NotifHandlerBsDelegateRemote(p_oCtx);
}
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -32,7 +32,7 @@
import java.util.Properties;
-public class PersistHandlerBsDelegateLocal implements IpersistHandler
+public class PersistHandlerBsDelegateLocal implements PersistManager
{
private PersistHandler m_oSnapH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -32,7 +32,7 @@
import java.util.Properties;
-public class PersistHandlerBsDelegateRemote implements IpersistHandler
+public class PersistHandlerBsDelegateRemote implements PersistManager
{
private PersistHandler m_oSnapH;
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -36,7 +36,7 @@
private final static int REM=1;
private final static int MOK=2;
- public static IpersistHandler getPersistHandler
+ public static PersistManager getPersistHandler
(String p_sLocRem, String p_sJndiType, String p_sJndiServer) throws Exception
{
int iIndex = Arrays.binarySearch(s_saTypes,p_sLocRem.toLowerCase());
@@ -51,7 +51,7 @@
throw new Exception("Invalid Persist Handler Delegate <" + p_sLocRem + ">");
}
- public static IpersistHandler getPersistHandler(Context p_oCtx) throws Exception
+ public static PersistManager getPersistHandler(Context p_oCtx) throws Exception
{
return new PersistHandlerBsDelegateRemote(p_oCtx);
}
Modified: labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/tests/objectstore/ObjectStoreFuncTest.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/tests/objectstore/ObjectStoreFuncTest.java 2006-10-02 10:32:02 UTC (rev 6518)
+++ labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/tests/objectstore/ObjectStoreFuncTest.java 2006-10-02 12:49:17 UTC (rev 6519)
@@ -22,7 +22,7 @@
package org.jboss.soa.esb.services.tests.objectstore;
import org.jboss.soa.esb.common.tests.BaseTest;
-import org.jboss.soa.esb.services.IpersistHandler;
+import org.jboss.soa.esb.services.PersistManager;
// DON'T FORGET !!
// The Rosetta Application server has to be up and running
@@ -30,7 +30,7 @@
public class ObjectStoreFuncTest extends BaseTest
{
- private static IpersistHandler m_oH;
+ private static PersistManager m_oH;
public ObjectStoreFuncTest() {
}
More information about the jboss-svn-commits
mailing list