Re: [picocontainer-dev] Gems Behaviors and further on down....
Paul Hammant <[email protected]> Sat, 21 Jun 2008 17:25:21 -0700
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
There is a PicoBuilder in Gems too.
All characteristics can be turned on for any derivative PicoContainer.
It's likely you can't name them as Characteristics.FOOBAR, but there's
no reason that MyCharacteristic.FOOBAR won't work too.
AdaptingBehavior recognizes all the built-in characteristics, a sub-
class of that could recognize one or two more...
Maybe the the JMX one could do with a test case.
- Paul
On Jun 21, 2008, at 1:51 PM, Michael Rimov wrote:
> Is it my imagination or is there currently no way to dynamically
> turn on Gems
> behaviors: ie
>
> MutablePicoContainer mpc = new PicoBuilder().build();
> mpc.as(HOT_SWAP).addComponent(HotSwap.class, SomethingElse.class);
> mpc.as(POOLED).addComponent(DatabasePool.class, JDBCPool.class);
> mpc.as(CACHED,DELEGATE_METHOD).addComponent(...);
>
> ??
>
> I just don't see the equivalent of org.picocontainer.Characteristics
> inside Gems
> (or anywhere else, actually)..
>
> I found a JMX characteristic, but a workspace-wide search didn't
> seem to have it
> used anywhere and none of the gems-behavior tests show integration
> with Pico.
>
> Sorry, I just haven't had a chance to seriously play with as() up to
> this point.
>
> -Mike
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email