Author: noctarius
Date: Fri Nov  2 19:52:26 2012
New Revision: 1405131

URL: http://svn.apache.org/viewvc?rev=1405131&view=rev
Log:
Fixed build according to license texts and one missed method while exchanging 
DataOutput / -Input with Source / Target

Modified:
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/internal/generator/AbstractGeneratedMarshaller.java
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferSource.java
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferTarget.java
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/OutputStreamTarget.java
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerInputStream.java
    
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerOutputStream.java
    
directmemory/lightning/trunk/lightning-maven-integration-test/src/test/resources/generated.java.out
    
directmemory/lightning/trunk/lightning-maven-plugin/src/main/resources/marshaller.vm
    directmemory/lightning/trunk/pom.xml

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/internal/generator/AbstractGeneratedMarshaller.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/internal/generator/AbstractGeneratedMarshaller.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/internal/generator/AbstractGeneratedMarshaller.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/internal/generator/AbstractGeneratedMarshaller.java
 Fri Nov  2 19:52:26 2012
@@ -18,7 +18,6 @@
  */
 package org.apache.directmemory.lightning.internal.generator;
 
-import java.io.DataOutput;
 import java.io.IOException;
 import java.util.Collections;
 import java.util.List;
@@ -110,7 +109,7 @@ public abstract class AbstractGeneratedM
                                          SerializationContext 
serializationContext )
         throws IOException;
 
-    protected boolean isAlreadyMarshalled( Object value, Class<?> type, 
DataOutput dataOutput,
+    protected boolean isAlreadyMarshalled( Object value, Class<?> type, Target 
target,
                                            SerializationContext 
serializationContext )
         throws IOException
     {
@@ -128,11 +127,11 @@ public abstract class AbstractGeneratedM
         if ( referenceId == -1 )
         {
             referenceId = cacheObjectForMarshall( value, serializationContext 
);
-            dataOutput.writeLong( referenceId );
+            target.writeLong( referenceId );
             return false;
         }
 
-        dataOutput.writeLong( referenceId );
+        target.writeLong( referenceId );
         return true;
     }
 

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferSource.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferSource.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferSource.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferSource.java
 Fri Nov  2 19:52:26 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directmemory.lightning.io;
 
 import java.io.IOException;

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferTarget.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferTarget.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferTarget.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/ByteBufferTarget.java
 Fri Nov  2 19:52:26 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directmemory.lightning.io;
 
 import java.io.IOException;

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/OutputStreamTarget.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/OutputStreamTarget.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/OutputStreamTarget.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/OutputStreamTarget.java
 Fri Nov  2 19:52:26 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directmemory.lightning.io;
 
 import java.io.IOException;

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerInputStream.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerInputStream.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerInputStream.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerInputStream.java
 Fri Nov  2 19:52:26 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directmemory.lightning.io;
 
 import java.io.IOException;

Modified: 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerOutputStream.java
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerOutputStream.java?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerOutputStream.java
 (original)
+++ 
directmemory/lightning/trunk/lightning-core/src/main/java/org/apache/directmemory/lightning/io/SerializerOutputStream.java
 Fri Nov  2 19:52:26 2012
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directmemory.lightning.io;
 
 import java.io.IOException;

Modified: 
directmemory/lightning/trunk/lightning-maven-integration-test/src/test/resources/generated.java.out
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-maven-integration-test/src/test/resources/generated.java.out?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-maven-integration-test/src/test/resources/generated.java.out
 (original)
+++ 
directmemory/lightning/trunk/lightning-maven-integration-test/src/test/resources/generated.java.out
 Fri Nov  2 19:52:26 2012
@@ -1,12 +1,12 @@
 
 package org.apache.directmemory.lightning.maven.integration;
 
-import java.io.DataInput;
-import java.io.DataOutput;
 import java.io.IOException;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.directmemory.lightning.Source;
+import org.apache.directmemory.lightning.Target;
 import org.apache.directmemory.lightning.Marshaller;
 import org.apache.directmemory.lightning.SerializationContext;
 import 
org.apache.directmemory.lightning.instantiator.ObjectInstantiatorFactory;
@@ -51,30 +51,30 @@ public final class FooLightningGenerated
                ACCESSOR_FOO_LIGHTNING = (ValuePropertyAccessor) 
getPropertyAccessor("foo");
        }
        
