You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by jw...@apache.org on 2012/10/08 23:07:37 UTC
svn commit: r1395779 - in
/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal:
./ MarshalingService.java
Author: jwaldman
Date: Mon Oct 8 21:07:37 2012
New Revision: 1395779
URL: http://svn.apache.org/viewvc?rev=1395779&view=rev
Log:
TRINIDAD-2316 Add support for adding a properties Map to UploadedFile
I forgot to add the new file, MarshalingService.java. It was in the patch.
Thanks to Kentaro Kinebuchi for the patch
Added:
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java
Added: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java?rev=1395779&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java (added)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java Mon Oct 8 21:07:37 2012
@@ -0,0 +1,33 @@
+/*
+ * 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.myfaces.trinidadinternal.ui.marshal;
+
+/**
+ * Marshaling Service
+ */
+public abstract class MarshalingService
+{
+ /**
+ * Unmarshals a Java object from the form handled by the service. e.g. XML
+ * @param value String representing the object
+ * @return object unmarshaled from String
+ */
+ public abstract Object unmarshal(String value);
+}
+