org.wanghy.cache.provider.oscache
Class OscacheCacheProfileEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.wanghy.cache.provider.AbstractCacheProfileEditor
          extended byorg.wanghy.cache.provider.oscache.OscacheCacheProfileEditor
All Implemented Interfaces:
PropertyEditor

public final class OscacheCacheProfileEditor
extends AbstractCacheProfileEditor

Creates a new instance of OscacheCacheProfile by parsing a String of the form [cronExpression=value][groups=value][refreshPeriod=value].

Version:
$Revision: 1.7 $ $Date: 2005/03/03 09:22:37 $
Author:
Alex Ruiz

Field Summary
 
Fields inherited from class java.beans.PropertyEditorSupport
 
Constructor Summary
OscacheCacheProfileEditor()
          Constructor.
 
Method Summary
protected  CacheProfile createCacheProfile(Properties properties)
          Creates a new instance of OscacheCacheProfile from the specified set of properties.
 
Methods inherited from class org.wanghy.cache.provider.AbstractCacheProfileEditor
setAsText
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OscacheCacheProfileEditor

public OscacheCacheProfileEditor()
Constructor.

Method Detail

createCacheProfile

protected CacheProfile createCacheProfile(Properties properties)
Creates a new instance of OscacheCacheProfile from the specified set of properties.

Specified by:
createCacheProfile in class AbstractCacheProfileEditor
Parameters:
properties - the specified set of properties.
Returns:
a new instance of OscacheCacheProfile.
Throws:
IllegalArgumentException - if the value of the property "refreshPeriod" is not an integer or not equal to the String "INDEFINITE_EXPIRY".


Copyright © 2004-2005 Alex Ruiz. All Rights Reserved.