geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r694378 - /geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java
Date Thu, 11 Sep 2008 17:41:07 GMT
Author: jdillon
Date: Thu Sep 11 10:41:04 2008
New Revision: 694378

URL: http://svn.apache.org/viewvc?rev=694378&view=rev
Log:
Make prefs api accept multipule beans

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java?rev=694378&r1=694377&r2=694378&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-prefs/src/main/java/org/apache/geronimo/gshell/prefs/PreferencesProcessor.java
Thu Sep 11 10:41:04 2008
@@ -30,24 +30,23 @@
  */
 public class PreferencesProcessor
 {
-    private final Object bean;
+    public PreferencesProcessor() {}
 
-    public PreferencesProcessor(final Object bean) throws IllegalAnnotationError {
-        assert bean != null;
-
-        this.bean = bean;
-
-        discoverDescriptors();
+    public PreferencesProcessor(final Object bean) {
+        addBean(bean);
     }
 
-    public Object getBean() {
-        return bean;
+    public void addBean(final Object bean) {
+        assert bean != null;
+
+        // TODO:
     }
 
     //
     // Discovery
     //
 
+    /*
     private void discoverDescriptors() {
         // Recursively process all the methods/fields.
         for (Class type=bean.getClass(); type!=null; type=type.getSuperclass()) {
@@ -68,7 +67,8 @@
             }
         }
     }
-
+    */
+    
     //
     // Processing
     //



Mime
View raw message