Skip to Content.
Sympa Menu

notify-dpml - r1310 - in trunk/main: depot/library/src/main/net/dpml/library/impl metro/component/src/main/net/dpml/component metro/runtime/src/main/net/dpml/metro/runtime transit/core/src/main/net/dpml/part

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1310 - in trunk/main: depot/library/src/main/net/dpml/library/impl metro/component/src/main/net/dpml/component metro/runtime/src/main/net/dpml/metro/runtime transit/core/src/main/net/dpml/part
  • Date: Tue, 4 Apr 2006 21:26:04 +0200

Author: mcconnell
Date: 2006-04-04 21:26:00 +0200 (Tue, 04 Apr 2006)
New Revision: 1310

Modified:

trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
trunk/main/metro/component/src/main/net/dpml/component/Composition.java

trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/CompositionController.java
trunk/main/transit/core/src/main/net/dpml/part/Builder.java
trunk/main/transit/core/src/main/net/dpml/part/Part.java
trunk/main/transit/core/src/main/net/dpml/part/PartError.java
trunk/main/transit/core/src/main/net/dpml/part/Plugin.java
Log:
checkstyle

Modified:
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
===================================================================
---
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-04-04 18:45:07 UTC (rev 1309)
+++
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-04-04 19:26:00 UTC (rev 1310)
@@ -101,7 +101,7 @@
* @param logger the assigned logging channel
* @param library the reference library
* @param module the parent module
- * @directive the resource directive
+ * @param directive the resource directive
*/
DefaultResource( Logger logger, DefaultLibrary library, DefaultModule
module, ResourceDirective directive )
{

Modified:
trunk/main/metro/component/src/main/net/dpml/component/Composition.java
===================================================================
--- trunk/main/metro/component/src/main/net/dpml/component/Composition.java
2006-04-04 18:45:07 UTC (rev 1309)
+++ trunk/main/metro/component/src/main/net/dpml/component/Composition.java
2006-04-04 19:26:00 UTC (rev 1310)
@@ -45,7 +45,8 @@
* @param info the part info descriptor
* @param classpath the part classpath definition
* @param controller the part controller
- * @param directive the part deployment strategy directive3
+ * @param directive the part deployment strategy directive
+ * @exception IOException if an I/O error occurs
*/
public Composition( Logger logger, Info info, Classpath classpath,
Controller controller, Directive directive )
throws IOException

Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/CompositionController.java
===================================================================
---
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/CompositionController.java
2006-04-04 18:45:07 UTC (rev 1309)
+++
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/CompositionController.java
2006-04-04 19:26:00 UTC (rev 1310)
@@ -126,6 +126,7 @@
* @param info the part info definition
* @param classpath the part classpath definition
* @param strategy the DOM element definining the deplyment streategy
+ * @return the part definition
* @exception IOException if an I/O error occurs
*/
public Part build( Info info, Classpath classpath, Element strategy )
throws IOException

Modified: trunk/main/transit/core/src/main/net/dpml/part/Builder.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/part/Builder.java 2006-04-04
18:45:07 UTC (rev 1309)
+++ trunk/main/transit/core/src/main/net/dpml/part/Builder.java 2006-04-04
19:26:00 UTC (rev 1310)
@@ -36,7 +36,8 @@
* Construct a new part.
* @param info the part information descriptor
* @param classpath the part classpath descriptor
- * @param element the DOM element definining the deployment strategy
+ * @param strategy the DOM element definining the deployment strategy
+ * @return the part definition
* @exception IOException if an I/O error occurs
*/
Part build( Info info, Classpath classpath, Element strategy ) throws
IOException;

Modified: trunk/main/transit/core/src/main/net/dpml/part/Part.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/part/Part.java 2006-04-04
18:45:07 UTC (rev 1309)
+++ trunk/main/transit/core/src/main/net/dpml/part/Part.java 2006-04-04
19:26:00 UTC (rev 1310)
@@ -201,12 +201,12 @@
return hash;
}

-
/**
* Encode this part strategy to XML.
*
* @param writer the output stream writer
* @param pad the character offset
+ * @exception IOException if an I/O error occurs during part
externalization
*/
protected abstract void encodeStrategy( Writer writer, String pad )
throws IOException;


Modified: trunk/main/transit/core/src/main/net/dpml/part/PartError.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/part/PartError.java
2006-04-04 18:45:07 UTC (rev 1309)
+++ trunk/main/transit/core/src/main/net/dpml/part/PartError.java
2006-04-04 19:26:00 UTC (rev 1310)
@@ -19,8 +19,6 @@

package net.dpml.part;

-import java.io.IOException;
-
/**
* Fatal part related error.
*

Modified: trunk/main/transit/core/src/main/net/dpml/part/Plugin.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/part/Plugin.java 2006-04-04
18:45:07 UTC (rev 1309)
+++ trunk/main/transit/core/src/main/net/dpml/part/Plugin.java 2006-04-04
19:26:00 UTC (rev 1310)
@@ -49,6 +49,7 @@
* @param info the part info descriptor
* @param classpath the classpath descriptor
* @param classname the target class
+ * @exception IOException if an I/O error occurs
*/
public Plugin(
Logger logger, Info info, Classpath classpath, String classname )
@@ -64,6 +65,7 @@
* @param classpath the classpath descriptor
* @param classname the target class
* @param params an array of default value arguments
+ * @exception IOException if an I/O error occurs
*/
public Plugin(
Logger logger, Info info, Classpath classpath, String classname,
Value[] params )
@@ -136,6 +138,11 @@
}
}

+ /**
+ * Test if this instance is equal to the supllied object.
+ * @param other the other object
+ * @return true if the supplied object is equal to this instance
+ */
public boolean equals( Object other )
{
if( super.equals( other ) )
@@ -163,6 +170,27 @@
}
}

+ /**
+ * Get the has code for this instance.
+ * @return the hash value
+ */
+ public int hashCode()
+ {
+ int hash = m_classname.hashCode();
+ for( int i=0; i<m_params.length; i++ )
+ {
+ hash ^= m_params[i].hashCode();
+ }
+ return hash;
+ }
+
+
+ /**
+ * Encode the pluginstrategy to XML.
+ * @param writer the output stream writer
+ * @param pad the character offset
+ * @exception IOException if an I/O error occurs
+ */
protected void encodeStrategy( Writer writer, String pad ) throws
IOException
{
String classname = getClassname();




  • r1310 - in trunk/main: depot/library/src/main/net/dpml/library/impl metro/component/src/main/net/dpml/component metro/runtime/src/main/net/dpml/metro/runtime transit/core/src/main/net/dpml/part, mcconnell at BerliOS, 04/04/2006

Archive powered by MHonArc 2.6.24.

Top of Page