Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Turbine Wiki" for 
change notification.

The "Turbine4/Turbine4.0M1/Migrate233" page has been changed by ThomasVandahl:
http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233?action=diff&rev1=2&rev2=3

Comment:
Add FactoryService

      </crypto>
  }}}
  
+ === FactoryService ===
+ 
+ The !TurbineFactoryService has been replaced with the 
[[http://turbine.apache.org/fulcrum/fulcrum-factory/|Fulcrum Factory]] 
counterpart. The following example shows the default configuration of the 
''!CryptoFactory'' before and after the migration. For details of the 
configuration options available see the 
[[http://turbine.apache.org/fulcrum/fulcrum-factory/|Fulcrum Factory Site]].
+ 
+ `TurbineResources.properties`:
+ 
+ {{{
+ 
services.FactoryService.classname=org.apache.turbine.services.factory.TurbineFactoryService
+ 
+ # -------------------------------------------------------------------
+ #
+ #  F A C T O R Y  S E R V I C E
+ #
+ # -------------------------------------------------------------------
+ 
+ # A comma separated list of classloaders (very optional)
+ #
+ # Example: org.foo.bar.MyClassLoader, org.ack.joe.YourClassLoader
+ #
+ #services.FactoryService.class.loaders=
+ 
+ # Customized factories to be used instead of the default factory.
+ # E.g. to instantiate XML parsers, SSL sockets, etc., which require
+ # specific instantiation not supported by the default factory.
+ # The property name is prefixed with "factory" followed by the
+ # name of the production class. The value is the class name of
+ # the factory implementing the Factory interface. The factory
+ # will be instantiated by using the service itself.
+ #
+ # Examples:
+ #
+ # 
services.FactoryService.factory.javax.xml.parsers.DocumentBuilder=org.foo.xml.DomBuilderFactory
+ # 
services.FactoryService.factory.javax.xml.parsers.SAXParser=org.foo.xml.SaxParserFactory
+ # 
services.FactoryService.factory.java.net.ServerSocket=org.foo.net.SslServerSocketFactory
+ }}}
+ 
+ `roleConfiguration.xml`:
+ 
+ {{{#!xml
+     <role
+         name="org.apache.fulcrum.factory.FactoryService"
+         shorthand="factory"
+         default-class="org.apache.fulcrum.factory.DefaultFactoryService"/>
+ }}}
+ 
+ `componentConfiguration.xml`:
+ 
+ {{{#!xml
+     <factory/>
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to