Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Captain Awesome's ResourceFactory  (Read 1887 times)
0 Members and 1 Guest are viewing this topic.
Offline Captain Awesome

Junior Devvie


Medals: 2


Hi


« Posted 2010-11-10 00:13:03 »

Hello!
I have tried a lot of different resource loaders (that loads objects from xml), however I never found one that suited my needs. I didn't want to extend another class, I didn't want to create other objects in order to get my final object. All I wanted was to call one method and get the complete object without any hassle.

That's when I started working on my own resourceloader. My ResourceFactory can load .xml files from InputStreams, files and urls. It supports parenting, objects within objects and java.util.List.
You can download it at: http://www.trololol.se/java/
There is also a tutorial there which explains everything in detail.

If you have any questions or suggestions, feel free to post them here.
Offline Captain Awesome

Junior Devvie


Medals: 2


Hi


« Reply #1 - Posted 2010-11-10 00:26:56 »

Woops, I see I might have posted this in the wrong section. Could a mod move it to "Engines, Libraries and Tools" board?
Offline lhkbob

JGO Knight


Medals: 32



« Reply #2 - Posted 2010-11-10 04:50:22 »

What about this, http://xstream.codehaus.org/?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 55



« Reply #3 - Posted 2010-11-10 08:45:20 »

I think he is not after a deserialization system, but wants to have some sort of registry for him to create predefined resources on demand, so xstream won't cut it.

Mathias - I Know What [you] Did Last Summer!
Offline Captain Awesome

Junior Devvie


Medals: 2


Hi


« Reply #4 - Posted 2010-11-10 09:18:50 »

I think he is not after a deserialization system, but wants to have some sort of registry for him to create predefined resources on demand, so xstream won't cut it.

Yeah, that is pretty much what I wanted to do
Offline Captain Awesome

Junior Devvie


Medals: 2


Hi


« Reply #5 - Posted 2010-11-17 12:22:18 »

I just released an update to this, which includes some methods to add, remove and save nodes within java. Also, you can now specify a method which will be run when an object is created.

Also, I'm releasing the source code here: http://www.trololol.se/java/ResourceFactory.rar. You may do whatever you want with it Smiley


Have fun
Offline Nate

« JGO Bitwise Duke »


Medals: 158
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #6 - Posted 2010-11-17 19:19:57 »

I think he is not after a deserialization system, but wants to have some sort of registry for him to create predefined resources on demand, so xstream won't cut it.

I don't see how what Captain Awesome is doing is any different than Xstream or other serialization.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (35 views)
2014-12-15 09:26:44

Mr.CodeIt (26 views)
2014-12-14 19:50:38

BurntPizza (53 views)
2014-12-09 22:41:13

BurntPizza (86 views)
2014-12-08 04:46:31

JscottyBieshaar (48 views)
2014-12-05 12:39:02

SHC (62 views)
2014-12-03 16:27:13

CopyableCougar4 (64 views)
2014-11-29 21:32:03

toopeicgaming1999 (126 views)
2014-11-26 15:22:04

toopeicgaming1999 (116 views)
2014-11-26 15:20:36

toopeicgaming1999 (34 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!