Changeset 1448 for trunk/src/main/php/net/stubbles/websites/processors/stubDefaultProcessorResolver.php
- Timestamp:
- 03/22/08 23:28:08 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/processors/stubDefaultProcessorResolver.php
r1447 r1448 16 16 * The default processor resolver is able to select the processor to be used 17 17 * for the current request depending on the request parameter <em>processor</em>. 18 * For instance, if you add a processorwith18 * For instance, if you add two processors with 19 19 * <code> 20 20 * $defaultProcessor->addProcessor('foo', 'org::stubbles::test::FooProcessor'); 21 21 * $defaultProcessor->addProcessor('bar', 'org::stubbles::test::BarProcessor'); 22 22 * </code> 23 * then the first added processor class named as second argument will be24 * selected if the value of the requestparam is <em>foo</em>.23 * then the first processor class will be selected if the value of the request 24 * param is <em>foo</em>. 25 25 * 26 26 * To make sure that a processor gets selected even in case the parameter is not … … 33 33 * processors, else an exception will be thrown. 34 34 * 35 * Additionally one can set the interceptor descriptor used by the processor and 36 * the page factory class to be used by the processor. While the first is used 37 * to determine the interceptor configuration to be used in conjunction with 38 * this processor, the latter determines the page factory class that will be 39 * injected into the processor's <code>selectPage()</code> method if the 40 * processor implements the 41 * <code>net::stubbles::websites::processors::stubPageBasesProcessor</code> 35 * Additionally one can set the interceptor descriptor and the page factory 36 * class. While the first is used to determine the interceptor configuration to 37 * be used in conjunction with this processor, the latter determines the page 38 * factory class that will be injected into the processor's 39 * <code>selectPage()</code> method if the processor implements the 40 * <code>net::stubbles::websites::processors::stubPageBasedProcessor</code> 42 41 * interface. 43 42 *
