incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danhayw...@apache.org
Subject svn commit: r1091590 [1/4] - in /incubator/isis/trunk: ./ applib/src/docbkx/guide/ core/commons/src/main/java/org/apache/isis/core/commons/authentication/ core/commons/src/main/java/org/apache/isis/core/commons/components/ core/commons/src/main/java/or...
Date Tue, 12 Apr 2011 22:37:17 GMT
Author: danhaywood
Date: Tue Apr 12 22:37:15 2011
New Revision: 1091590

URL: http://svn.apache.org/viewvc?rev=1091590&view=rev
Log:
working on the core documentation; recombined the progmodels guides into single doc; recombined
the security guides into single doc; removed oai.core.commons.futures package since not used
anymore

Added:
    incubator/isis/trunk/progmodels/src/docbkx/
      - copied from r1091133, incubator/isis/trunk/progmodels/groovy/src/docbkx/
    incubator/isis/trunk/progmodels/src/docbkx/guide/isis-progmodels.xml
      - copied, changed from r1091133, incubator/isis/trunk/progmodels/groovy/src/docbkx/guide/isis-groovy-support.xml
    incubator/isis/trunk/security/src/docbkx/
      - copied from r1091133, incubator/isis/trunk/security/ldap/src/docbkx/
    incubator/isis/trunk/security/src/docbkx/guide/isis-security.xml
      - copied, changed from r1091133, incubator/isis/trunk/security/ldap/src/docbkx/guide/isis-ldap-security.xml
Removed:
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/futures/
    incubator/isis/trunk/core/src/docbkx/guide/images/HexagonalArchitectureOverview.png
    incubator/isis/trunk/progmodels/groovy/src/docbkx/
    incubator/isis/trunk/progmodels/src/docbkx/guide/isis-groovy-support.xml
    incubator/isis/trunk/progmodels/wrapper/src/docbkx/
    incubator/isis/trunk/runtimes/dflt/bytecode/dflt/src/main/java/org/apache/isis/runtimes/dflt/bytecode/dflt/future/FutureFactoryCglib.java
    incubator/isis/trunk/runtimes/dflt/bytecode/dflt/src/main/java/org/apache/isis/runtimes/dflt/bytecode/dflt/future/internal/
    incubator/isis/trunk/runtimes/dflt/bytecode/dflt/src/test/java/org/apache/isis/runtimes/dflt/bytecode/dflt/future/
    incubator/isis/trunk/security/file/src/docbkx/
    incubator/isis/trunk/security/ldap/src/docbkx/
    incubator/isis/trunk/security/src/docbkx/guide/isis-ldap-security.xml
Modified:
    incubator/isis/trunk/applib/src/docbkx/guide/isis-applib.xml
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/authentication/AuthenticationSession.java
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/components/Installer.java
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/IsisConfigurationDefault.java
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/ensure/Ensure.java
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/lang/ListUtils.java
    incubator/isis/trunk/core/runtime/src/main/java/   (props changed)
    incubator/isis/trunk/core/src/docbkx/guide/images/common/architecture-perspective.png
    incubator/isis/trunk/core/src/docbkx/guide/images/common/composition-perspective.png
    incubator/isis/trunk/core/src/docbkx/guide/isis-core.xml
    incubator/isis/trunk/core/testsupport/src/main/java/org/apache/isis/core/testsupport/testdomain/Movie.java
    incubator/isis/trunk/core/testsupport/src/main/java/org/apache/isis/core/testsupport/value/ValueTypeContractTestAbstract.java
    incubator/isis/trunk/core/webapp/src/main/java/   (props changed)
    incubator/isis/trunk/examples/metamodel-examples/namefile/pom.xml
    incubator/isis/trunk/examples/shopping-cart/cart/pom.xml
    incubator/isis/trunk/examples/shopping-cart/catalogue/pom.xml
    incubator/isis/trunk/pom.xml
    incubator/isis/trunk/progmodels/groovy/pom.xml
    incubator/isis/trunk/progmodels/groovy/src/site/site.xml
    incubator/isis/trunk/progmodels/pom.xml
    incubator/isis/trunk/progmodels/src/site/site.xml
    incubator/isis/trunk/progmodels/wrapper/pom.xml
    incubator/isis/trunk/progmodels/wrapper/src/site/site.xml
    incubator/isis/trunk/runtimes/dflt/bytecode/dflt/src/main/java/org/apache/isis/runtimes/dflt/bytecode/dflt/objectfactory/internal/ObjectResolveAndObjectChangedEnhancer.java
    incubator/isis/trunk/runtimes/dflt/profilestores/xml/src/main/java/org/apache/isis/runtimes/dflt/profilestores/xml/XmlUserProfileStoreInstaller.java
    incubator/isis/trunk/runtimes/dflt/src/docbkx/guide/isis-default-runtime.xml
    incubator/isis/trunk/security/file/pom.xml
    incubator/isis/trunk/security/file/src/main/java/org/apache/isis/security/file/authentication/FileAuthenticationManagerInstaller.java
    incubator/isis/trunk/security/file/src/site/site.xml
    incubator/isis/trunk/security/ldap/pom.xml
    incubator/isis/trunk/security/ldap/src/site/site.xml
    incubator/isis/trunk/security/pom.xml
    incubator/isis/trunk/security/src/site/site.xml
    incubator/isis/trunk/src/site/apt/documentation.apt
    incubator/isis/trunk/src/site/apt/quickstart-app.apt
    incubator/isis/trunk/src/site/resources/images/HexagonalArchitectureOverview.odg
    incubator/isis/trunk/src/site/resources/images/HexagonalArchitectureOverview.png
    incubator/isis/trunk/src/site/resources/presentations/IntroducingApacheIsis-notes.pdf
    incubator/isis/trunk/src/site/resources/presentations/IntroducingApacheIsis-slides.pdf
    incubator/isis/trunk/src/site/resources/presentations/IntroducingApacheIsis.odp
    incubator/isis/trunk/src/site/resources/presentations/IntroducingApacheIsis.ppt
    incubator/isis/trunk/src/site/resources/presentations/IntroducingApacheIsis.pptx

