<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi John,<br>
<br>
if you have a custom flagencoder why not just call<br>
new EncodingManager(new YourFlagEncoder()) ?<br>
<br>
Reflections was abandoned due to portability reasons but also it
is not really necessary here, especially as you use it as a
library and you have a custom flag encoder anyway.<br>
<br>
Regards,<br>
Peter<br>
<br>
On 28.05.2015 20:14, John Zhao wrote:<br>
</div>
<blockquote
cite="mid:CA+EBg9SCiVKG7YtQn2TCXpL5Hx5rqAZq51NSY8wuoEK_G+KOUA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have a project which use GH as a library.</div>
<div>I have implemented my own flag encoder, like
xxxFlagEncoder.</div>
<div>I don't figure out a good way to initialize it, except to
change the EncodingManger to insert xxxFlagEncoder on
parseEncoderString().</div>
<div>I think it's better the change the way EncodingManger
initialize all the flagEncoders.</div>
<div>EncodingManger can use reflection to find the class or
flagEncoder from its name, if we standardize the name and
toString method.</div>
<div><br>
</div>
<div>Do you think it's a good idea, or there is a better way? </div>
<div><br>
</div>
<div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>