root/trunk/src/main/php/net/stubbles/xml/serializer/annotations/stubXMLMethodsAnnotation.php

Revision 1389, 0.8 kB (checked in by mikey, 3 months ago)

implemented enhancement #128: improved performance of XMLSerializer
Serializing a list of instances of the same object is much faster now.

Line 
1 <?php
2 /**
3  * Annotation for XMLSerializer
4  *
5  * @author      Stephan Schmidt <schst@stubbles.net>
6  * @package     stubbles
7  * @subpackage  xml_serializer_annotations
8  */
9 stubClassLoader::load('net::stubbles::reflection::annotations::stubAnnotation',
10                       'net::stubbles::reflection::annotations::stubAbstractAnnotation'
11 );
12 /**
13  * Annotation for XMLSerializer
14  *
15  * Use this annotation to define, which methods of a class should be serialized
16  *
17  * @package     stubbles
18  * @subpackage  xml_serializer_annotations
19  */
20 interface stubXMLMethodsAnnotation
21 {
22     /**
23      * Get the name of the tag to use for a method
24      *
25      * @param   stubReflectionMethod  $method
26      * @return  string|false
27      */
28     public function getTagnameForMethod(stubReflectionMethod $method);
29 }
30 ?>
Note: See TracBrowser for help on using the browser.