Modified: incubator/isis/trunk/applib/src/docbkx/guide/isis-applib.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/applib/src/docbkx/guide/isis-applib.xml?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/applib/src/docbkx/guide/isis-applib.xml (original)
+++ incubator/isis/trunk/applib/src/docbkx/guide/isis-applib.xml Tue Apr 12 22:37:15 2011
@@ -189,7 +189,9 @@
       <emphasis>Apache Isis</emphasis> than this.</para>
 
       <para>This chapter introduces the Apache Isis and the naked objects
-      pattern by way of a series of questions and answers.</para>
+      pattern by way of a series of questions and answers. It is adapted from
+      an <ulink url="www.infoq.com/articles/haywood-ddd-no">interview
+      originally published on InfoQ</ulink>.</para>
 
       <sect1>
         <title>Apache Isis implements naked objects pattern... but what is
@@ -709,7 +711,7 @@
         <para>Once you've got the archetype application running, you're ready
         to start developing your own domain objects. But no matter what
         application you are developing, you'll need to understand the
-        <emphasis>Isis programming model</emphasis>. </para>
+        <emphasis>Isis programming model</emphasis>.</para>
 
         <para>The programming model is the set of annotations and programming
         conventions that Isis recognizes. You'll find full details of the
@@ -794,7 +796,7 @@
             <para>The RESTful viewer (in <filename>viewers/restful</filename>)
             is designed to expose your domain objects through a <ulink
             url="http://en.wikipedia.org/wiki/Representational_State_Transfer">RESTful</ulink>
-            interface. </para>
+            interface.</para>
 
             <para>The intention of this viewer is to allow programmatic access
             to your domain objects from other (perhaps non-Java) clients. The

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/authentication/AuthenticationSession.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/authentication/AuthenticationSession.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/authentication/AuthenticationSession.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/authentication/AuthenticationSession.java
Tue Apr 12 22:37:15 2011
@@ -62,5 +62,4 @@ public interface AuthenticationSession e
      * @see #getAttribute(String)
      */
     public void setAttribute(String attributeName, Object attribute);
-
 }

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/components/Installer.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/components/Installer.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/components/Installer.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/components/Installer.java
Tue Apr 12 22:37:15 2011
@@ -22,18 +22,21 @@ package org.apache.isis.core.commons.com
 
 import java.util.List;
 
