Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1fa8a60
Sharding Pattern (#1056)
Azureyjt Nov 8, 2019
6d1c0b1
Resolves checkstyle errors for ambassador, async-method-invocation, b…
anuragagarwal561994 Nov 9, 2019
efc17fc
Resolves checkstyle errors for business-delegate, bytecode, caching (…
anuragagarwal561994 Nov 9, 2019
31f27a7
Resolves checkstyle errors for callback, chain, circuit-breaker (#1060)
anuragagarwal561994 Nov 9, 2019
2f49648
Resolves checkstyle errors for collection-pipeline, command, commande…
anuragagarwal561994 Nov 9, 2019
4f9ee01
Resolves checkstyle errors for converter, cqrs (#1063)
anuragagarwal561994 Nov 10, 2019
dda0953
Resolves checkstyle errors for guarded-suspension, half-sync-half-asy…
anuragagarwal561994 Nov 10, 2019
7f06f3b
Resolves checkstyle errors for intercepting-filter, interpreter, iter…
anuragagarwal561994 Nov 10, 2019
eae09fc
Resolves checkstyle errors for api-gateway, lazy-loading, leader-elec…
anuragagarwal561994 Nov 10, 2019
01e489c
Resolves checkstyle errors for dao data-bus data-locality data-mapper…
anuragagarwal561994 Nov 10, 2019
f2c91eb
Resolves checkstyle errors for delegation dependency-injection dirty-…
anuragagarwal561994 Nov 10, 2019
7c888e8
Resolves checkstyle errors for eip-* (#1069)
anuragagarwal561994 Nov 10, 2019
5ae2ce6
Resolves checkstyle errors for event-* (#1070)
anuragagarwal561994 Nov 10, 2019
4dae1fa
Resolves checkstyle errors for execute-around extension-objects (#1071)
anuragagarwal561994 Nov 10, 2019
9c8ad44
Resolves checkstyle errors for patterns starting with letter r (#1072)
anuragagarwal561994 Nov 10, 2019
b92eb52
Resolves checkstyle errors for template-method thread-pool throttling…
anuragagarwal561994 Nov 10, 2019
f0f0143
Resolves checkstyle errors for trampoline twin typeobjectpattern unit…
anuragagarwal561994 Nov 10, 2019
c441831
Java 11 migration: ambassador async-method-invocation balking bridge …
anuragagarwal561994 Nov 11, 2019
329479d
#984 update Ambassador readme
iluwatar Nov 11, 2019
0272d71
#984 update Bridge readme
iluwatar Nov 11, 2019
2628cc0
#984 update Builder readme
iluwatar Nov 11, 2019
c954a43
Resolves checkstyle errors for facade factory-kit spatial-partition s…
anuragagarwal561994 Nov 11, 2019
37599eb
Resolves checkstyle errors for feature-toggle fluentinterface flux fl…
anuragagarwal561994 Nov 11, 2019
3907951
Resolves checkstyle issues for semaphore servant serverless service-l…
anuragagarwal561994 Nov 11, 2019
1e76d91
Resolves checkstyle errors for abstract-document abstract-factory acy…
anuragagarwal561994 Nov 11, 2019
6ef840f
Resolves checkstyle errors for naked-objects null-object object-mothe…
anuragagarwal561994 Nov 12, 2019
33ea733
Java 11 migration: patterns (remaining b-c) (#1081)
anuragagarwal561994 Nov 12, 2019
3c57bf7
#984 #987 update readmes
iluwatar Nov 12, 2019
f04fc3c
Java 11 migration: patterns starting with a (#1084)
anuragagarwal561994 Nov 13, 2019
160b737
Add another real world example for Builder
iluwatar Nov 13, 2019
50467c9
Java 11 migration: patterns (t-v) (#1085)
anuragagarwal561994 Nov 14, 2019
cc571f4
Saga pattern (#1062)
besok Nov 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Resolves checkstyle errors for naked-objects null-object object-mothe…
…r object-pool observer queue-load-leveling (iluwatar#1082)

* Reduces checkstyle errors in naked-objects

* Reduces checkstyle errors in null-object

* Reduces checkstyle errors in object-mother

* Reduces checkstyle errors in object-pool

* Reduces checkstyle errors in observer

* Reduces checkstyle errors in queue-load-leveling
  • Loading branch information
anuragagarwal561994 authored and iluwatar committed Nov 12, 2019
commit 6ef840f3cfd3d2f82690dad676ddc61bf1d57dac
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
import org.apache.isis.applib.annotation.SemanticsOf;

/**
* HomePage Domain Service
* HomePage Domain Service.
*
* @see HomePageViewModel linked view to HomePage
*/
@DomainService(nature = NatureOfService.VIEW_CONTRIBUTIONS_ONLY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@

package domainapp.dom.app.homepage;

import java.util.List;

import org.apache.isis.applib.annotation.ViewModel;

import domainapp.dom.modules.simple.SimpleObject;
import domainapp.dom.modules.simple.SimpleObjects;
import java.util.List;
import org.apache.isis.applib.annotation.ViewModel;

/**
* Model linked to the HomePage
* The underlying layout is specified by json
* Model linked to the HomePage The underlying layout is specified by json.
*
* @see HomePageService - Service Linked to the HomePage
*/
@ViewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@
* limitations under the License.
*/
{
"columns": [
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 12,
"collections": {
"objects": {
"collectionLayout": {
"render": "EAGERLY"
}
}
}
"columns": [
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 12,
"collections": {
"objects": {
"collectionLayout": {
"render": "EAGERLY"
}
}
],
"actions": {}
}
}
],
"actions": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import javax.jdo.JDOHelper;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.VersionStrategy;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.Identifier;
import org.apache.isis.applib.annotation.Action;
Expand All @@ -43,7 +42,7 @@
import org.apache.isis.applib.util.ObjectContracts;

/**
* Definition of a Simple Object
* Definition of a Simple Object.
*/
@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE, schema = "simple",
table = "SimpleObject")
Expand Down Expand Up @@ -87,11 +86,11 @@ public void setName(final String name) {
// region > updateName (action)

/**
* Event used to update the Name in the Domain
* Event used to update the Name in the Domain.
*/
public static class UpdateNameDomainEvent extends ActionDomainEvent<SimpleObject> {
public UpdateNameDomainEvent(final SimpleObject source, final Identifier identifier,
final Object... arguments) {
final Object... arguments) {
super(source, identifier, arguments);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,42 @@
* limitations under the License.
*/
{
"columns": [
{
"span": 6,
"memberGroups": {
"General": {
"members": {
"name": {
"actions": {
"updateName": {
"actionLayout": {
"position": "BOTTOM"
}
}
}
},
"versionSequence": {
"propertyLayout": {
"name": "version"
}
}
}
"columns": [
{
"span": 6,
"memberGroups": {
"General": {
"members": {
"name": {
"actions": {
"updateName": {
"actionLayout": {
"position": "BOTTOM"
}
}
}
},
"versionSequence": {
"propertyLayout": {
"name": "version"
}
}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 6,
"collections": {}
}
}
],
"actions": {}
}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 0,
"memberGroups": {}
},
{
"span": 6,
"collections": {}
}
],
"actions": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package domainapp.dom.modules.simple;

import java.util.List;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.Identifier;
import org.apache.isis.applib.annotation.Action;
Expand All @@ -40,7 +39,7 @@
import org.apache.isis.applib.services.i18n.TranslatableString;

/**
* Domain Service for Simple Objects
* Domain Service for Simple Objects.
*/
@DomainService(repositoryFor = SimpleObject.class)
@DomainServiceLayout(menuOrder = "10")
Expand Down Expand Up @@ -82,18 +81,18 @@ public List<SimpleObject> findByName(@ParameterLayout(named = "Name") final Stri
// endregion

/**
* Create Domain Event on SimpleObjects
* Create Domain Event on SimpleObjects.
*/
// region > create (action)
public static class CreateDomainEvent extends ActionDomainEvent<SimpleObjects> {
public CreateDomainEvent(final SimpleObjects source, final Identifier identifier,
final Object... arguments) {
final Object... arguments) {
super(source, identifier, arguments);
}
}

/**
* Create simple object
* Create simple object.
*/
@Action(domainEvent = CreateDomainEvent.class)
@MemberOrder(sequence = "3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@

package domainapp.fixture;

import domainapp.fixture.scenarios.RecreateSimpleObjects;
import org.apache.isis.applib.annotation.DomainService;
import org.apache.isis.applib.annotation.NatureOfService;
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;

/**
* Specifies where to find fixtures, and other settings.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@

package domainapp.fixture.modules.simple;

import org.apache.isis.applib.fixturescripts.FixtureScript;

import domainapp.dom.modules.simple.SimpleObject;
import domainapp.dom.modules.simple.SimpleObjects;
import org.apache.isis.applib.fixturescripts.FixtureScript;

/**
* Fixture to create a simple object
* Fixture to create a simple object.
*/
public class SimpleObjectCreate extends FixtureScript {

Expand All @@ -46,7 +45,7 @@ public class SimpleObjectCreate extends FixtureScript {
private String name;

/**
* Name of the object (required)
* Name of the object (required).
*/
public String getName() {
return name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.isis.applib.services.jdosupport.IsisJdoSupport;

/**
* TearDown/Cleanup for SimpleObjects
* TearDown/Cleanup for SimpleObjects.
*/
public class SimpleObjectsTearDown extends FixtureScript {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@
import domainapp.dom.modules.simple.SimpleObject;
import domainapp.fixture.modules.simple.SimpleObjectCreate;
import domainapp.fixture.modules.simple.SimpleObjectsTearDown;
import org.apache.isis.applib.fixturescripts.FixtureScript;

import java.util.Collections;
import java.util.List;
import org.apache.isis.applib.fixturescripts.FixtureScript;


/**
* Create a bunch of simple Objects
* Create a bunch of simple Objects.
*/
public class RecreateSimpleObjects extends FixtureScript {

public final List<String> names = Collections.unmodifiableList(List.of("Foo", "Bar", "Baz",
"Frodo", "Froyo", "Fizz", "Bip", "Bop", "Bang", "Boo"));
"Frodo", "Froyo", "Fizz", "Bip", "Bop", "Bang", "Boo"));

// region > number (optional input)
private Integer number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,44 +23,38 @@

package domainapp.webapp;

import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.google.common.base.Joiner;
import com.google.common.io.Resources;
import com.google.inject.AbstractModule;
import com.google.inject.Module;
import com.google.inject.name.Names;
import com.google.inject.util.Modules;
import com.google.inject.util.Providers;

import de.agilecoders.wicket.core.Bootstrap;
import de.agilecoders.wicket.core.settings.IBootstrapSettings;
import de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchTheme;
import de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchThemeProvider;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.isis.viewer.wicket.viewer.IsisWicketApplication;
import org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis;
import org.apache.wicket.Session;
import org.apache.wicket.request.IRequestParameters;
import org.apache.wicket.request.Request;
import org.apache.wicket.request.Response;
import org.apache.wicket.request.http.WebRequest;

import org.apache.isis.viewer.wicket.viewer.IsisWicketApplication;
import org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis;

import de.agilecoders.wicket.core.Bootstrap;
import de.agilecoders.wicket.core.settings.IBootstrapSettings;
import de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchTheme;
import de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchThemeProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
* As specified in <tt>web.xml</tt>.
*
* <p>
* See:
*
*
* <p>See:
*
* <pre>
* &lt;filter&gt;
* &lt;filter-name&gt;wicket&lt;/filter-name&gt;
Expand All @@ -71,7 +65,6 @@
* &lt;/init-param&gt;
* &lt;/filter&gt;
* </pre>
*
*/
public class SimpleApplication extends IsisWicketApplication {

Expand All @@ -80,11 +73,10 @@ public class SimpleApplication extends IsisWicketApplication {

/**
* uncomment for a (slightly hacky) way of allowing logins using query args, eg:
*
*
* <tt>{@code ?user=sven&pass=pass}</tt>
*
* <p>
* for demos only, obvious.
*
* <p>for demos only, obvious.
*/
private static final boolean DEMO_MODE_USING_CREDENTIALS_AS_QUERYARGS = false;

Expand Down
Loading