Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
QZero_0
java-design-patterns
提交
185f296a
J
java-design-patterns
项目概览
QZero_0
/
java-design-patterns
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
java-design-patterns
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
185f296a
编写于
8月 06, 2015
作者:
I
Ilkka Seppala
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#189 Updated Naked Objects example with the code generated by the latest Apache Isis snapshot
上级
8e5b7a2a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
127 addition
and
74 deletion
+127
-74
naked-objects/dom/pom.xml
naked-objects/dom/pom.xml
+1
-1
naked-objects/dom/src/main/java/domainapp/dom/modules/simple/SimpleObjects.java
...main/java/domainapp/dom/modules/simple/SimpleObjects.java
+1
-1
naked-objects/fixture/src/main/java/domainapp/fixture/DomainAppFixturesProvider.java
...ain/java/domainapp/fixture/DomainAppFixturesProvider.java
+44
-0
naked-objects/fixture/src/main/java/domainapp/fixture/modules/simple/SimpleObjectsTearDown.java
...mainapp/fixture/modules/simple/SimpleObjectsTearDown.java
+1
-1
naked-objects/integtests/pom.xml
naked-objects/integtests/pom.xml
+31
-10
naked-objects/pom.xml
naked-objects/pom.xml
+46
-55
naked-objects/webapp/pom.xml
naked-objects/webapp/pom.xml
+3
-6
未找到文件。
naked-objects/dom/pom.xml
浏览文件 @
185f296a
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<activeByDefault>
true
</activeByDefault>
<activeByDefault>
true
</activeByDefault>
</activation>
</activation>
<properties>
<properties>
<datanucleus-maven-plugin.version>
4.0.0-release
</datanucleus-maven-plugin.version>
<datanucleus-maven-plugin.version>
4.0.1
</datanucleus-maven-plugin.version>
</properties>
</properties>
<build>
<build>
<pluginManagement>
<pluginManagement>
...
...
naked-objects/dom/src/main/java/domainapp/dom/modules/simple/SimpleObjects.java
浏览文件 @
185f296a
...
@@ -70,7 +70,7 @@ public class SimpleObjects {
...
@@ -70,7 +70,7 @@ public class SimpleObjects {
final
String
name
final
String
name
)
{
)
{
return
container
.
allMatches
(
return
container
.
allMatches
(
new
QueryDefault
<
SimpleObject
>(
new
QueryDefault
<>(
SimpleObject
.
class
,
SimpleObject
.
class
,
"findByName"
,
"findByName"
,
"name"
,
name
));
"name"
,
name
));
...
...
naked-objects/fixture/src/main/java/domainapp/fixture/DomainAppFixtures
Service
.java
→
naked-objects/fixture/src/main/java/domainapp/fixture/DomainAppFixtures
Provider
.java
浏览文件 @
185f296a
...
@@ -18,59 +18,27 @@
...
@@ -18,59 +18,27 @@
*/
*/
package
domainapp.fixture
;
package
domainapp.fixture
;
import
java.util.List
;
import
org.apache.isis.applib.annotation.Action
;
import
org.apache.isis.applib.annotation.ActionLayout
;
import
org.apache.isis.applib.annotation.DomainService
;
import
org.apache.isis.applib.annotation.DomainService
;
import
org.apache.isis.applib.annotation.DomainServiceLayout
;
import
org.apache.isis.applib.annotation.NatureOfService
;
import
org.apache.isis.applib.annotation.MemberOrder
;
import
org.apache.isis.applib.annotation.RestrictTo
;
import
org.apache.isis.applib.fixturescripts.FixtureResult
;
import
org.apache.isis.applib.fixturescripts.FixtureScript
;
import
org.apache.isis.applib.fixturescripts.FixtureScripts
;
import
org.apache.isis.applib.fixturescripts.FixtureScripts
;
import
org.apache.isis.applib.services.fixturespec.FixtureScriptsSpecification
;
import
org.apache.isis.applib.services.fixturespec.FixtureScriptsSpecificationProvider
;
import
domainapp.fixture.scenarios.RecreateSimpleObjects
;
import
domainapp.fixture.scenarios.RecreateSimpleObjects
;
/**
/**
*
Enables fixtures to be installed from the application
.
*
Specifies where to find fixtures, and other settings
.
*/
*/
@DomainService
@DomainService
(
nature
=
NatureOfService
.
DOMAIN
)
@DomainServiceLayout
(
public
class
DomainAppFixturesProvider
implements
FixtureScriptsSpecificationProvider
{
named
=
"Prototyping"
,
menuBar
=
DomainServiceLayout
.
MenuBar
.
SECONDARY
,
menuOrder
=
"500"
)
public
class
DomainAppFixturesService
extends
FixtureScripts
{
public
DomainAppFixturesService
()
{
super
(
DomainAppFixturesService
.
class
.
getPackage
().
getName
(),
MultipleExecutionStrategy
.
EXECUTE
);
}
@Override
public
FixtureScript
default0RunFixtureScript
()
{
return
findFixtureScriptFor
(
RecreateSimpleObjects
.
class
);
}
@Override
@Override
public
List
<
FixtureScript
>
choices0RunFixtureScript
()
{
public
FixtureScriptsSpecification
getSpecification
()
{
return
super
.
choices0RunFixtureScript
();
return
FixtureScriptsSpecification
.
builder
(
DomainAppFixturesProvider
.
class
)
.
with
(
FixtureScripts
.
MultipleExecutionStrategy
.
EXECUTE
)
.
withRunScriptDefault
(
RecreateSimpleObjects
.
class
)
.
withRunScriptDropDown
(
FixtureScriptsSpecification
.
DropDownPolicy
.
CHOICES
)
.
withRecreate
(
RecreateSimpleObjects
.
class
)
.
build
();
}
}
// //////////////////////////////////////
@Action
(
restrictTo
=
RestrictTo
.
PROTOTYPING
)
@ActionLayout
(
cssClassFa
=
"fa fa-refresh"
)
@MemberOrder
(
sequence
=
"20"
)
public
Object
recreateObjectsAndReturnFirst
()
{
final
List
<
FixtureResult
>
run
=
findFixtureScriptFor
(
RecreateSimpleObjects
.
class
).
run
(
null
);
return
run
.
get
(
0
).
getObject
();
}
}
}
naked-objects/fixture/src/main/java/domainapp/fixture/modules/simple/SimpleObjectsTearDown.java
浏览文件 @
185f296a
...
@@ -26,7 +26,7 @@ public class SimpleObjectsTearDown extends FixtureScript {
...
@@ -26,7 +26,7 @@ public class SimpleObjectsTearDown extends FixtureScript {
@Override
@Override
protected
void
execute
(
ExecutionContext
executionContext
)
{
protected
void
execute
(
ExecutionContext
executionContext
)
{
isisJdoSupport
.
executeUpdate
(
"delete from
simple
.\"SimpleObject\""
);
isisJdoSupport
.
executeUpdate
(
"delete from
\"simple\"
.\"SimpleObject\""
);
}
}
...
...
naked-objects/integtests/pom.xml
浏览文件 @
185f296a
...
@@ -84,17 +84,38 @@
...
@@ -84,17 +84,38 @@
<artifactId>
hsqldb
</artifactId>
<artifactId>
hsqldb
</artifactId>
</dependency>
</dependency>
<!-- uncomment to enable enhanced cucumber-jvm reporting http://www.masterthought.net/section/cucumber-reporting
<!--
<dependency> <groupId>com.googlecode.totallylazy</groupId> <artifactId>totallylazy</artifactId>
uncomment to enable enhanced cucumber-jvm reporting
<version>991</version> </dependency> <dependency> <groupId>net.masterthought</groupId>
http://www.masterthought.net/section/cucumber-reporting
<artifactId>cucumber-reporting</artifactId> <version>0.0.21</version> </dependency>
<dependency>
<dependency> <groupId>net.masterthought</groupId> <artifactId>maven-cucumber-reporting</artifactId>
<groupId>com.googlecode.totallylazy</groupId>
<version>0.0.4</version> </dependency> -->
<artifactId>totallylazy</artifactId>
</dependencies>
<version>991</version>
</dependency>
<!-- uncomment for enhanced cucumber-jvm reporting http://www.masterthought.net/section/cucumber-reporting
<dependency>
<repositories> <repository> <id>repo.bodar.com</id> <url>http://repo.bodar.com</url>
<groupId>net.masterthought</groupId>
</repository> </repositories> -->
<artifactId>cucumber-reporting</artifactId>
<version>0.0.21</version>
</dependency>
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>0.0.4</version>
</dependency>
-->
</dependencies>
<!--
uncomment for enhanced cucumber-jvm reporting
http://www.masterthought.net/section/cucumber-reporting
<repositories>
<repository>
<id>repo.bodar.com</id>
<url>http://repo.bodar.com</url>
</repository>
</repositories>
-->
</project>
</project>
naked-objects/pom.xml
浏览文件 @
185f296a
...
@@ -240,61 +240,52 @@
...
@@ -240,61 +240,52 @@
<exclude>
**/translations*.po
</exclude>
<exclude>
**/translations*.po
</exclude>
</excludes>
</excludes>
<licenses>
<licenses>
<license
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<licenseFamilyCategory>
AL2
</licenseFamilyCategory>
<licenseFamilyCategory>
AL2
</licenseFamilyCategory>
<licenseFamilyName>
Apache License 2.0
</licenseFamilyName>
<licenseFamilyName>
Apache License 2.0
</licenseFamilyName>
<notes/>
<notes
/>
<patterns>
<patterns>
<pattern>
Licensed to the Apache Software Foundation (ASF) under one
</pattern>
<pattern>
Licensed to the Apache Software Foundation (ASF) under
</patterns>
one
</pattern>
</license>
</patterns>
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
</license>
<licenseFamilyCategory>
JQRY
</licenseFamilyCategory>
<license
<licenseFamilyName>
MIT
</licenseFamilyName>
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<notes/>
<licenseFamilyCategory>
JQRY
</licenseFamilyCategory>
<patterns>
<licenseFamilyName>
MIT
</licenseFamilyName>
<pattern>
Dual licensed under the MIT or GPL Version 2 licenses.
</pattern>
<notes
/>
</patterns>
<patterns>
</license>
<pattern>
Dual licensed under the MIT or GPL Version 2 licenses.
</pattern>
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
</patterns>
<licenseFamilyCategory>
JMOCK
</licenseFamilyCategory>
</license>
<licenseFamilyName>
JMock
</licenseFamilyName>
<license
<notes/>
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<patterns>
<licenseFamilyCategory>
JMOCK
</licenseFamilyCategory>
<pattern>
Copyright (c) 2000-2007, jMock.org
</pattern>
<licenseFamilyName>
JMock
</licenseFamilyName>
</patterns>
<notes
/>
</license>
<patterns>
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<pattern>
Copyright (c) 2000-2007, jMock.org
</pattern>
<licenseFamilyCategory>
DOCBK
</licenseFamilyCategory>
</patterns>
<licenseFamilyName>
DocBook 4.5
</licenseFamilyName>
</license>
<notes/>
<license
<patterns>
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<pattern>
Permission to copy in any form is granted for use
</pattern>
<licenseFamilyCategory>
DOCBK
</licenseFamilyCategory>
<pattern>
Permission to use, copy, modify and distribute the DocBook DTD
</pattern>
<licenseFamilyName>
DocBook 4.5
</licenseFamilyName>
<pattern>
is hereby granted in perpetuity, provided that the above copyright
</pattern>
<notes
/>
<pattern>
This is the catalog data file for DocBook XML V4.5. It is provided as
</pattern>
<patterns>
<pattern>
XML Catalog data for DocBook XML V4.5
</pattern>
<pattern>
Permission to copy in any form is granted for use
</pattern>
<pattern>
DocBook additional general entities V4.5
</pattern>
<pattern>
Permission to use, copy, modify and distribute the
<pattern>
XML EXCHANGE TABLE MODEL DECLARATION MODULE
</pattern>
DocBook DTD
</pattern>
</patterns>
<pattern>
is hereby granted in perpetuity, provided that the
</license>
above copyright
</pattern>
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<pattern>
This is the catalog data file for DocBook XML V4.5. It
<licenseFamilyCategory>
W3C
</licenseFamilyCategory>
is provided as
</pattern>
<licenseFamilyName>
XHTML
</licenseFamilyName>
<pattern>
XML Catalog data for DocBook XML V4.5
</pattern>
<notes/>
<pattern>
DocBook additional general entities V4.5
</pattern>
<patterns>
<pattern>
XML EXCHANGE TABLE MODEL DECLARATION MODULE
</pattern>
<pattern>
Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
</pattern>
</patterns>
</patterns>
</license>
</license>
<license
implementation=
"org.apache.rat.analysis.license.SimplePatternBasedLicense"
>
<licenseFamilyCategory>
W3C
</licenseFamilyCategory>
<licenseFamilyName>
XHTML
</licenseFamilyName>
<notes
/>
<patterns>
<pattern>
Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
</pattern>
</patterns>
</license>
</licenses>
</licenses>
<licenseFamilies>
<licenseFamilies>
<licenseFamily
implementation=
"org.apache.rat.license.SimpleLicenseFamily"
>
<licenseFamily
implementation=
"org.apache.rat.license.SimpleLicenseFamily"
>
...
...
naked-objects/webapp/pom.xml
浏览文件 @
185f296a
...
@@ -236,8 +236,7 @@
...
@@ -236,8 +236,7 @@
<tasks>
<tasks>
<exec
executable=
"java"
failonerror=
"true"
>
<exec
executable=
"java"
failonerror=
"true"
>
<arg
value=
"-jar"
/>
<arg
value=
"-jar"
/>
<arg
<arg
value=
"${project.build.directory}/${project.build.finalName}-jetty-console.jar"
/>
value=
"${project.build.directory}/${project.build.finalName}-jetty-console.jar"
/>
</exec>
</exec>
</tasks>
</tasks>
</configuration>
</configuration>
...
@@ -303,10 +302,8 @@
...
@@ -303,10 +302,8 @@
<arg
value=
"-Dtarget.dir=${target.dir}"
/>
<arg
value=
"-Dtarget.dir=${target.dir}"
/>
<arg
value=
"-Drebel.plugins=${isis_jrebel_plugin.jar}"
/>
<arg
value=
"-Drebel.plugins=${isis_jrebel_plugin.jar}"
/>
<arg
<arg
value=
"-Disis-jrebel-plugin.packagePrefix=${isis-jrebel-plugin.packagePrefix}"
/>
value=
"-Disis-jrebel-plugin.packagePrefix=${isis-jrebel-plugin.packagePrefix}"
/>
<arg
value=
"-Disis-jrebel-plugin.loggingLevel=${isis-jrebel-plugin.loggingLevel}"
/>
<arg
value=
"-Disis-jrebel-plugin.loggingLevel=${isis-jrebel-plugin.loggingLevel}"
/>
<arg
value=
"-XX:MaxPermSize=128m"
/>
<arg
value=
"-XX:MaxPermSize=128m"
/>
<arg
value=
"-classpath"
/>
<arg
value=
"-classpath"
/>
<arg
value=
"${runtime_classpath}"
/>
<arg
value=
"${runtime_classpath}"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录