Az a baja hogy nincs def konstruktora mert minden konstruktor ki van egeszitve a befoglalo osztaly this-jevel. <div><br></div><div>Ez tipp meg most en vagyok eppen telefonvegen. <span></span><br><br>On Monday, April 15, 2013, wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ez elég bonyolult, minden egyes pluginnak saján classloader-e van. Ez a classloader helper-ként megkapja azon pluginek classloader-ét, akiktől függ (mert azokat
láthatja). Leszármazni meg egy olyanból származik le, aki látja az application lib-eket, illetve magát a framework-öt.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">De nem ez a baj, a megfelelő classloader lép akcóba, csak rosszkor, hiszen belső osztályok csak a befogadó osztállyal együtt léteznek, a befogadó példányosítása
környékén kéne nekik is példányosulniuk, de mivel ez csak egy metódus meghívása esetén példányosodna, ezért - talán egyfajta lazy loading miatt - csak a metódus meghívásakor tenné ezt. Ott meg ki tudja miért de nem hajlandó. A classloader resource-ként egyébként
el is éri, csak class-ként betölteni nem akarja. Valami nagyon alap dolgot nézek be...<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Üdv,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Iván<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:12.0pt;line-height:150%;text-autospace:none">
<span style="font-size:8.0pt;line-height:150%;font-family:"Arial","sans-serif";color:gray">______________________________<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:8.0pt;text-autospace:none">
<b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">István Ketler<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Senior Consultant<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Lufthansa Systems Hungária Kft.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">GUI Service Center<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Mobile Solutions Team, Development Center Danube<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Neumann János u. 1/e<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">1117 Budapest<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Hungary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Phone: +36 1 887-2815<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Fax: +36 1 887-0577<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">Mobile: +36 30 600-4936<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="HU" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#787878">E-mail:
</span><span lang="HU" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d"><a href="javascript:_e({}, 'cvml', 'istvan.ketler@LHsystems.com');" target="_blank">istvan.ketler@LHsystems.com</a></span><span lang="DE" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="HU" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d"><a href="http://www.lhsystems.com/" target="_blank">www.LHsystems.com</a><u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div>
<div>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Sitz der Gesellschaft / Corporate Headquarters: </span><span lang="EN-GB" style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Lufthansa Systems Hungaria Kft, Budapest, Fovarosi Birosag 01-09-463417<br>
</span><span style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Geschaeftsfuehrung / Management Board: Peter Sipos</span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><br></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="javascript:_e({}, 'cvml', 'javalist-bounces@lists.javaforum.hu');" target="_blank">javalist-bounces@lists.javaforum.hu</a> [mailto:<a href="javascript:_e({}, 'cvml', 'javalist-bounces@lists.javaforum.hu');" target="_blank">javalist-bounces@lists.javaforum.hu</a>]
<b>On Behalf Of </b>Zsombor<br>
<b>Sent:</b> Monday, April 15, 2013 6:53 PM<br>
<b>To:</b> Java lista<br>
<b>Subject:</b> Re: [Javalist] Classloader anonymous gond<u></u><u></u></span></p>
</div>
<p><u></u> <u></u></p>
<div>
<div>
<p style="margin-bottom:12.0pt">Milyen class loadert használsz, amikor létrehozod az eredeti példányokat ? Azt kéne beállítani hiváskor mint a thread context classloadere ... szvsz.<u></u><u></u></p>
</div>
<p>Zs<u></u><u></u></p>
</div>
<div>
<p style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p>2013/4/15 <<a>istvan.ketler@lhsystems.com</a>><u></u><u></u></p>
<div>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ezt a metódust hívom meg, és ennek a new ActionListener során hasal el:</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <b><span style="color:#7f0055">public</span></b>
<b><span style="color:#7f0055">void</span></b> init() {</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> setLayout(<b><span style="color:#7f0055">new</span></b> BorderLayout());</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> add(<b><span style="color:#7f0055">new</span></b> JLabel(<span style="color:#2a00ff">"Fix label"</span>), BorderLayout.<i><span style="color:#0000c0">NORTH</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> JButton button =
<b><span style="color:#7f0055">new</span></b> JButton(<span style="color:#2a00ff">"Add label"</span>);</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> button.addActionListener(</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <b><span style="color:#7f0055">new</span></b> ActionListener() {</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:green">
/**</span></span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:green"> *
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:teal">@see</span></b><span style="font-size:10.0pt;font-family:Consolas;color:green"> java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:green"> */</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:#646464">
@Override</span></span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <b>
<span style="color:#7f0055">public</span></b> <b><span style="color:#7f0055">void</span></b> actionPerformed(<b><span style="color:#7f0055">final</span></b> ActionEvent $e) {</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> add(<b><span style="color:#7f0055">new</span></b> JLabel(<span style="color:#2a00ff">"Dynamically added label"</span>), BorderLayout.<i><span style="color:#0000c0">CENTER</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> revalidate();</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> repaint();</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> }</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> }</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> );</span><u></u><u></u></p>
<p style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> add(button, BorderLayout.<i><span style="color:#0000c0">SOUTH</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none"></p></div></div></div></div></div></div>
<p></p></div></div>
</blockquote></div><br><br>-- <br>Verhás Péter<br>ügyvezető<br>Verhás & Verhás Szoftver Manufaktúra Kft.<br><a href="mailto:peter@verhas.com">peter@verhas.com</a><br>t: +36(30)9306805<br>skype: verhas<br>