From: <ri...@us...> - 2007-03-03 20:29:19
|
Revision: 106 http://techne-dev.svn.sourceforge.net/techne-dev/?rev=106&view=rev Author: rickles Date: 2007-03-03 12:29:20 -0800 (Sat, 03 Mar 2007) Log Message: ----------- New classes. Added Paths: ----------- sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/ComponentManager.java sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/Feature.java sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/FeatureSet.java Added: sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/ComponentManager.java =================================================================== --- sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/ComponentManager.java (rev 0) +++ sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/ComponentManager.java 2007-03-03 20:29:20 UTC (rev 106) @@ -0,0 +1,51 @@ +/** + * + */ +package org.digivitality.techne.component; + +import java.io.File; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; + +/** + * @author Rick Litton + * + */ +public class ComponentManager { + + private List features = new ArrayList(); + private List featureSets = new ArrayList(); + private List fragments = new ArrayList(); + + public ComponentManager() { + init(); + } + + public void init() { + try { + File file1 = new File("load/rssfeed.jar"); + File file2 = new File("load/email.jar"); + File file3 = new File("load/blog.jar"); + File file4 = new File("load/filebrowser.jar"); + fragments.add(new Fragment("RSS Feed", file1.toURL(), "1.0.0", "0")); + fragments.add(new Fragment("Email", file2.toURL(), "1.0.0", "1")); + fragments.add(new Fragment("MyBlog", file3.toURL(), "1.0.0", "2")); + fragments.add(new Fragment("FileBrowser", file4.toURL(), "1.0.0", "3")); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public List getFragments() { + return fragments; + } + + public List getComponents() { + List components = new ArrayList(); + components.add(features); + components.add(featureSets); + components.add(fragments); + return components; + } + } Added: sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/Feature.java =================================================================== --- sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/Feature.java (rev 0) +++ sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/Feature.java 2007-03-03 20:29:20 UTC (rev 106) @@ -0,0 +1,29 @@ +package org.digivitality.techne.component; + +import java.net.URL; + +public class Feature { + private URL location; + private String name; + + Feature(String name, URL url) { + setName(name); + setLocation(url); + } + + public void setLocation(URL url) { + this.location = url; + } + + public URL getLocation() { + return location; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } +} Added: sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/FeatureSet.java =================================================================== --- sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/FeatureSet.java (rev 0) +++ sandbox/rickles/org.digivitality.techne.component/src/org/digivitality/techne/component/FeatureSet.java 2007-03-03 20:29:20 UTC (rev 106) @@ -0,0 +1,48 @@ +package org.digivitality.techne.component; + +import java.net.URL; +import java.util.ArrayList; +import java.util.List; + +public class FeatureSet { + + private URL location; + private String name; + private List list = new ArrayList(); + + FeatureSet() {} + + FeatureSet(String name, URL url, List features) { + setName(name); + setLocation(url); + setFeatures(features); + } + + public void setLocation(URL url) { + this.location = url; + } + + public URL getLocation() { + return location; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void add(Feature feature) { + list.add(feature); + } + + public List getFeatures() { + return list; + } + + public void setFeatures(List features) { + this.list = features; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |