[Design of JBossCache] - Re: Last chance for any changes to the 2.0.0 API
by genman
"manik.surtani(a)jboss.com" wrote : anonymous wrote :
| | Also, I'd like to hear some feedback on this issue: http://jira.jboss.com/jira/browse/JBCACHE-890 . I think we may want to add a couple of flags (three already come to mind.) Multiple booleans might be sufficient for the moment. Still, having a way to extend things cleanly might be nice in 2.0.
| |
|
| Start a separate thread on this. I think that having such dynamically set series of flags on a node is a bit weird, wonder if we're better off with a limited set of getters/setters.
I think a get/set(boolean) for the NodeSPI is fine. I'm more concerned about the underlying implementation: It's just likely that the set of properties of a node will expand over time. What will inevitably happen is you'll want to add more methods to NodeSPI. The idea is to add some potential for future expansion.
If you think of the Tree as somewhat modeled off of a file system, the need for meta-data comes up time and time again. Maybe Java annotations can serve this role? But really you need something more dynamic.
anonymous wrote :
| Finally, from this hierarchy, I still don't see a clean way to access CacheSPI (or NodeSPI), except to do:
|
| CacheSPI spi = (CacheSPI)cache;
|
I "proposed" the API to access the node SPI should be Node.getNodeSPI(). This was cleaner rather than having to make an iffy cast all the time. I believe that a Cache.getCacheSPI() would be for the best.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994779#3994779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994779
19 years, 3 months
[Design the new POJO MicroContainer] - Re: OSGi integration
by alesj
"scott.stark(a)jboss.org" wrote : Being able to support osgi deployments is the only real plan.
This meaning what - or how does this fit into framework vs. services picture?
Or is this similiar to what Spring is doing with their OSGi support?
Since I just had a discussion with Apache Felix (full OSGi implementation) lead and an OSGi EG lead about our integration.
They are willing to help, but we need to know exactly what we want to do.
Are we going to a full implementation (which is a lot of work for spec r4), or we can base our impl on top of Felix with appropriate hooks (where possible - but we could be able to contribute some code to Felix for this) or just a simple 'Spring like' implementation (depending on other full impls - Felix, Equinox, Knopflerfish, ...).
How much work does our new Deployers architecture take away?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994752#3994752
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994752
19 years, 3 months