-       public void marshall(Object value, PropertyDescriptor 
propertyDescriptor, DataOutput dataOutput, SerializationContext 
serializationContext) throws IOException {
-               if (isAlreadyMarshalled(value, propertyDescriptor.getType(), 
dataOutput, serializationContext)) {
+       public void marshall(Object value, PropertyDescriptor 
propertyDescriptor, Target target, SerializationContext serializationContext) 
throws IOException {
+               if (isAlreadyMarshalled(value, propertyDescriptor.getType(), 
target, serializationContext)) {
                        return;
                }
 
                ValuePropertyAccessor barPropertyAccessor = 
this.ACCESSOR_BAR_LIGHTNING;
                PropertyDescriptor barPropertyDescriptor = 
this.DESCRIPTOR_BAR_LIGHTNING;
-               
this.MARSHALLER_BAR_LIGHTNING.marshall(Integer.valueOf(barPropertyAccessor.readInt(value)),
 barPropertyDescriptor, dataOutput, serializationContext);
+               
this.MARSHALLER_BAR_LIGHTNING.marshall(Integer.valueOf(barPropertyAccessor.readInt(value)),
 barPropertyDescriptor, target, serializationContext);
 
                ValuePropertyAccessor fooPropertyAccessor = 
this.ACCESSOR_FOO_LIGHTNING;
                PropertyDescriptor fooPropertyDescriptor = 
this.DESCRIPTOR_FOO_LIGHTNING;
-               
this.MARSHALLER_FOO_LIGHTNING.marshall(fooPropertyAccessor.readObject(value), 
fooPropertyDescriptor, dataOutput, serializationContext);
+               
this.MARSHALLER_FOO_LIGHTNING.marshall(fooPropertyAccessor.readObject(value), 
fooPropertyDescriptor, target, serializationContext);
 
        }
        
-       public <V> V unmarshall(V instance, PropertyDescriptor 
propertyDescriptor, DataInput dataInput, SerializationContext 
serializationContext) throws IOException {
+       public <V> V unmarshall(V instance, PropertyDescriptor 
propertyDescriptor, Source source, SerializationContext serializationContext) 
throws IOException {
                ValuePropertyAccessor barPropertyAccessor = 
this.ACCESSOR_BAR_LIGHTNING;
                PropertyDescriptor barPropertyDescriptor = 
this.DESCRIPTOR_BAR_LIGHTNING;
-               Object barValue = 
this.MARSHALLER_BAR_LIGHTNING.unmarshall(barPropertyDescriptor, dataInput, 
serializationContext);
+               Object barValue = 
this.MARSHALLER_BAR_LIGHTNING.unmarshall(barPropertyDescriptor, source, 
serializationContext);
                barPropertyAccessor.writeInt(instance, ((Integer) 
barValue).intValue());
 
                ValuePropertyAccessor fooPropertyAccessor = 
this.ACCESSOR_FOO_LIGHTNING;
                PropertyDescriptor fooPropertyDescriptor = 
this.DESCRIPTOR_FOO_LIGHTNING;
-               Object fooValue = 
this.MARSHALLER_FOO_LIGHTNING.unmarshall(fooPropertyDescriptor, dataInput, 
serializationContext);
+               Object fooValue = 
this.MARSHALLER_FOO_LIGHTNING.unmarshall(fooPropertyDescriptor, source, 
serializationContext);
                fooPropertyAccessor.writeObject(instance, fooValue);
 
                return instance;

Modified: 
directmemory/lightning/trunk/lightning-maven-plugin/src/main/resources/marshaller.vm
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/lightning-maven-plugin/src/main/resources/marshaller.vm?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- 
directmemory/lightning/trunk/lightning-maven-plugin/src/main/resources/marshaller.vm
 (original)
+++ 
directmemory/lightning/trunk/lightning-maven-plugin/src/main/resources/marshaller.vm
 Fri Nov  2 19:52:26 2012
@@ -18,12 +18,12 @@ under the License.
 *#
 package ${packageName};
 
-import java.io.DataInput;
-import java.io.DataOutput;
 import java.io.IOException;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.directmemory.lightning.Source;
+import org.apache.directmemory.lightning.Target;
 import org.apache.directmemory.lightning.Marshaller;
 import org.apache.directmemory.lightning.SerializationContext;
 import 
org.apache.directmemory.lightning.instantiator.ObjectInstantiatorFactory;
@@ -61,24 +61,24 @@ public final class ${className} extends 
 #end   
        }
        
-       public void marshall(Object value, PropertyDescriptor 
propertyDescriptor, DataOutput dataOutput, SerializationContext 
serializationContext) throws IOException {
-               if (isAlreadyMarshalled(value, propertyDescriptor.getType(), 
dataOutput, serializationContext)) {
+       public void marshall(Object value, PropertyDescriptor 
propertyDescriptor, Target target, SerializationContext serializationContext) 
throws IOException {
+               if (isAlreadyMarshalled(value, propertyDescriptor.getType(), 
target, serializationContext)) {
                        return;
                }
 
 #foreach( $property in ${properties} )
                ValuePropertyAccessor ${property.propertyName}PropertyAccessor 
= this.${support.toFinalFieldName("accessor", $property)};
                PropertyDescriptor ${property.propertyName}PropertyDescriptor = 
this.${support.toFinalFieldName("descriptor", $property)};
-               this.${support.toFinalFieldName("marshaller", 
$property)}.marshall(${support.generateReader($property)}, 
${property.propertyName}PropertyDescriptor, dataOutput, serializationContext);
+               this.${support.toFinalFieldName("marshaller", 
$property)}.marshall(${support.generateReader($property)}, 
${property.propertyName}PropertyDescriptor, target, serializationContext);
 
 #end
        }
        
-       public <V> V unmarshall(V instance, PropertyDescriptor 
propertyDescriptor, DataInput dataInput, SerializationContext 
serializationContext) throws IOException {
+       public <V> V unmarshall(V instance, PropertyDescriptor 
propertyDescriptor, Source source, SerializationContext serializationContext) 
throws IOException {
 #foreach( $property in ${properties} )
                ValuePropertyAccessor ${property.propertyName}PropertyAccessor 
= this.${support.toFinalFieldName("accessor", $property)};
                PropertyDescriptor ${property.propertyName}PropertyDescriptor = 
this.${support.toFinalFieldName("descriptor", $property)};
-               Object ${property.propertyName}Value = 
this.${support.toFinalFieldName("marshaller", 
$property)}.unmarshall(${property.propertyName}PropertyDescriptor, dataInput, 
serializationContext);
+               Object ${property.propertyName}Value = 
this.${support.toFinalFieldName("marshaller", 
$property)}.unmarshall(${property.propertyName}PropertyDescriptor, source, 
serializationContext);
                ${support.generateWriter($property, "instance")}
 
 #end

Modified: directmemory/lightning/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/directmemory/lightning/trunk/pom.xml?rev=1405131&r1=1405130&r2=1405131&view=diff
==============================================================================
--- directmemory/lightning/trunk/pom.xml (original)
+++ directmemory/lightning/trunk/pom.xml Fri Nov  2 19:52:26 2012
@@ -253,6 +253,8 @@
                 <exclude>.repository/**</exclude>
                 <exclude>src/test/resources/generated.java.out</exclude>
                 <exclude>META-INF/MANIFEST.MF</exclude>
+                <exclude>.git/**</exclude>
+                <exclude>sys$command</exclude>
               </excludes>
             </configuration>
           </execution>


Reply via email to