geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r767900 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/
Date Thu, 23 Apr 2009 12:05:20 GMT
Author: gnodet
Date: Thu Apr 23 12:05:20 2009
New Revision: 767900

URL: http://svn.apache.org/viewvc?rev=767900&view=rev
Log:
Add toString() methods to metadata objects

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanArgumentImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanPropertyImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/CollectionMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ComponentMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/IdRefMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ListenerImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapEntryImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/PropsMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefCollectionMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ReferenceMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RegistrationListenerImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceReferenceMetadataImpl.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ValueMetadataImpl.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanArgumentImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanArgumentImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanArgumentImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanArgumentImpl.java
Thu Apr 23 12:05:20 2009
@@ -72,7 +72,12 @@
         this.index = index;
     }
 
+    @Override
     public String toString() {
-        return index + " " + value + " " + valueType;
+        return "BeanArgument[" +
+                "value=" + value +
+                ", valueType='" + valueType + '\'' +
+                ", index=" + index +
+                ']';
     }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -190,4 +190,21 @@
         this.explicitDependencies.add(explicitDependency);
     }
 
+    @Override
+    public String toString() {
+        return "BeanMetadata[" +
+                "id='" + id + '\'' +
+                ", className='" + className + '\'' +
+                ", initMethodName='" + initMethodName + '\'' +
+                ", destroyMethodName='" + destroyMethodName + '\'' +
+                ", arguments=" + arguments +
+                ", properties=" + properties +
+                ", lazyInit=" + lazyInit +
+                ", factoryMethodName='" + factoryMethodName + '\'' +
+                ", factoryComponent=" + factoryComponent +
+                ", scope='" + scope + '\'' +
+                ", runtimeClass=" + runtimeClass +
+                ", explicitDependencies=" + explicitDependencies +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanPropertyImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanPropertyImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanPropertyImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/BeanPropertyImpl.java
Thu Apr 23 12:05:20 2009
@@ -62,7 +62,11 @@
         this.value = value;
     }
 
+    @Override
     public String toString() {
-        return name + " " + value;
+        return "BeanProperty[" +
+                "name='" + name + '\'' +
+                ", value=" + value +
+                ']';
     }
 }
\ No newline at end of file

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/CollectionMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/CollectionMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/CollectionMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/CollectionMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -90,4 +90,12 @@
         this.values.add(value);
     }
 
