Author: tv
Date: Thu Oct 3 13:32:06 2013
New Revision: 1528853
URL: http://svn.apache.org/r1528853
Log:
Fix code sample
Modified:
turbine/core/trunk/xdocs/howto/annotations.xml
Modified: turbine/core/trunk/xdocs/howto/annotations.xml
URL:
http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/howto/annotations.xml?rev=1528853&r1=1528852&r2=1528853&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/howto/annotations.xml (original)
+++ turbine/core/trunk/xdocs/howto/annotations.xml Thu Oct 3 13:32:06 2013
@@ -56,10 +56,10 @@ private FactoryService factory;
This is the equivalent of
<source><![CDATA[
runDataService = (RunDataService) TurbineServices
- .getInstance.getService("RunDataService");
+ .getInstance().getService("RunDataService");
factory = (FactoryService) TurbineServices
- .getInstance.getService(FactoryService.ROLE);
+ .getInstance().getService(FactoryService.ROLE);
]]></source>
As you an see, the annotation supports an optional parameter, the
name of the service in the Turbine service repository. If this