|
I have a folder full of .instance files. How do I get any/all of the object instances |
|
|
To get a folder from the system filesystem and get all of the .instance files of some particular class in it, instantiated as java objects:
FileObject myFolder = Repository.getDefault().getRoot().getFileObject ("MyFolder/MySubFolder");
DataFolder df = DataFolder.findFolder (myFolder);
FolderLookup lkp = new FolderLookup (df);
Collection c = lkp.lookup (new Lookup.Template (SomeClass.class)).allInstances();
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.