<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>customactions&#187; ioc</title>
	<atom:link href="http://blog.customactions.net/tag/ioc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.customactions.net</link>
	<description>a digital life...</description>
	<lastBuildDate>Wed, 02 Mar 2011 23:48:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>LowRA extra / Zip IoC context loader</title>
		<link>http://blog.customactions.net/2009/02/14/</link>
		<comments>http://blog.customactions.net/2009/02/14/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 23:29:10 +0000</pubDate>
		<dc:creator>Romain Ecarnot</dc:creator>
				<category><![CDATA[lowRA]]></category>
		<category><![CDATA[ioc]]></category>

		<guid isPermaLink="false">http://blog.customactions.net/?p=14</guid>
		<description><![CDATA[Après le chargement de contexte IoC au runtime, bienvenue au chargement de package .zip IoC ;)]]></description>
			<content:encoded><![CDATA[<p>Après le chargement de contexte IoC au runtime, bienvenue au chargement de package .zip IoC <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-14"></span>La nouvelle classe <strong>ZipContextLoader</strong> permet de charger un fichier .zip contenant la définition d&#8217;un contexte IoC ainsi que tous les élements inérant à ce contexte.<br />
En background, cette classe utilise la librairie de <a href="http://www.nochump.com/blog/?p=15">nuchump</a> permettant le chargement et le traitement des fichiers .zip.</p>
<p>Exemple :</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span> <span style="color: #000066; font-weight: bold;">:</span> ZipContextLoader = <span style="color: #0033ff; font-weight: bold;">new</span> ZipContextLoader<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> ApplicationLoaderEvent<span style="color: #000066; font-weight: bold;">.</span>onApplicationInitEVENT<span style="color: #000066; font-weight: bold;">,</span> onComplete <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;archive.zip&quot;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p><strong>ZipContextLoader</strong> gère tous les noeuds IoC connus dans LowRA<br />
<strong>ZipContextLoader</strong> à les même fonctionnalités que <strong>ApplicationLoader</strong> ( pre processing )<br />
<strong>ZipContextLoader </strong>à les même fonctionnalités que <strong>RuntimeContextLoader</strong> ( gestion des display objects  )<br />
<br/><br />
Afin d&#8217;être lisible par la classe <strong>ZipContextLoader</strong>, le fichier .zip doit avoir une certaine structure :<br />
- un <strong>fichier xm</strong>l à la racine du .zip ( son nom est peu important )<br />
- un <strong>répertoire</strong> contenant tous les éléments nécessaire pour le contexte</p>
<p>Par exemple :<br />
- context.xml<br />
- contents/<br />
- contents/logo.jpg<br />
- contents/style.css<br />
<br/><br />
Dans le contexte xml, toutes les url doivent être relative à la racine du ficier .zip</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;beans<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;root</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;custom&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;logo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;logo&quot;</span> <span style="color: #000066;">url</span>=<span style="color: #ff0000;">&quot;contents/logo.jpg&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/root<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/beans<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Les liens qui vont bien maintenant,</p>
<p><a href="http://lowra.customactions.net/extras/ziploader/ZipContextLoader.zip" target="_blank">ZipContextLoader source files<br />
</a><a href="http://lowra.customactions.net/extras/ziploader/zip.swc" target="_blank">nuchump swc library</a><br />
<br/>( Testé avec les archiveurs par défaut de  Windows, Mac et Linux.</p>
<p>Play more <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.customactions.net/2009/02/14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LowRA ? quelqu&#8217;un à des nouvelles de LowRA ?</title>
		<link>http://blog.customactions.net/2009/02/lowra-lowra-quelquun-a-des-nouvelles-de-lowra/</link>
		<comments>http://blog.customactions.net/2009/02/lowra-lowra-quelquun-a-des-nouvelles-de-lowra/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 00:49:29 +0000</pubDate>
		<dc:creator>Romain Ecarnot</dc:creator>
				<category><![CDATA[lowRA]]></category>
		<category><![CDATA[ioc]]></category>

		<guid isPermaLink="false">http://blog.customactions.net/?p=36</guid>
		<description><![CDATA[La question se pose en effet. Et bien je vais répondre clairement et directement : oui et il y a plein de bonnes nouvelles concernant LowRA ! &#160; Il y a même pas mal de mouvement depuis un certains temps, nouvelle documentation de l&#8217;API, nouveaux tutoriaux et cie. Comme disent les jeunes ( ) ça [...]]]></description>
			<content:encoded><![CDATA[<p>La question se pose en effet.</p>
<p>Et bien je vais répondre clairement et directement : <strong>oui</strong> et il y a plein de bonnes nouvelles concernant <a title="LowRA home" href="http://www.lowra.fr" target="_blank">LowRA</a> !<br />
<br/>&nbsp;<br />
<span id="more-36"></span></p>
<p>Il y a même pas mal de mouvement depuis un certains temps, nouvelle documentation de l&#8217;<a title="LowRA API Documentation" href="http://lowra.customactions.net/doc/" target="_blank">API</a>, nouveaux <a title="LowRA tutorials" href="http://lowra.customactions.net/doc/annexes.html" target="_blank">tutoriaux</a> et cie.<br />
Comme disent les jeunes ( <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ) ça fait zizir de voir que ça bouge <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Au rayon des nouveautés on peut trouver :</p>
<ul>
<li>Gestion des URL contenues dans les contextes xml via Flashvars ou URL Query</li>
<li>Définition de ressources externes dans le contexte</li>
<li>Nouvelle API pour gérer le chargement et le traitement du contexte</li>
<li>Preprocessing sur le contexte xml ( en dur dans le code ou directement depuis le context lui même )</li>
<li>Chargement de contexte au runtime</li>
<li>Ainsi que pas mal de petits fix de ci de là&#8230;</li>
</ul>
<p>Et de source sûre <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ça ne va pas s&#8217;arrêter là pour le moment, parce qu&#8217;il y a quelques dossiers dans les cartons qui ne demandent qu&#8217;à sortir.</p>
<p>Un des points noir était le manque de documentation sur l&#8217;utilisation du framework, problème qui tend à se résorber petit à petit avec l&#8217;arrivée de pas mal de <a title="LowRA tutorials" href="http://lowra.customactions.net/doc/annexes.html" target="_blank">tutoriaux</a> sur <strong>IoC</strong> et <strong>LowRA</strong> en général.<br />
On notera aussi l&#8217;arrivée de template ( FDT et XML ) pour l&#8217;édition du code ainsi que la création des contextes xml avec notre Eclipse. ( pfff ça va trop vite maintenant <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>Je vous invite donc tous, amis développeurs, à vous pencher ( ou re pencher ) sur ce beautiful framework.<br />
Couplage faible, abstraction, design sont les maîtres mots, et vraiment, pour l&#8217;utiliser tous les jours, je peux vous dire que c&#8217;est que du bonheur.</p>
<p>Quelques liens pour finir</p>
<ul>
<li><a title="LowRA home" href="http://www.lowra.fr" target="_blank">Site officiel</a></li>
<li><a title="LowRA on Google Code" href="http://code.google.com/p/lowra" target="_blank">Google code</a></li>
<li><a title="lowRA Google group" href="http://groups.google.com/group/lowra/" target="_blank">Google group</a></li>
<li>Et enfin la <a title="LowRA API Documentation" href="http://lowra.customactions.net/doc/" target="_blank">documentation</a> :</li>
</ul>
<p>A vos IDE, ready&#8230;. go <img src='http://blog.customactions.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.customactions.net/2009/02/lowra-lowra-quelquun-a-des-nouvelles-de-lowra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

