You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2010/11/17 08:24:39 UTC
svn commit: r1035936 [3/3] - in /incubator/isis/trunk:
alternatives/objectstore/xml/src/main/java/org/apache/isis/alternatives/objectstore/xml/
alternatives/objectstore/xml/src/main/java/org/apache/isis/alternatives/objectstore/xml/internal/commands/
a...
Modified: incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/Worker.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/Worker.java?rev=1035936&r1=1035935&r2=1035936&view=diff
==============================================================================
--- incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/Worker.java (original)
+++ incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/Worker.java Wed Nov 17 07:24:36 2010
@@ -21,22 +21,12 @@
package org.apache.isis.alternatives.remoting.transport.sockets.shared;
import java.io.IOException;
-import java.io.PrintWriter;
-import java.io.StringWriter;
import java.net.SocketException;
-import org.apache.log4j.Logger;
-import org.apache.isis.alternatives.remoting.exchange.OpenSessionRequest;
-import org.apache.isis.alternatives.remoting.exchange.Request;
-import org.apache.isis.alternatives.remoting.exchange.ResponseEnvelope;
import org.apache.isis.alternatives.remoting.server.ServerConnection;
import org.apache.isis.alternatives.remoting.transport.ServerConnectionHandler;
-import org.apache.isis.core.commons.debug.DebugInfo;
import org.apache.isis.core.commons.debug.DebugString;
-import org.apache.isis.core.commons.exceptions.IsisException;
-import org.apache.isis.core.metamodel.authentication.AuthenticationSession;
-import org.apache.isis.core.runtime.context.IsisContext;
-import org.apache.isis.core.runtime.system.internal.monitor.Monitor;
+import org.apache.log4j.Logger;
public class Worker implements Runnable {
private static final Logger LOG = Logger.getLogger(Worker.class);
Modified: incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/WorkerPool.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/WorkerPool.java?rev=1035936&r1=1035935&r2=1035936&view=diff
==============================================================================
--- incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/WorkerPool.java (original)
+++ incubator/isis/trunk/alternatives/remoting/transport-sockets/src/main/java/org/apache/isis/alternatives/remoting/transport/sockets/shared/WorkerPool.java Wed Nov 17 07:24:36 2010
@@ -25,9 +25,9 @@ import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.Vector;
-import org.apache.log4j.Logger;
import org.apache.isis.core.commons.debug.DebugString;
import org.apache.isis.core.commons.exceptions.IsisException;
+import org.apache.log4j.Logger;
// REVIEW should this class be replaced with something from concurrent.util ?
Modified: incubator/isis/trunk/defaults/bytecode/src/main/java/org/apache/isis/defaults/bytecode/future/internal/EvaluatingMethodInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/defaults/bytecode/src/main/java/org/apache/isis/defaults/bytecode/future/internal/EvaluatingMethodInterceptor.java?rev=1035936&r1=1035935&r2=1035936&view=diff
==============================================================================
--- incubator/isis/trunk/defaults/bytecode/src/main/java/org/apache/isis/defaults/bytecode/future/internal/EvaluatingMethodInterceptor.java (original)
+++ incubator/isis/trunk/defaults/bytecode/src/main/java/org/apache/isis/defaults/bytecode/future/internal/EvaluatingMethodInterceptor.java Wed Nov 17 07:24:36 2010
@@ -17,31 +17,29 @@
* under the License.
*/
+package org.apache.isis.defaults.bytecode.future.internal;
+
+import java.lang.reflect.Method;
+
+import net.sf.cglib.proxy.MethodInterceptor;
+import net.sf.cglib.proxy.MethodProxy;
-package org.apache.isis.defaults.bytecode.future.internal;
-
-import java.lang.reflect.Method;
-
-import net.sf.cglib.proxy.MethodInterceptor;
-import net.sf.cglib.proxy.MethodProxy;
-
import org.apache.isis.core.commons.futures.FutureResultFactory;
-
-final class EvaluatingMethodInterceptor<T> implements
- MethodInterceptor {
-
- private final FutureResultFactory<T> resultFactory;
- private T result;
-
- public EvaluatingMethodInterceptor(FutureResultFactory<T> resultFactory) {
- this.resultFactory = resultFactory;
- }
-
- public synchronized Object intercept(Object obj, Method method, Object[] args,
- MethodProxy proxy) throws Throwable {
- if (result == null) {
- result = resultFactory.getResult();
- }
- return method.invoke(result, args);
- }
+
+public final class EvaluatingMethodInterceptor<T> implements MethodInterceptor {
+
+ private final FutureResultFactory<T> resultFactory;
+ private T result;
+
+ public EvaluatingMethodInterceptor(FutureResultFactory<T> resultFactory) {
+ this.resultFactory = resultFactory;
+ }
+
+ @Override
+ public synchronized Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
+ if (result == null) {
+ result = resultFactory.getResult();
+ }
+ return method.invoke(result, args);
+ }
}
\ No newline at end of file
Modified: incubator/isis/trunk/viewer/bdd/src/docbkx/guide/isis-bdd-viewer.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/viewer/bdd/src/docbkx/guide/isis-bdd-viewer.xml?rev=1035936&r1=1035935&r2=1035936&view=diff
==============================================================================
--- incubator/isis/trunk/viewer/bdd/src/docbkx/guide/isis-bdd-viewer.xml (original)
+++ incubator/isis/trunk/viewer/bdd/src/docbkx/guide/isis-bdd-viewer.xml Wed Nov 17 07:24:36 2010
@@ -1113,33 +1113,47 @@ and running in <span concordion:set="
<sect1 id="sec.UserInteraction">
<title>User Interaction</title>
- <para>User interaction fixtures appear in the main body of the test, for
- the "given" (to setup the rest of the state of the system, typically
- transactional objects), for the "when" (the interaction being tested) or
- the "then" (assertions on the state after the interaction being
- tested).</para>
+ <para>User interaction fixtures appear predominantly in the main body of
+ the test, either to simulating user interactions or to assert on the
+ results of those actions. </para>
<sect2 id="sec.UsingIsisViewer">
<title>Using Isis Viewer / Using Isis Viewer For Setup</title>
- <para></para>
+ <para>The centrepiece of the BDD framework, simulates interacting with
+ domain objects as if through a viewer. Using this feature, the story
+ can interact with objects, check their state, alias referenced or
+ returned objects.</para>
+
+ <para>The "For Setup" version disables checks for visibility and
+ usability, making it easier to reuse functionality for setting up
+ objects prior to a test scenario (the "given"). The
+ <classname>DebugObjectStore</classname> fixture (<xref
+ linkend="sec.DebugObjectStore" />) can be used to check the state of
+ objects created.</para>
<sect3>
<title>Common</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>Concordion</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>FitNesse</title>
<para></para>
+
+ <para></para>
</sect3>
</sect2>
@@ -1148,22 +1162,30 @@ and running in <span concordion:set="
<para></para>
+ <para></para>
+
<sect3>
<title>Common</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>Concordion</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>FitNesse</title>
<para></para>
+
+ <para></para>
</sect3>
</sect2>
@@ -1172,22 +1194,30 @@ and running in <span concordion:set="
<para></para>
+ <para></para>
+
<sect3>
<title>Common</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>Concordion</title>
<para></para>
+
+ <para></para>
</sect3>
<sect3>
<title>FitNesse</title>
<para></para>
+
+ <para></para>
</sect3>
</sect2>