Clone Tools
  • last updated 26 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
2039 redesign of config (#134)

* ISIS-2039: major refactoring

move config code into its own module

remove number of classes in metamodel, that hold a reference to

IsisConfiguration or its implementation

hide the mutable IsisConfigurationDefault

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: reduce visibility of some config classes

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: simplify config access

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: cleaning up the component-provider mess

for web-modules: no longer negotiate by writing attributes to the

servlet-context, instead use a java class for that

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: fixing some tests

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: removing arguments of @PostConstruct methods

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: lazy binding to config for wicket

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: proposed test fix

also cleaning up verbose tests

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: more test fixes

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: experimenting with AppConfig managed by Guice

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: solving the AppManifest lookup problem independently of the

configuration bootstrapping

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: simplify helloworld

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: moving type discovery to an earlier stage in bootstrapping

Integration Test Bootstrapping works.

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: on web-context: move the config bootstrapping from wicket

module to the main ServletContextListener

such that the wicket module is no longer responsible for initiating the

framework

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: config bootstrapping: fixes the resource chain

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: allow ServiceLoader lookup for AppConfig to fallback ...

to previous behavior, that is to lookup the AppManifest from config

property 'isis.appManifest'

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: fixes concurrent modification with _Context

add a property 'isUnitTesting' to the IsisSystemEnvironment, to help

with the decision on how to bootstrap the configuration

also doing some cleaning up

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: fixing junit tests ...

by having the IsisSystemEnvironment#isUnitTesting correctly setup by

JunitRuleMocker2

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: further fixing tests ...

also moving ExceptionRecognizer services that depend on the 'config'

module from 'applib' to 'runtime'

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: fixing tests, that fail due to new domain object annot.

processing

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: unify config bootstrapping code for maven-plugin,

wicket-viewer and headless

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: to fix prev. commit: let the maven-plugin bootstrap the

configuration properly

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: fixing mm verification tests

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: reinstating the ConfigurationServiceDefault

also renaming packages within the 'config' module -> 'o.a.i.config'

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: removing the ConfigurationService interface

use the singleton IsisConfiguration instead

for the UI, the ConfigurationServiceMenu was renamed to

ConfigurationMenu which uses a ConfigurationViewService for the single

purpose of displaying config values

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

* ISIS-2039: reorg. packages

Task-Url: https://issues.apache.org/jira/browse/ISIS-2039

  1. … 422 more files in changeset.
Merge remote-tracking branch 'origin/master' into v2

  1. … 142 more files in changeset.
ISIS-1974: fixes to ensure new algorithm generates same metamodel as previously.

More or less, that is.

The main change here is that some facet factories have been reimplemented in the SpecLoader PostProcessor, namely those that derive facets on object members based on the facets from the type of those members ... typical length, described as, immutable => disabled, param defaults.

- for now, the unused facets have been left in the codebase, commented out of ProgrammingModelFacetsJava5; the post-processor's name (ActionCollectionParameterDefaultsAndChoicesPostProcessor) is unchanged even though it now does much more than it used to

This results in some minor differences... ImmutableFacet is no longer always installed, for example, if DisabledFacet is present instead.

In addition to the PostProcessor changes:

- call post processing without requiring there to be an open session. Note that this requires a minor refactor in OneTo{One/Many}ActionParameterContributee - these take the servicePojo rather than the serviceAdapter

- refactor SpecificationCacheDefault, init() semantics are now cleaner

- it no longer takes a map (and the old init is now internalInit)

- SpecificationLoader#cacheBySpecId now removed - this is basically what is in the new version of init in SpecificationCacheDefault

- also search for @DomainServiceLayout, @DomainObjectLayout, @ViewModelLayout to find classes to introspect during bootstrapping

- don't introspect @Programmatic fixture scripts (unless they are explicitly discoverable by implementing DiscoverableFixtureScript)

- don't create any associations/actions for any domain services that have a nature of DOMAIN (unless they are also @HomePage domain service)

- don't create any associations/actions for fixture scripts

- OneTo{One/Many}AssociationContributee now implement getOnType (was throwing an NPE) & OneToManyAssociationMixedIn now implements getOnType (OTOAMI was already)

- these are to allow the implementatoin of the post-processor to look up the parent spec if the member is a mixin or contributee

- MetaModelExporter now includes a check that the objectSpecId -> ObjectSpecification is one-to-one.

- this is what precipitated the refactoring of SpecificationCacheDefault

- adds a guard in TypicalLengthFacetOnPropertyDerivedFromType, which was NPE'ing

- in the metamodel validator, as an ugly special case, allow ObjectSpecIdFacet to be derived from class name

- seems ok, since no longer have actoins on fixture scripts in the metamodel. Also, there are fixtures in the incode platform that fall foul of this check

- allow @Programmatic to be specified on fields

- annotate various fixture scripts as @Programmatic (so that they will be skipped completely from the metamodel)

- BuilderFixtureScript, TeardownFixtureScriptAbstract, PersonaEnumPersistAll, ClockFixture, TickingClockFixture

- fixed bug with MetaModelService6.Config class for getPackagePrefixes()

-

  1. … 37 more files in changeset.
ISIS-2003: adds more control in serialization of metamodel

  1. … 8 more files in changeset.
adds FacetWithAttributes interface

makes existing facets implement

  1. … 161 more files in changeset.
ISIS-1976: finally removing guava from metamodel

Task-Url: https://issues.apache.org/jira/browse/ISIS-1976

  1. … 50 more files in changeset.
ISIS-1976: remove deprecated PropertyLayoutData.renderedAsDayBefore

fixes GridSystemServiceAbstract.setRenderedAsDayBeforeIfAny being

ignored

Task-Url: https://issues.apache.org/jira/browse/ISIS-1976

  1. … 3 more files in changeset.
ISIS-1976: cleanup 'Command' API

make it obvious which calls are non public API by gathering them in its

own 'Internal' interface

rename HasTransactionId -> HasUniqueId to better reflect its general

usage

Task-Url: https://issues.apache.org/jira/browse/ISIS-1976

  1. … 35 more files in changeset.
ISIS-1976: remove deprecated Command.next()

Task-Url: https://issues.apache.org/jira/browse/ISIS-1976

  1. … 2 more files in changeset.
ISIS-1841: moving MemberGroupLayout to -legacy

  1. … 5 more files in changeset.
ISIS-1845 adding tests for _Context

also moving some tests from 'applib' to 'commons'

  1. … 6 more files in changeset.
ISIS-1810: fixes RAT errors prior to M1 release

  1. … 34 more files in changeset.
ISIS-1841: aligning test package names (Internal API)

Task-Url: https://issues.apache.org/jira/browse/ISIS-1841

    • -0
    • +203
    ./java/org/apache/isis/commons/internal/base/BytesTest.java
ISIS-1841 Internal API: polishing using _With

  1. … 7 more files in changeset.
ISIS-1949: Aligning Internal API package names with new home 'commons'

... org.apache.isis.commons.internal.*

Task-Url: https://issues.apache.org/jira/browse/ISIS-1949

  1. … 293 more files in changeset.
ISIS-1944: Tree View: adds a model for the collapse/expand state

Task-Url: https://issues.apache.org/jira/browse/ISIS-1944

    • -0
    • +47
    ./java/org/apache/isis/applib/tree/TreePathTest.java
  1. … 6 more files in changeset.
ISIS-1841 refining _Set and _List, and introducing _Reduction

also replacing lots of guava predicates

  1. … 33 more files in changeset.
ISIS-1742 polishing java-doc

also renaming Memento.set() to Memento.put() to emphasize similarity

with Maps

  1. … 3 more files in changeset.
ISIS-1742 fixes naive memento re-implementation in Internal API

Extends BookmarkServiceInternalDefault to also support the new

SerializingAdapter interface required for proper ViewModel

serialization.

  1. … 6 more files in changeset.
ISIS-1742 make UrlEncodingServiceWithCompression the new default

  1. … 5 more files in changeset.
ISIS-1742 moving deprecated MementoService to -legacy

Introduces _Mementos for Internal API.

  1. … 23 more files in changeset.
ISIS-1841 further cleanup compiler warnings

  1. … 9 more files in changeset.
ISIS-1680 applib: reorganizing event classes into new packages

  1. … 98 more files in changeset.
ISIS-1925: adds a null guard in CommonDtoUtils for blob and clob's

  1. … 2 more files in changeset.
ISIS-1897 new ObjectContracts backward compatibility implemented

  1. … 7 more files in changeset.
ISIS-1897 _Exceptions: add 'not implemented' idiom

    • -2
    • +2
    ./java/org/apache/isis/applib/util/Invoice.java
  1. … 1 more file in changeset.
ISIS-1897 applib: reinstate ObjectContracts tests from -legacy

    • -0
    • +38
    ./java/org/apache/isis/applib/util/Invoice.java
  1. … 8 more files in changeset.
ISIS-1841 move QueryResultCache from applib to eventbus-guava

should be ported back into applib, once we know how

applib now has no more dependency on guava!

  1. … 8 more files in changeset.
ISIS-1841 moving deprecated classes+tests to applib-legacy

    • -38
    • +0
    ./java/org/apache/isis/applib/util/Invoice.java
  1. … 10 more files in changeset.
ISIS-1841 move deprecated classes from applib to applib-legacy

  1. … 56 more files in changeset.