notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1321 - in trunk/main: metro/component/src/main/net/dpml/component transit/core/src/main/net/dpml/part transit/core/src/main/net/dpml/transit/artifact
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1321 - in trunk/main: metro/component/src/main/net/dpml/component transit/core/src/main/net/dpml/part transit/core/src/main/net/dpml/transit/artifact
- Date: Wed, 5 Apr 2006 22:56:53 +0200
Author: mcconnell
Date: 2006-04-05 22:56:52 +0200 (Wed, 05 Apr 2006)
New Revision: 1321
Modified:
trunk/main/metro/component/src/main/net/dpml/component/Composition.java
trunk/main/transit/core/src/main/net/dpml/part/Part.java
trunk/main/transit/core/src/main/net/dpml/part/Plugin.java
trunk/main/transit/core/src/main/net/dpml/part/Resource.java
trunk/main/transit/core/src/main/net/dpml/transit/artifact/ArtifactURLConnection.java
Log:
housekeeping
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-05 20:33:36 UTC (rev 1320)
+++ trunk/main/metro/component/src/main/net/dpml/component/Composition.java
2006-04-05 20:56:52 UTC (rev 1321)
@@ -59,8 +59,10 @@
/**
* Return the part content or null if the result type is unresolvable
- * relative to the supplied classes argument.
- * @param classes the content type selection classes
+ * relative to the supplied class argument. Class types recognized over
and
+ * above the Part class include Directive, Model, Component and
Controller.
+ *
+ * @param c the content class
* @return the content
* @exception IOException if an IO error occurs
*/
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-05
20:33:36 UTC (rev 1320)
+++ trunk/main/transit/core/src/main/net/dpml/part/Part.java 2006-04-05
20:56:52 UTC (rev 1321)
@@ -112,9 +112,8 @@
}
/**
- * Return the part content default content.
- * @param classes the content type selection classes
- * @return the content
+ * Return the default part content.
+ * @return the result of part instantiation
* @exception IOException if an IO error occurs
*/
public Object getContent() throws IOException
@@ -165,8 +164,10 @@
/**
* Return the part content or null if the result type is unresolvable
- * relative to the supplied classes argument.
- * @param classes the content type selection classes
+ * relative to the supplied classes argument. Recognized class arguments
+ * include Info, Classpath, Part, ClassLoader, and Object.
+ *
+ * @param c the content type class
* @return the content
* @exception IOException if an IO error occurs
*/
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-05
20:33:36 UTC (rev 1320)
+++ trunk/main/transit/core/src/main/net/dpml/part/Plugin.java 2006-04-05
20:56:52 UTC (rev 1321)
@@ -86,8 +86,8 @@
/**
* Return the part content or null if the result type is unresolvable
- * relative to the supplied classes argument.
- * @param classes the content type selection classes
+ * relative to the supplied class argument.
+ * @param c the content class
* @return the content
* @exception IOException if an IO error occurs
*/
@@ -124,9 +124,8 @@
/**
* Get the default plugin class.
* @return the plugin class
- * @exception Exception if an error occurs
*/
- public Class getPluginClass() throws IOException
+ public Class getPluginClass()
{
ClassLoader classloader = getClassLoader();
String classname = getClassname();
@@ -138,7 +137,7 @@
{
final String error =
"Plugin class [" + classname + "] not found.";
- throw new PartException( error );
+ throw new IllegalStateException( error );
}
}
Modified: trunk/main/transit/core/src/main/net/dpml/part/Resource.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/part/Resource.java
2006-04-05 20:33:36 UTC (rev 1320)
+++ trunk/main/transit/core/src/main/net/dpml/part/Resource.java
2006-04-05 20:56:52 UTC (rev 1321)
@@ -67,7 +67,7 @@
* class is supplied a URL referencing the resource identified by path
* is returned. If a String is requested the urn value is returned.
*
- * @param classes the content type selection classes
+ * @param c the content class
* @return the content
* @exception IOException if an IO error occurs
*/
Modified:
trunk/main/transit/core/src/main/net/dpml/transit/artifact/ArtifactURLConnection.java
===================================================================
---
trunk/main/transit/core/src/main/net/dpml/transit/artifact/ArtifactURLConnection.java
2006-04-05 20:33:36 UTC (rev 1320)
+++
trunk/main/transit/core/src/main/net/dpml/transit/artifact/ArtifactURLConnection.java
2006-04-05 20:56:52 UTC (rev 1321)
@@ -23,7 +23,6 @@
import java.io.IOException;
import java.io.OutputStream;
import java.io.File;
-import java.lang.reflect.InvocationTargetException;
import java.net.ContentHandler;
import java.net.UnknownServiceException;
import java.net.URI;
@@ -38,7 +37,6 @@
import net.dpml.transit.CacheHandler;
import net.dpml.util.MimeTypeHandler;
-import net.dpml.part.Plugin;
import net.dpml.part.Part;
/**
- r1321 - in trunk/main: metro/component/src/main/net/dpml/component transit/core/src/main/net/dpml/part transit/core/src/main/net/dpml/transit/artifact, mcconnell at BerliOS, 04/05/2006
Archive powered by MHonArc 2.6.24.