-import com.google.inject.Injector;
-import com.google.inject.Module;
-
 /**
- * A factory for a component, used during it boot strapping process.
+ * A factory for a {@link Component}, defining that component's {@link #getType() type} and
its
+ * {@link #getName() name}.  
+ * 
+ * <p>
+ * The ({@link #getType() type}, {@link #getName() name}) is expected to be 
+ * a unique identifier of a component.
  * 
  * <p>
- * All installers listed (by class name) in
- * <tt>installer-registry.properties</tt> are loaded when the boot strap class
- * is initially loaded. Then named installers are used during boot to create
- * components for the system. The name method specified is the name that the
- * component can be installed by.
+ * The <i>default runtime</i> (<tt>org.apache.isis.runtimes.dflt</tt>
module),
+ * which adopts a service locator design, 
+ * uses the <tt>installer-registry.properties</tt> resource as a registry
+ * of all available installers.  The installers are loaded and indexed by
+ * their name and type.  Other runtime implementations may use different
+ * approaches.
  */
 public interface Installer extends ApplicationScopedComponent {
 
@@ -89,11 +92,6 @@ public interface Installer extends Appli
 	List<String> getConfigurationResources();
 	
 	/**
-	 * The {@link Module} used to bootstrap the component.
-	 */
-	Module getModule();
-	
-	/**
 	 * The (classes of) the types that this installer makes available in the {@link #getModule()
module}.
 	 */
 	List<Class<?>> getTypes();

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java
Tue Apr 12 22:37:15 2011
@@ -23,11 +23,9 @@ package org.apache.isis.core.commons.con
 import java.util.Collections;
 import java.util.List;
 
-import com.google.inject.Module;
-import com.google.inject.internal.Lists;
-import com.google.inject.util.Modules;
-
 import org.apache.isis.core.commons.components.Installer;
+
+import com.google.inject.internal.Lists;
 
 public abstract class InstallerAbstract implements Installer,
 		IsisConfigurationBuilderAware {
@@ -75,10 +73,10 @@ public abstract class InstallerAbstract 
 	 */
 	@Override
     public List<String> getConfigurationResources() {
-		List<String> resourceList = Lists.newArrayList();
-		String componentFile = getType() + ".properties";
+		final List<String> resourceList = Lists.newArrayList();
+		final String componentFile = getType() + ".properties";
 		resourceList.add(componentFile);
-		String componentImplementationFile = getType() + "_" + getName() + ".properties";
+		final String componentImplementationFile = getType() + "_" + getName() + ".properties";
 		resourceList.add(componentImplementationFile);
 		addConfigurationResources(resourceList);
 		return Collections.unmodifiableList(resourceList);
@@ -167,11 +165,6 @@ public abstract class InstallerAbstract 
 		}
 	}
 	
-	@Override
-	public Module getModule() {
-		return Modules.EMPTY_MODULE;
-	}
-
 	/**
 	 * Helper for subclasses implementing {@link #getTypes()}.
 	 */

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/IsisConfigurationDefault.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/IsisConfigurationDefault.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/IsisConfigurationDefault.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/IsisConfigurationDefault.java
Tue Apr 12 22:37:15 2011
@@ -76,7 +76,7 @@ public class IsisConfigurationDefault im
      * Add the properties from an existing Properties object.
      */
     public void add(final Properties properties) {
-        final Enumeration e = properties.propertyNames();
+        final Enumeration<?> e = properties.propertyNames();
         while (e.hasMoreElements()) {
             final String name = (String) e.nextElement();
             this.properties.put(name, properties.getProperty(name));
@@ -106,7 +106,7 @@ public class IsisConfigurationDefault im
         }
         final int prefixLength = startsWith.length();
 
-        final Enumeration e = properties.keys();
+        final Enumeration<?> e = properties.keys();
         while (e.hasMoreElements()) {
             final String key = (String) e.nextElement();
             if (key.startsWith(startsWith)) {
@@ -196,7 +196,7 @@ public class IsisConfigurationDefault im
     public void debugData(final DebugBuilder str) {
         str.appendln("Resource Stream Source", resourceStreamSource);
         str.appendln();
-        final Enumeration names = properties.propertyNames();
+        final Enumeration<?> names = properties.propertyNames();
         while (names.hasMoreElements()) {
             final String name = (String) names.nextElement();
             str.append(name, 55);
@@ -295,7 +295,7 @@ public class IsisConfigurationDefault im
         final int prefixLength = "".length();
 
         final Properties pp = new Properties();
-        final Enumeration e = properties.keys();
+        final Enumeration<?> e = properties.keys();
         while (e.hasMoreElements()) {
             final String key = (String) e.nextElement();
             if (key.startsWith(withPrefix)) {

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/ensure/Ensure.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/ensure/Ensure.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/ensure/Ensure.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/ensure/Ensure.java
Tue Apr 12 22:37:15 2011
@@ -23,8 +23,6 @@ package org.apache.isis.core.commons.ens
 import org.hamcrest.Matcher;
 import org.hamcrest.StringDescription;
 
-import com.google.common.base.Preconditions;
-
 
 /**
  * Uses the {@link Matcher Hamcrest API} as a means of verifying arguments and so on.

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/lang/ListUtils.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/lang/ListUtils.java?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/lang/ListUtils.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/lang/ListUtils.java
Tue Apr 12 22:37:15 2011
@@ -68,13 +68,13 @@ public final class ListUtils {
         }
     }
 
-    @SuppressWarnings("unchecked")
     public
     static List<Object> asList(final Object[] objectArray) {
         final List<Object> list = new ArrayList<Object>();
         for (int i = 0; i < objectArray.length; i++) {
             if (Collection.class.isAssignableFrom(objectArray[i].getClass())) {
-                Collection collection = (Collection) objectArray[i];
+                @SuppressWarnings("rawtypes")
+				Collection collection = (Collection) objectArray[i];
                 list.addAll(asList(collection.toArray()));
             } else {
                 list.add(objectArray[i]);

Propchange: incubator/isis/trunk/core/runtime/src/main/java/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Apr 12 22:37:15 2011
@@ -0,0 +1 @@
+META-INF

Modified: incubator/isis/trunk/core/src/docbkx/guide/images/common/architecture-perspective.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/src/docbkx/guide/images/common/architecture-perspective.png?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/isis/trunk/core/src/docbkx/guide/images/common/composition-perspective.png
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/src/docbkx/guide/images/common/composition-perspective.png?rev=1091590&r1=1091589&r2=1091590&view=diff
==============================================================================
Binary files - no diff available.



Mime
View raw message