Clone Tools
  • last updated 15 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ISIS-2112: remove the concept of 'Installers'

- Interface 'Installer' and implementing classes removed

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

    • -32
    • +0
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 21 more files in changeset.
ISIS-2033: Major (interim): thrown away Installers and Guice

prepare for full provisioning utilizing CDI

this commit breaks provisioning and SudoService

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

    • -32
    • +0
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 180 more files in changeset.
ISIS-1428: removing PersistenceMechanismInstaller and implementation, inlining code

    • -7
    • +0
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 7 more files in changeset.
ISIS-1427: use DeploymentCategory rather than DeploymentType throughout (except in very initial bootstrapping).

Also:

- no need for IsisInjectModel to expose DeploymentType or IsisConfiguration as @Provides @Singleton

- remove DeploymentType from IsisComponentProvider classes (plays no part), just pass to IsisSystem directly.

- allow IsisSystem to be created from a non-null AppManifest (internally creates a default IsisComponentProviderDefault2)

    • -2
    • +2
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 40 more files in changeset.
ISIS-1247: simplifying IsisInjectModule a little, moving InstallerLookup as a nested static class of IsisComponentProviderUsingInstallers.

  1. … 4 more files in changeset.
ISIS-1291: removed InstallerLookupAware and other unused code, simplified InstallerLookup and removed installer-registry.properties

Namely:

- AboutIsis, ComponentDetails, IsisInstallerRegistry, InstallerVersion, OptionHandlerDiagnostics, OptionHandlerVersion

Also:

