notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1093 - in trunk/main/transit: console/src/main/net/dpml/transit/console core/src/main/net/dpml/transit core/src/test/net/dpml/transit/test
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1093 - in trunk/main/transit: console/src/main/net/dpml/transit/console core/src/main/net/dpml/transit core/src/test/net/dpml/transit/test
- Date: Tue, 14 Feb 2006 11:14:39 +0100
Author: mcconnell
Date: 2006-02-14 11:14:37 +0100 (Tue, 14 Feb 2006)
New Revision: 1093
Modified:
trunk/main/transit/console/src/main/net/dpml/transit/console/TransitConsoleHandler.java
trunk/main/transit/core/src/main/net/dpml/transit/Construct.java
trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
trunk/main/transit/core/src/test/net/dpml/transit/test/ArrayTestCase.java
Log:
checkstyle
Modified:
trunk/main/transit/console/src/main/net/dpml/transit/console/TransitConsoleHandler.java
===================================================================
---
trunk/main/transit/console/src/main/net/dpml/transit/console/TransitConsoleHandler.java
2006-02-14 09:36:29 UTC (rev 1092)
+++
trunk/main/transit/console/src/main/net/dpml/transit/console/TransitConsoleHandler.java
2006-02-14 10:14:37 UTC (rev 1093)
@@ -53,7 +53,6 @@
import net.dpml.transit.Logger;
import net.dpml.transit.Transit;
import net.dpml.transit.RepositoryException;
-import net.dpml.transit.UnsupportedSchemeException;
import net.dpml.transit.DefaultTransitModel;
import net.dpml.transit.info.TransitDirective;
import net.dpml.transit.info.ProxyDirective;
@@ -176,7 +175,8 @@
List list = line.getValues( ARGUMENTS );
String[] args = (String[]) list.toArray( new String[ list.size()
] );
Object instance =
- Transit.getInstance().getRepository().getPlugin( loader, uri,
new Object[]{ args } );
+ Transit.getInstance().getRepository().getPlugin(
+ loader, uri, new Object[]{args} );
if( instance instanceof Runnable )
{
Runnable runnable = (Runnable) instance;
Modified: trunk/main/transit/core/src/main/net/dpml/transit/Construct.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/transit/Construct.java
2006-02-14 09:36:29 UTC (rev 1092)
+++ trunk/main/transit/core/src/main/net/dpml/transit/Construct.java
2006-02-14 10:14:37 UTC (rev 1093)
@@ -461,14 +461,20 @@
buffer.append( "\n method: " + m_method + " (" + method + ")" );
for( int i=0; i<instances.length; i++ )
{
- buffer.append( "\n param " + (i+1) + ": " +
instances[i].getClass().getName() );
+ buffer.append(
+ "\n param "
+ + ( i+1 )
+ + ": "
+ + instances[i].getClass().getName()
+ );
}
String error = buffer.toString();
throw new ValueException( error, e );
}
}
- private Object[] getInstanceValues( Map map, ClassLoader classloader,
Value[] args ) throws Exception
+ private Object[] getInstanceValues(
+ Map map, ClassLoader classloader, Value[] args ) throws Exception
{
Object[] instances = new Object[ args.length ];
for( int i=0; i < args.length; i++ )
@@ -752,6 +758,9 @@
// Array
//--------------------------------------------------------------------------
+ /**
+ * Array value defintion.
+ */
public static final class Array implements Value
{
/**
@@ -794,11 +803,19 @@
// ArrayDirective
//--------------------------------------------------------------------------
+ /**
+ * Return the array classname.
+ * @return the classname of the array elements
+ */
public String getClassname()
{
return m_classname;
}
+ /**
+ * Return an array of value element constructor elements.
+ * @return the value array
+ */
public Value[] getValues()
{
return m_values;
@@ -912,6 +929,9 @@
}
}
+ /**
+ * Array bean info.
+ */
public static final class ArrayBeanInfo extends SimpleBeanInfo
{
private static final BeanDescriptor BEAN_DESCRIPTOR =
setupBeanDescriptor();
@@ -937,7 +957,8 @@
/**
* Persistence delegate implementation.
*/
- private static class ArrayPersistenceDelegate extends
DefaultPersistenceDelegate
+ private static class ArrayPersistenceDelegate
+ extends DefaultPersistenceDelegate
{
/**
* Return the expression value.
Modified:
trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
2006-02-14 09:36:29 UTC (rev 1092)
+++ trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
2006-02-14 10:14:37 UTC (rev 1093)
@@ -21,7 +21,6 @@
import java.io.IOException;
import java.io.InputStream;
-import java.io.File;
import java.beans.Expression;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
@@ -36,7 +35,6 @@
import net.dpml.transit.artifact.ArtifactNotFoundException;
import net.dpml.transit.artifact.Handler;
import net.dpml.transit.monitor.RepositoryMonitorRouter;
-import net.dpml.transit.Logger;
/**
* Utility class supporting downloading of resources based on
Modified:
trunk/main/transit/core/src/test/net/dpml/transit/test/ArrayTestCase.java
===================================================================
--- trunk/main/transit/core/src/test/net/dpml/transit/test/ArrayTestCase.java
2006-02-14 09:36:29 UTC (rev 1092)
+++ trunk/main/transit/core/src/test/net/dpml/transit/test/ArrayTestCase.java
2006-02-14 10:14:37 UTC (rev 1093)
@@ -73,15 +73,22 @@
assertNotNull( "demo", demo );
}
+ /**
+ * Test class.
+ */
public static class Demo
{
+ /**
+ * Create a new demo class.
+ * @param args the args
+ */
public Demo( String[] args )
{
for( int i=0; i<args.length; i++ )
{
System.out.print( args[i] );
}
- System.out.println("");
+ System.out.println( "" );
}
}
}
- r1093 - in trunk/main/transit: console/src/main/net/dpml/transit/console core/src/main/net/dpml/transit core/src/test/net/dpml/transit/test, mcconnell at BerliOS, 02/14/2006
Archive powered by MHonArc 2.6.24.