Comments (3)
Thanks for your suggestions. You are perfectly right, the InformationBroker
right now is only for demo
purposes, and for me to have a look if it's useful or not (and to see how a
good and balanced IB interface
should look like).
The idea of IB is to have a common place to register values, query them and
listen for changes to these values.
The reason why subscribe fires even very early is that you can just subscribe
to one channel and you get
notified even of the initial value, the current behavior is intentional, but an
option could be added not to get
the initial result.
ALL_SET might very likely be wrong, but I haven't verified that yet. However, I
even thought about dumping
the conditions completely and focussing only on single keys.
Any suggestions about that?
Original comment by [email protected]
on 27 May 2010 at 3:20
- Changed state: Accepted
from jspf.
Hi,
If your real-life project should be notified of already set items then an
option is a
good solution. It's your code, at least :)
As of dumping multiple keys conditions, then it's natural to drop them in IB as
such
logic can be moved inside those plugins that require complex behavior.
Also, I suppose your code fires listeners in separate thread, right? Probably,
this
should be optioned too, as I met some cases when an item is quite complex (e.g.
GUI
window), and it changes in parallel with plugin receiving and processing such
notification.
Hope this was useful for you.
Original comment by [email protected]
on 27 May 2010 at 3:55
from jspf.
InformationBroker has been completely revamped. The interface differs, it also
replaces the Bus, and has a convenience InformationBrokerUtils helper class.
Original comment by r.biedert
on 28 Sep 2010 at 1:18
- Changed state: Fixed
from jspf.
Related Issues (20)
- Maven repository is not available HOT 8
- @PluginImplementation seems not to work on inner classes HOT 1
- JSPF should allow to inject wrappers HOT 2
- When adding plugins with classpath://* not the complete classpath is being considered. HOT 1
- JSPF should be able to load nested plugins (archives, ...) HOT 1
- ANT task to include source files for GWT HOT 1
- Is there a way JSPF can be used for GWT based projects ? HOT 1
- JSPF should inspect classpath hierarchy more intensively ...
- return Collection of added plugins from PluginManager.addPluginsFrom (instead of void) HOT 1
- Project name clash (jSPF project already exists since 2006) HOT 2
- @PluginImplementation seems not to work on inner classes on Android HOT 3
- Pseudorandom noclassdeffounderror
- CoolPluginImpl.sayHello() NullPointerException in Android project
- Upload jspf to Maven Central
- Maven support
- java.lang.VerifyError: Cannot inherit from final class
- addPluginsFrom functionality
- Git repository wrong? HOT 1
- No class def found error when load multi-depended-plugins in JARs
- Not possible to load plugin remotely through a proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jspf.