Hi!
Inline
On Wed, Sep 16, 2009 at 8:47 PM, Survivant 00 <survivant00_at_gmail.com> wrote:
> cool.. will try that soon
>
> at first.. maybe use a constant for web.xml ?
>
> String.format("%s%sweb.xml", location, File.separator));
Fixed
>
> typo here : explodeAndCraeteWebAppClassLoader
Fixed
>
> can it be used embedded easily ?
>
> like
>
>
> webAdapter.deploy("xxx/webapp.war"); ?
Not that easy, we can create convenience method like WAA.deploy(...)
So far we have:
/**
* Default constructor, takes care of setting up adapter.
*
* @param gws Grizzly Web Server to register {_at_link ServletAdapter}s.
* @param root Root folder, for serving static resources
* @param context Context to be deployed to.
* @param webApp Web application to be run by this adapter.
* @param webAppCL Web application class loader.
* @param webdefault Default web application.
*/
public WebAppAdapter(GrizzlyWebServer gws, String root, String
context, final WebApp webApp, URLClassLoader webAppCL, WebApp
webdefault)
So what it takes now for embedding is GWS, parsed WebApp, Classloader
to be used by this WebApp, optional webdefault.
Lets take discussion on how to make it easily embeddable to another thread.
Thanks,
H.
>
>
>
>
>
> 2009/9/16 Hubert Iwaniuk <neotyk_at_kungfoo.pl>
>>
>> Hi *,
>>
>> Refactoring is nearly finished.
>> I've attached a patch. There should be no regression compared to trunk.
>> Please comment on this patch.
>>
>> Thanks in advance,
>> Hubert.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>
>
> --
>
> Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
> http://twitter.com/survivant
>