Commit Graph

769 Commits

Author SHA1 Message Date
Robert von Burg 925a25657a [New] implemented Parameter selection with test.
The ParameterizedElementSelector was still missing.
2013-11-29 08:42:44 +01:00
Robert von Burg a141744068 [New] added missing ModelBuilder class to generate teste data 2013-11-28 21:59:55 +01:00
Robert von Burg 643f846f32 [New] added many querying methods to the ElementMap interface
Implemented it in the InMemoryMap abstraction
2013-11-28 21:58:47 +01:00
Robert von Burg 66e076ea49 [New] added tests for in-memory query 2013-11-28 21:56:58 +01:00
Robert von Burg 4f428afcd1 [New] added missing abstract class StrolchTypeNavigator 2013-11-28 21:56:22 +01:00
Robert von Burg c0cebd533a [New] added OrderTypeNavigator 2013-11-28 21:53:27 +01:00
Robert von Burg aa3f39661a [New] implemented simple in-memory query 2013-11-28 21:52:32 +01:00
Robert von Burg 45c1734dd5 [New] Tutorial App now builds to a tarball ready to start
Now just unpack the zip and execute the "startup.sh" script
2013-11-25 23:26:30 +01:00
Robert von Burg 044fc81a18 [New] Added a MainStarter application to start Strolch from main classes 2013-11-25 23:25:45 +01:00
Robert von Burg 33f2bbffa9 [New] added dependency management for additional dependencies:
li.strolch.bom
commons-cli:commons-cli:1.2
2013-11-25 23:24:25 +01:00
Robert von Burg daba472769 [New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:54:04 +01:00
Robert von Burg 9bc5f46f2a [New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:53:59 +01:00
Robert von Burg f49f113b70 [New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:53:53 +01:00
Robert von Burg 323b6cfd7b [New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:53:41 +01:00
Robert von Burg 3a2f4495dd [Devel] implementing InMemory maps for EMPTY and TRANSIENT modes 2013-11-21 18:20:06 +01:00
Robert von Burg d3353062b9 [New] Implemented an XmlModelDefaultHandler to parse a model file
Now we can parse a big file containing multiple types of objects. It is
also supported to include files by using the <IncludeFile file="" />
element.

Including tests
2013-11-21 18:17:35 +01:00
Robert von Burg 567ec02814 [Minor] changed exception message to be better understood 2013-11-20 07:52:27 +01:00
Robert von Burg 6ed0cceffd [Minor] fixed compile errors in tests due to refactoring of Dates 2013-11-20 07:50:03 +01:00
Robert von Burg fc3fc3e203 [Devel] Starting to implement element maps 2013-11-19 23:14:36 +01:00
Robert von Burg 7289dccdfc [New] added parseFromString()-methods to all Parameter implementations 2013-11-19 22:54:25 +01:00
Robert von Burg d043c59910 [Major] refactored the DateParameter and Order date to be Date, not long 2013-11-18 19:22:59 +01:00
Robert von Burg 4a828731d8 [New] added script to log commits ahead of origin 2013-11-16 01:52:42 +01:00
Robert von Burg f1f6719caf [New] added script to log commits ahead of origin 2013-11-16 01:52:03 +01:00
Robert von Burg 86db450fb6 [New] Implemented ServiceHandler with Privilege validation
Performing a Service is as simple as this:
  GreetingService greetingService = new GreetingService();
  GreetingArgument greetingArgument = new GreetingArgument();
  greetingArgument.name = "Robert";
  GreetingResult greetingResult = serviceHandler.
        doService(null, greetingService, greetingArgument);
  assertThat(greetingResult.getGreeting(), 
        containsString("Hello Robert. Nice to meet you!"));
2013-11-16 01:13:13 +01:00
Robert von Burg afda69d236 [Minor] Added convenience method to access PrivilegeHandler 2013-11-16 01:10:20 +01:00
Robert von Burg 548a34b9f3 [Minor] throw exception if declared dependency is missing
Instead of running into a NPE, now an exception is thrown so the user
knows which component is missing which dependency.
2013-11-16 01:09:44 +01:00
Robert von Burg 0741165c71 [Minor] removed unneeded logger 2013-11-14 22:42:50 +01:00
Robert von Burg d79532c201 [New] Added new script to list git status of each project 2013-11-14 21:42:48 +01:00
Robert von Burg 30db53611b [Minor] fixed an incorrect constructor on SimpleServiceHandler 2013-11-14 21:36:49 +01:00
Robert von Burg 904b89f809 [New] Implemented notifying of observers of changed objects after a TX
So that components/observers can be notified of changes to the model,
the completion of a TX now triggers an ObserverHandler update of the
modified objects
2013-11-14 21:36:01 +01:00
Robert von Burg 81960291e7 [New] Implemented ObserverHandler model
An ObserverHandler component can be registered and used to update
listeners.
2013-11-14 21:32:24 +01:00
Robert von Burg 1e8648bc2a [New] implemented a RuntimeMock for easy mockin the container
This can be used in the different projects to testing components which
need a runtime
2013-11-14 21:31:14 +01:00
Robert von Burg defba45d02 [New] added state to the container - checked by PrivilegeHandler
The container how sets its own state once it has changed the state of
the components. Now the DefaultStrolchPrivilegeHandler checks that the
container has started before allowing any methods to be called. 

This might still be too restrictive in that when the container is
stopped, that then an admin can not log in and perform any actions, but
this can then be changed when needed.
2013-11-13 19:52:49 +01:00
Robert von Burg ff1b629c9d [New] Implemented a component directed acyclic dependency tree
This is needed to start/stop in the right order
2013-11-12 19:34:48 +01:00
Robert von Burg 8702caa5c3 Implemented tests for dependency analyzing. 2013-11-08 18:24:32 +01:00
Robert von Burg 3a44a1407e [Devel] busy implementing a component directed acyclic dependency tree
This is needed to start/stop in the right order
2013-11-06 22:34:00 +01:00
Robert von Burg 34692df586 [Devel] busy implementing a component directed acyclic dependency tree
This is needed to start/stop in the right order
2013-11-05 20:42:20 +01:00
Robert von Burg ede49b6d20 [Devel] busy implementing a component directed acyclic dependency tree
This is needed to start/stop in the right order
2013-11-05 20:42:14 +01:00
Robert von Burg af34d81df8 [Devel] busy implementing a component directed acyclic dependency tree
This is needed to start/stop in the right order
2013-11-05 20:41:24 +01:00
Robert von Burg 3f177275b3 [New] initial commit of pom.xml 2013-10-31 00:45:48 +01:00
Robert von Burg a6fe2dce67 [New] added a container mock which creates the required directory struct 2013-10-31 00:44:29 +01:00
Robert von Burg e415dcd6bf [New] rewrote the abstract test to use mocking of the container 2013-10-31 00:43:52 +01:00
Robert von Burg 85011270d2 [Major] basic implementation of Strolch Runtime complete
- We now have a container which can be configured with components, can
be setup, started, stopped and destroye.

- Missing is still the implementation of the dependencies.
2013-10-31 00:43:14 +01:00
Robert von Burg 8c8a7b1dc4 [Minor] Extended LocatorBuilder to allow removing last element 2013-10-30 07:57:15 +01:00
Robert von Burg 546f2c9caf Revert "[New] refactored Locator"
This reverts commit bca42e35c8.
2013-10-30 07:45:01 +01:00
Robert von Burg bbd862de72 [Minor] Added hashcode() and equals() to Locator 2013-10-30 07:41:55 +01:00
Robert von Burg bca42e35c8 [New] refactored Locator
Now added method to add single element, or get parent. Also removed
restriction for element to have at least three elements. Now one element
is sufficient.
2013-10-29 21:04:50 +01:00
Robert von Burg efd30b82a9 [New] implementing base configuration model and privilege handler 2013-10-28 22:07:54 +01:00
Robert von Burg f04dcdb43e [Minor] added constructor to SimpleServiceHandler 2013-10-28 22:07:28 +01:00
Robert von Burg 5e82fa7fc5 [Minor] added constructor to XmlPersistenceHandler 2013-10-28 22:07:17 +01:00