dev@glassfish.java.net

Re: Bootstrapping HK2

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Wed, 28 Apr 2010 16:14:38 -0700

Right, there's some simple code in AsadminMain to create a Habitat,
if that's enough for you.

Byron Nevins wrote on 04/27/10 03:09 PM:
> asadmin has been "hk2-ized". you might use that as a model?
>
>
> On 4/27/2010 2:53 PM, Jason Lee wrote:
>> I need to write some tests to exercise some ASM code I've written, but
>> I need a working HK2 Dom object. I've been digging through both
>> Grizzly and v3 code looking for how to bootstrap an HK2 environment
>> with just a whole lot of luck. The code I found in Grizzly clearly
>> works, but there's a lot to it, and I haven't been able to track down
>> the code in v3. Can someone point me to some code or documentation
>> that shows the "right" way to bootstrap HK2?
>>
>