Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
Use custom serialization for non-serializable attributes in your Java objects. You can make the object serializable by using a serializable List implementation and making sure that the objects in the list are also serializable. Yes -- it is good practice to only put serializable objects in the session since this will allow your application to be run on a server with multiple nodes. Serialize static attributes in Java. up vote 0 down vote favorite. AdapterActivator, Attribute, Attribute, Attributes, BindingIterator, CertPathValidatorException.Reason, ClientRequestInfo, ClientRequestInterceptor, Codec, CodecFactory, Control Указывает на возможность сериализации класса. Этот класс не наследуется. Пространство имен: System Сборка: mscorlib (в mscorlib.dll). Nested object serialization. Optional elements and attributes. Home » Java » Core Java » Serializing Java Objects with Non-Serializable Attributes. The core of Java Serialization is the Serializable interface. java.io.Externalizable interface which extends java.io.Serializable. When an object is serialized, the highest serializable class in its derivation hierarchy is Transient variable in Serialization. If one attribute need not be serializable then that should be specified as transient. In the above example all the attributes are Информация взята v3.kz |
загрузка...
|