com.pelzer.util
Class SimplePersistenceBeanInfo

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by com.pelzer.util.SimplePersistenceBeanInfo
All Implemented Interfaces:
BeanInfo, Serializable
Direct Known Subclasses:
LocaleBeanInfo, LocalizableBeanInfo, LocalizerBeanInfo

public abstract class SimplePersistenceBeanInfo
extends SimpleBeanInfo
implements Serializable

This is a simple class that can be extended to specify how to persist a class using the Encoder system. Simply extend this class, then implement the getPersistenceDelegate() method. If you are trying to persist a class named Foo, you should create a class named FooBeanInfo which extends this class in the same package as Foo.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
SimplePersistenceBeanInfo()
           
 
Method Summary
 BeanDescriptor getBeanDescriptor()
           
protected abstract  PersistenceDelegate getPersistenceDelegate()
           
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePersistenceBeanInfo

public SimplePersistenceBeanInfo()
Method Detail

getPersistenceDelegate

protected abstract PersistenceDelegate getPersistenceDelegate()
Returns:
the PersistenceDelegate that should be used for the class described by this BeanInfo.

getBeanDescriptor

public BeanDescriptor getBeanDescriptor()
Specified by:
getBeanDescriptor in interface BeanInfo
Overrides:
getBeanDescriptor in class SimpleBeanInfo


Copyright © 2012. All Rights Reserved.