protected IElementAttributes
parseElementAttributes( Properties props,
String regName,
String regionPrefix )
{
IElementAttributes eAttr;
String attrName = regionPrefix + regName + this.ELEMENT_ATTRIBUTE_PREFIX;
// auxFactory was not previously initialized.
//String prefix = regionPrefix + regName + ATTRIBUTE_PREFIX;
eAttr = ( IElementAttributes ) OptionConverter.instantiateByKey( props, attrName,
org.apache.stratum.jcs.engine.behavior.IElementAttributes.class,
null );
if ( eAttr == null )
{
log.warn( "Could not instantiate eAttr named '" + attrName +
"', using defaults." );
IElementAttributes eAttr2 = ccMgr.getDefaultElementAttributes();
eAttr = eAttr2.copy();
}
log.debug( "Parsing options for '" + attrName + "'" );
PropertySetter.setProperties( eAttr, props, attrName + "." );