- renamed PersistenceSessionInternal back to PersistenceSession, to avoid unnecessary breakage (this class isn't an internal domain service, anyway)

    • -2
    • +2
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 66 more files in changeset.
ISIS-1409: internal components of RuntimeContext subclasses are now internal domain services; RuntimeContext hierarchy collapsed into a single class.

    • -2
    • +2
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 125 more files in changeset.
ISIS-1407: removed SpecificationLoaderAware.

Also:

- minor extension to ServiceRegistry2

- collapsed ServicesInjector, ServicesInjectorSpi and ServicesInjectorDefault to just ServicesInjector.

    • -2
    • +2
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 271 more files in changeset.
ISIS-1408: simpifying InstallerLookup and IsisComponentProvider.

Right now is slightly broken... not picking up the app manifest.

  1. … 13 more files in changeset.
ISIS-1407: SpecificationLoader is now a concrete class (rolled ObjectReflector up into it).

  1. … 156 more files in changeset.
ISIS-1406: lots more refactoring around IsisConfiguration and IsisConfigurationBuilder.

specifically:

- simplified IsisConfigurationBuilder, now a single class (rather than an interface with 4 different impls, only 2 of which were used).

- removed IsisRunner, so that the command line options are now a responsibility of the IsisConfigurationBuilder

- IsisConfigurationBuilder is passed from o.a.i.WebServer to IsisWicketApplication (not just the "primers"

- removed OptionValidator, wasn't being used

- FacetFactoryAbstract responsible for providing IsisConfiguration to all subclass impls

- InstallerLookup simplified, no longer responsible for appending to the IsisConfigurationBuilder

- InstallerAbstract impls now all have the IsisConfiguration injected into them (constructor injection).

- removed duplication between IsisWebAppBootstrapper and IsisWicketApplication

As of this commit the app runs, but the fixtures are not being automatically installed.

    • -4
    • +1
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 104 more files in changeset.
ISIS-1406: refactoring IsisConfigurationBuilder and IsisConfiguration (WIP)

  1. … 10 more files in changeset.
ISIS-1194: simplfying the bootstrap and wiring of components, in particular around PersistenceSessionFactory

specifically:

- IsisSessionFactory

- now passed in the ServicesInjector (rather than obtaining it from the PersistenceSessionFactory)

- initialization of FixtureClock done in IsisSessionFactory rather than PersistenceSessionFactory

- IsisSystem

- createSessionFactory(), changed the order in order to remove some bidir relationships

- in shutdownServices, avoid NPE if the serviceInitializer was never instantiated during init()

- PersistenceSessionFactory

- no longer implements MetaModelRefiner, instead moved out to separate class (PersistenceSessionFactoryMetamodelRefiner)

- this allows us to break the bidir between PersistenceSessionFactory and SpecificationLoader

- no longer requires a RuntimeContext

- no longer requires a ServicesInjector (is provided by IsisSessionFactory when #createPersistenceSession() is called to pass onto the created PersistenceSession)

- no longer implements SpecificationLoaderAware, nor requires a SpecificationLoader (is provided by IsisSessionFactory when #createPerisistenceSession is called)

- similar changes to IsisMetaModel, in its constructor an init() method, to wire up components in the correct order

- PersistenceSession

- no longer holds reference to PersistenceSessionFactory (though does only as FixturesInstallerFlag in order that PSF can continue to cache whether fixtures installed)

- is passed in the JDO PersistenceManagerFactory from Isis' PSF (rather than accessing the PSF's DataNucleusApplicationComponents, which is now wholly internal to PSF)

- is passed in the ServicesInjector directly (rather than obtain from Isis' PSF)

- RuntimeContextAbstract

- now also passed in SpecificationLoader into its constructor (required reordering of IsisSessionFactory#init to be able to do this)

- thereby remove the whole SpecificationLookupDelegator contrivance

- JavaReflectorHelper

- pass through deploymentType to ObjectReflectorDefault

- ObjectReflectorDefault

- removal of isInjectorMethodFor, instead have callers instantiate the InjectorMethodEvaluatorDefault directly

also, to make caller hierarchy more useful::

- changed ApplicationScopedComponent and SessionScopedComponent into marker interfaces

- removed Injectable, pushed injectInto(Object) into subtypes

also:

- enhanced IsisMojoAbstract and IsisMojoValidate (maven-isis-plugin)

- to accept an appManifest in the pom.xml

- use an AppManifest rather than MetaModel to bootstrap the system and validate

- moved IsisComponentProviderDefault from core-integtest into core-runtime (renamed as ...Default2), so can be used by maven-isis-plugin

also:

- deleted AdapterManagerDefault, no longer used

    • -3
    • +1
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 65 more files in changeset.
ISIS-1194: making the ApplicationScopedComponent, SessionScopedComponent into marker interfaces.

  1. … 32 more files in changeset.
ISIS-1194: moving application-scoped components to RuntimeContextAbstract superclass; IsisTransaction simplifications

- IsisConfigurationDefault now implements ConfigurationService (and using IsisConfigurationDefault concrete class rather than interface where necessary)

- RuntimeContext implementations now require a ServiceInjector, and default the deployment category and configuration; these are set up and immutable for the runtime context

- meaning that RuntimeContext no longer is ServiceInjectorAware.

also:

- IsisTransaction passed through the PersistenceSession (rather than obtain from IsisContext)

    • -2
    • +3
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 20 more files in changeset.
ISIS-1194: simplifying creation of ObjectStore.

- responsibility for owning the DataNucleusApplicationComponents moved from DataNucleusPersistenceMechanismInstaller to PersistenceSessionFactory

- responsibility for creating the DataNucleusObjectStore moved from DataNucleusPersistenceMechanismInstaller to PersistenceSession

- responsibility for refining programming model moved from DataNucleusPersistenceMechanismInstaller directly to PersistenceSessionFactory

- inject SpecificationLoader into PersistenceSessionFactory (rather than have it lookup from IsisContext)

- PersistenceMechanismInstaller no longer implements ObjectStoreFactory or MetaModelRefiner interfaces.

- removed ObjectStoreFactory,

    • -4
    • +1
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 6 more files in changeset.
ISIS-848: enhancing IsisComponentProvider impls to honour GlobSpec if present.

also:

- chaged GlobSpec API to return list of classes of fixture scripts, rather than the fixture scripts themselves.

- standardized method names of IsisComponentProvider interface ("provide..." instead of a mixture of "provide..." and "obtain...")

-moved common functionality into IsisComponentProviderAbstract, including having InstallerComponentProviderUsingInstallers eagerly evaluating

- removed superfluous constants in SystemConstants

- simplified ServicesInstaller#getServices(DeploymentType) to just #getServices(...), since the globSpec will now be the preferred way to vary runtimes

- made the ServicesInstaller impls all inherit from ServicesInstallerAbstract

- extending IsisConfigurationBuilder and InstallerLookup to allow the IsisComponentProvider to put new properties into the config

  1. … 20 more files in changeset.
ISIS-1188: where how RuntimeContextFromSession is instantiated (and in particular, instantiate it only once, passing it from IsisSystem through to PersistenceMechanismInstaller and thence PersistenceSessionFactory).

    • -4
    • +8
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 9 more files in changeset.
ISIS-1188: pass runtimeContext into PersistenceSessionFactory, perform some basic wiring in constructor.

    • -1
    • +5
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 5 more files in changeset.
ISIS-1188: IsisSessionFactory create OidMarshaller directly rather than passed in; pass ServicesInjectorSpi to PersistenceSessionFactory.

    • -4
    • +3
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 9 more files in changeset.
ISIS-1182: refactoring ownership of list of services [ABORTIVE: the simpleapp runs up, but todoapp seems to hang?]

- make ServicesInjectorDefault hold the list of services, passed into PersistenceSessionFactory via

- IsisSystemUsingInstallers#obtainPersistenceSessionFactory

- PersistenceMechanismInstaller#createPersistenceSessionFactory

- IsisSystemAbstract#doCreateSessionFactory

- should call obtainServices and pass them to #createSessionFactory

move call to validate the services (@PostConstruct and @PreDestroy stuff):

- relocate to ServicesInjectorSpi

- moved from IsisSessionFactoryDefault (the validateServices method, can be made static quite easily), and don't call at end of its constructor

- call from IsisSystemAbstract (after adding the fallback FixtureScriptsDefault service)

- in IsisSystemAbstract, inline newIsisSessionFactory, no need to be separate

- ObjectReflectorDefault, split out initAndValidate so that validation is called not in the ObjectReflector's init, but instead by:

- IsisSystemFixturesHookAbstract, after calling sessionFactory#init()

    • -1
    • +3
    ./installerapi/PersistenceMechanismInstaller.java
  1. … 25 more files in changeset.
ISIS-1150: removed -r (--persistor) command flag support; removed PersistenceMechanismInstaller (pushed down into DataNucleusPersistenceMechanismInstaller).

    • -106
    • +0
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 4 more files in changeset.
ISIS-939: more simplified of persistence sessions and object stores.

- deleted ObjectStoreSpi, just use ObjectStore (impl) directly;

- deleted AdapterManagerAbstract, not used

- deleted AdapterMapDelegator, not used

- for in-memory objectstore, renamed ObjectStorePersistedObjectsDefault (impl) to ObjectStorePersistedObjects (unextracted interface)

- renamed PersistenceSessionFactoryDelegate to ObjectStoreFactory

- renamed PersistenceSessionFactoryDelegating to PersistenceSessionFactory (unextracted interface)

- removed AdapterManagerSpi interface, just use AdapterManagerDefault directly instead.

- deleted AdpaterUtils, not used

    • -3
    • +3
    ./installerapi/PersistenceMechanismInstaller.java
    • -3
    • +2
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 48 more files in changeset.
ISIS-939: simplified PersistenceMechanismInstallerAbstract and its subclasses, also PersistenceSessionFactoryDelegating, PersistenceSessionFactoryDelegate.

* Replaced PersistenceSessionFactoryDelegate#createPersistenceSession with #createObjectStore (other common functionality moved to PersistenceSessionFactoryDelegating).

* Don't pass ObjectAdapterFactory, AdapaterManagerSpi, OidGenerator into PersistenceSession; instead it can new these up (there is no variation in implementation nor state held in these components)

* Removed IsisObjectStoreLogger, IsisObjectStoreDelegating.

    • -161
    • +6
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 12 more files in changeset.
ISIS-939: PojoRecreatorUnified and IdentifierGeneratorUnified.

    • -43
    • +5
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 24 more files in changeset.
ISIS-939: PersistAlgorithmUnified

    • -17
    • +5
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 11 more files in changeset.
ISIS-939: simplified ClassSubstitutor and ObjectFactory.

    • -4
    • +1
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 35 more files in changeset.
ISIS-938: mothball isis-core-bytecode-cglib and isis-core-bytecode-javassist. Minor changes in PersistenceMechanismInstallerAbstract to remove vestigial dependency on same.

    • -38
    • +5
    ./installerapi/PersistenceMechanismInstallerAbstract.java
  1. … 31 more files in changeset.
ISIS-802: removing UserProfileStore, Perspective, Options. Localization reverted to using the server default (since was only ever populated in Scimpi, and there are other JIRA issues already raised to implement client-side i18n).

  1. … 63 more files in changeset.
ISIS-913: removing TemplateImageLoader, also DeploymentType.EXPLORATION, PROTOTYPE, CLIENT (have retained the server-side equivalents).

Also removed MultiUserExplorationSession.

  1. … 36 more files in changeset.