1 16 package javax.faces.component; 17 18 import java.io.Serializable ; 19 20 24 class _AttachedStateWrapper 25 implements Serializable 26 { 27 private Class _class; 28 private Object _wrappedStateObject; 29 30 34 public _AttachedStateWrapper(Class clazz, Object wrappedStateObject) 35 { 36 if (wrappedStateObject != null && !(wrappedStateObject instanceof Serializable )) 37 { 38 throw new IllegalArgumentException ("Attached state for Object of type " + clazz + " (Class " + wrappedStateObject.getClass().getName() + ") is not serializable"); 39 } 40 _class = clazz; 41 _wrappedStateObject = wrappedStateObject; 42 } 43 44 public Class getClazz() 45 { 46 return _class; 47 } 48 49 public Object getWrappedStateObject() 50 { 51 return _wrappedStateObject; 52 } 53 } 54 | Popular Tags |