Issue Details (XML | Word | Printable)

Key: TRB-27
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Scott Eade
Reporter: Thomas Vandahl
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Turbine

Turbine 2.3.2 compatible Service to use YAAFI instead of the AvalonComponentService

Created: 26/Jun/06 04:17 PM   Updated: 06/Jan/09 09:02 PM
Return to search
Component/s: Fulcrum
Affects Version/s: Core 2.3.2
Fix Version/s: Core 2.3.3

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works ACSYaafiComponentService.java 2006-06-26 04:19 PM Thomas Vandahl 9 kB

Resolution Date: 29/Apr/07 01:23 PM


 Description  « Hide
I changed a few lines in the TurbineYaafiComponentService to make it run as a Drop-In replacement of the TurbineAvalonComponentService which is based on ECM. To use this, you just need to change the line

services.AvalonComponentService.classname=org.apache.turbine.services.avalon.TurbineAvalonComponentService

into

services.AvalonComponentService.classname=org.apache.turbine.services.yaafi.TurbineYaafiComponentService

and add

services.AvalonComponentService.containerConfiguration = /WEB-INF/conf/containerConfiguration.xml

to the TurbineResources.properties file.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Thomas Vandahl added a comment - 26/Jun/06 04:19 PM
Just the source for there is no source package for this.

Siegfried Goeschl added a comment - 26/Jun/06 04:52 PM
Since we have discussed the topic early just a quick comment - using the Component interface is deprecated (see http://wiki.apache.org/avalon/ContainerStory and the chapter "How Components Became Services") - in the long run we have to switch back to returning Object instead of Component (as it was done in the original implementation)

Jürgen Hoffmann added a comment - 26/Jun/06 05:40 PM
So what do we return instead of Components then? TurbineServices? Aren't we doing so at the current Stage? ServiceManager.getService(ServiceName) looks a bit Different than ComponentManager.lookup(ComponentName) but if it returns Object is essentially the same, isn't it?

Thomas Vandahl added a comment - 26/Jun/06 06:20 PM
This is for Turbine 2.3.2, remember. There, the method AvalonComponentService.lookup returns Component. If I return Object in this case, this would break code which relies on the Component interface. I agree that for Turbine 2.4 this is not an issue, but for 2.3 it is relevant.

Scott Eade added a comment - 29/Apr/07 01:23 PM
org.apache.turbine.services.avaloncomponent.ACSYaafiComponentService has been committed to the 2.3 branch along with docs and a basic test case.

Thomas Vandahl added a comment - 06/Jan/09 09:02 PM
Fix is in 2.3.3-release