Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.services » [javadoc | source]
    1   // Copyright 2006, 2007 The Apache Software Foundation
    2   //
    3   // Licensed under the Apache License, Version 2.0 (the "License");
    4   // you may not use this file except in compliance with the License.
    5   // You may obtain a copy of the License at
    6   //
    7   //     http://www.apache.org/licenses/LICENSE-2.0
    8   //
    9   // Unless required by applicable law or agreed to in writing, software
   10   // distributed under the License is distributed on an "AS IS" BASIS,
   11   // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12   // See the License for the specific language governing permissions and
   13   // limitations under the License.
   14   
   15   package org.apache.tapestry5.internal.services;
   16   
   17   import static org.apache.tapestry5.ioc.internal.util.Defense.notBlank;
   18   import static org.apache.tapestry5.ioc.internal.util.Defense.notNull;
   19   import org.apache.tapestry5.services.PersistentFieldChange;
   20   
   21   public class PersistentFieldChangeImpl implements PersistentFieldChange
   22   {
   23       private final String componentId;
   24   
   25       private final String fieldName;
   26   
   27       private final Object value;
   28   
   29       public PersistentFieldChangeImpl(final String componentId, final String fieldName,
   30                                        final Object value)
   31       {
   32           notNull(componentId, "componentId");
   33           notBlank(fieldName, "fieldName");
   34   
   35           this.componentId = componentId;
   36           this.fieldName = fieldName;
   37           this.value = value;
   38       }
   39   
   40       public String getComponentId()
   41       {
   42           return componentId;
   43       }
   44   
   45       public String getFieldName()
   46       {
   47           return fieldName;
   48       }
   49   
   50       public Object getValue()
   51       {
   52           return value;
   53       }
   54   }

Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.services » [javadoc | source]