Hitachi Vantara Pentaho Community Wiki
Child pages
  • Pentaho ObjectFactory and Spring Enhancements

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The PentahoSystem ObjectFactory was later replaced by a wrapper around a Spring XML ApplicationContext. At this time the system was extended to provide modified so you pass a class literal instead of a String. The resulting object from the ObjectFactory was cast to the class type of the literal. Here's the same call using this new functionality

...

This really wasn't much different from the first system. The SimpleName was extracted from the passed-in class. This Simple Name had to match the ID of a bean in the Spring App Contextliteral. A bean had to exist with an ID matching this Simple Name. A downside as a result of this was that you could only have one implementation for a given class. To work around this this limiation limitation another enhancement was made allowing you to pass a String second parameter corresponding to the id of the bean in the Spring ApplicationContext.

...

Anyone trying to customize the system prior to 5.0 had to drop jars into the WAR and modify our core Spring files. Maintainability was difficult.

...