[tor-bugs] #18797 [Metrics/metrics-lib]: create a DescriptorGenerator?
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Oct 7 09:04:30 UTC 2016
#18797: create a DescriptorGenerator?
---------------------------------+-----------------------------------
Reporter: iwakeh | Owner: karsten
Type: enhancement | Status: new
Priority: Low | Milestone: metrics-lib 1.5.0
Component: Metrics/metrics-lib | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------------+-----------------------------------
Comment (by CurtisSalazar):
== ==
The following solution can be: The XML has to be generated easy, utilizing
the !JavaBean contracts as well as creating an element for each and every
property that will figure in generator. It is better to build generator on
Java's reflection mechanisms which is where properties are the only things
that matter here. Look, I found the code at [http://essaydune.com/ college
essay writing services] :!<map:match pattern="bean/*.xml">
<!map:generate type="bean" src="!{2}"/> !<map:serialize type="xml"/>
</!map:match>
I hope this helps...Let me know if some troubles..
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18797#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list