John,

    Yes... There is a default one and you can override the creator..

http://www.eclipse.org/jetty/documentation/current/jetty-websocket-server-api.html

    I want to override the Creator, but I would really like to use CDI to
inject into the JSR-356 annotated class as it is created, but I also want
to unit test the creator without having to worry about mocking static
methods from Factories etc...

Deven

On Fri, Nov 14, 2014 at 11:17 AM, John D. Ament <[email protected]>
wrote:

> Deven,
>
> I had presented at JavaOne a solution based on Undertow.  Does Jetty have
> some kind of object factory creating instances of components?
>
> John
>
> On Fri, Nov 14, 2014 at 9:32 AM, Deven Phillips <[email protected]>
> wrote:
>
> > Hi all,
> >
> >      New to DeltaSpike (coming from Guice) and I am trying to migrate my
> > Jetty websocket implementation to DeltaSpike, but I would like some help
> > figuring out how to properly inject my JSR-356 annotated object into the
> > WebSocketCreator class. I have created an abstract AbstractSocketHandler
> > which both of my implementation inherit from. So, in my project, if I
> have
> > a class which @Produces an instance of that, does anyone know if the
> Jetty
> > implementation will inject it into the appropriate places? Or will I have
> > to manually use BeanManager to accomplish the injections?
> >
> > Thanks in advance for any help!!
> >
> > Deven Phillips
> >
>

Reply via email to