nxt's place

Search


Calendar

« November 2008
MonTueWedThuFriSatSun
     
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
       
Today


Tag Cloud

3com acer ajax apr awt buitenkunst c++ car charva cross debug design domain drop dwr ejb fold fuse glass google gui ie injection ipv6 jboss jna jni linux looking microsoft mime native newsgroup nntp remoting resource router rss scm software ssl subversion sun superversion svn swing travel ui web zangwerkplaats

Fuse 0.1

February 11, 2006 by nxt

Fuse 0.1 has been released

A brief overview of the features in this release:
* Multiple ResourceInjector instance support
* TypeLoader property support
* Global resource syntax
* SWT support
* Fully modular architecture (/Core, /Swing, and /SWT)
* Documentation (both javadoc and TypeLoader specific)
* A brand new build system and instructions on how to use it

 

Fuse, UI Oriented Resource Injection

February 05, 2006 by nxt

With Fuse you can easily inject data in your application at runtime by specifying them in a properties file,
for example using an background image
you used to do something like this:
class CustomComponent extends JComponent {
 private Image background;
 CustomComponent() {
  try {
   background = ImageIO.read(getClass()
    .getResource("/resources/background.png"));
  } catch (IOException e) { }
 }
}

With fuse the code would look like this
class CustomComponent extends JComponent {
 @InjectedResource
 private Image background;
 CustomComponent() {
  ResourceInjector.get().inject(this);
 }
}

Ofcourse you must load a properties file before calling inject using:
ResourceInjector rInjector=
 ResourceInjector.get().load("/resources/fuse.theme");



For more information about Fuse see this entry in the Romain Guy's blog. or take a look at the project page