+    @Override
+    public String toString() {
+        return "CollectionMetadata[" +
+                "collectionClass=" + collectionClass +
+                ", valueTypeName='" + valueTypeName + '\'' +
+                ", values=" + values +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ComponentMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ComponentMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ComponentMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ComponentMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -28,7 +28,7 @@
  */
 public class ComponentMetadataImpl implements ComponentMetadata {
 
-    private String id;
+    protected String id;
 
     protected ComponentMetadataImpl() {
     }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/IdRefMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/IdRefMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/IdRefMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/IdRefMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -28,7 +28,7 @@
  */
 public class IdRefMetadataImpl implements IdRefMetadata {
 
-    private String componentId;
+    protected String componentId;
 
     public IdRefMetadataImpl() {
     }
@@ -48,4 +48,11 @@
     public void setComponentId(String componentId) {
         this.componentId = componentId;
     }
+
+    @Override
+    public String toString() {
+        return "IdRefMetadata[" +
+                "componentId='" + componentId + '\'' +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ListenerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ListenerImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ListenerImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ListenerImpl.java
Thu Apr 23 12:05:20 2009
@@ -71,4 +71,13 @@
     public void setUnbindMethodName(String unbindMethodName) {
         this.unbindMethodName = unbindMethodName;
     }
+
+    @Override
+    public String toString() {
+        return "Listener[" +
+                "listenerComponent=" + listenerComponent +
+                ", bindMethodName='" + bindMethodName + '\'' +
+                ", unbindMethodName='" + unbindMethodName + '\'' +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapEntryImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapEntryImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapEntryImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapEntryImpl.java
Thu Apr 23 12:05:20 2009
@@ -61,4 +61,12 @@
     public void setValue(Metadata value) {
         this.value = value;
     }
+
+    @Override
+    public String toString() {
+        return "MapEntry[" +
+                "key=" + key +
+                ", value=" + value +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MapMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -93,4 +93,13 @@
         }
         this.entries.add(entry);
     }
+
+    @Override
+    public String toString() {
+        return "MapMetadata[" +
+                "keyTypeName='" + keyTypeName + '\'' +
+                ", valueTypeName='" + valueTypeName + '\'' +
+                ", entries=" + entries +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/PropsMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/PropsMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/PropsMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/PropsMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -69,4 +69,10 @@
         this.entries.add(entry);
     }
 
+    @Override
+    public String toString() {
+        return "PropsMetadata[" +
+                "entries=" + entries +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefCollectionMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefCollectionMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefCollectionMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefCollectionMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -76,4 +76,19 @@
     public void setMemberType(int memberType) {
         this.memberType = memberType;
     }
+
+    @Override
+    public String toString() {
+        return "RefCollectionMetadata[" +
+                "availability=" + availability +
+                ", interfaceNames=" + interfaceNames +
+                ", componentName='" + componentName + '\'' +
+                ", filter='" + filter + '\'' +
+                ", serviceListeners=" + serviceListeners +
+                ", collectionType=" + collectionType +
+                ", comparator=" + comparator +
+                ", orderingBasis=" + orderingBasis +
+                ", memberType=" + memberType +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RefMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -39,4 +39,10 @@
         super(source);
     }
 
+    @Override
+    public String toString() {
+        return "RefMetadata[" +
+                "componentId='" + componentId + '\'' +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ReferenceMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ReferenceMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ReferenceMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ReferenceMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -46,4 +46,15 @@
         this.timeout = timeout;
     }
 
+    @Override
+    public String toString() {
+        return "ReferenceMetadata[" +
+                "availability=" + availability +
+                ", interfaceNames=" + interfaceNames +
+                ", componentName='" + componentName + '\'' +
+                ", filter='" + filter + '\'' +
+                ", serviceListeners=" + serviceListeners +
+                ", timeout=" + timeout +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RegistrationListenerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RegistrationListenerImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RegistrationListenerImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/RegistrationListenerImpl.java
Thu Apr 23 12:05:20 2009
@@ -71,4 +71,13 @@
     public void setUnregistrationMethodName(String unregistrationMethodName) {
         this.unregistrationMethodName = unregistrationMethodName;
     }
+
+    @Override
+    public String toString() {
+        return "RegistrationListener[" +
+                "listenerComponent=" + listenerComponent +
+                ", registrationMethodName='" + registrationMethodName + '\'' +
+                ", unregistrationMethodName='" + unregistrationMethodName + '\'' +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -161,4 +161,17 @@
         this.explicitDependencies.add(explicitDependency);
     }
 
+    @Override
+    public String toString() {
+        return "ServiceMetadata[" +
+                "id='" + id + '\'' +
+                ", exportedComponent=" + exportedComponent +
+                ", interfaceNames=" + interfaceNames +
+                ", autoExportMode=" + autoExportMode +
+                ", serviceProperties=" + serviceProperties +
+                ", ranking=" + ranking +
+                ", registrationListeners=" + registrationListeners +
+                ", explicitDependencies=" + explicitDependencies +
+                ']';
+    }
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceReferenceMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceReferenceMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceReferenceMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ServiceReferenceMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -32,13 +32,13 @@
  * @author <a href="mailto:dev@geronimo.apache.org">Apache Geronimo Project</a>
  * @version $Rev: 760378 $, $Date: 2009-03-31 11:31:38 +0200 (Tue, 31 Mar 2009) $
  */
-public class ServiceReferenceMetadataImpl extends ComponentMetadataImpl implements ServiceReferenceMetadata
{
+public abstract class ServiceReferenceMetadataImpl extends ComponentMetadataImpl implements
ServiceReferenceMetadata {
 
-    private int availability;
-    private List<String> interfaceNames;
-    private String componentName;
-    private String filter;
-    private Collection<Listener> serviceListeners;
+    protected int availability;
+    protected List<String> interfaceNames;
+    protected String componentName;
+    protected String filter;
+    protected Collection<Listener> serviceListeners;
 
     public ServiceReferenceMetadataImpl() {
     }
@@ -111,4 +111,5 @@
         }
         this.serviceListeners.add(bindingListenerMetadata);
     }
+
 }

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ValueMetadataImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ValueMetadataImpl.java?rev=767900&r1=767899&r2=767900&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ValueMetadataImpl.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/ValueMetadataImpl.java
Thu Apr 23 12:05:20 2009
@@ -63,4 +63,12 @@
     public void setTypeName(String typeName) {
         this.typeName = typeName;
     }
+
+    @Override
+    public String toString() {
+        return "ValueMetadata[" +
+                "stringValue='" + stringValue + '\'' +
+                ", typeName='" + typeName + '\'' +
+                ']';
+    }
 }



Mime
View raw message