This project has retired. For details please refer to its
Attic page .
AbstractConfigurableSourceDescriptor (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.components.source.impl
Class AbstractConfigurableSourceDescriptor
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.AbstractConfigurableSourceInspector
org.apache.cocoon.components.source.impl.AbstractConfigurableSourceDescriptor
All Implemented Interfaces: Component , Configurable , LogEnabled , SourceDescriptor , SourceInspector
Direct Known Subclasses: SimpleJdbcSourceDescriptor
public abstract class AbstractConfigurableSourceDescriptor extends AbstractConfigurableSourceInspector implements SourceDescriptor
Abstract base class SourceDescriptors that want to
configure the set of properties they handle beforehand.
Knowing which properties an inspector handles beforehand
greatly improves property management performance.
Author:
Unico Hommes
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
AbstractConfigurableSourceDescriptor
public AbstractConfigurableSourceDescriptor ()
removeSourceProperty
public final void removeSourceProperty (Source source,
String namespace,
String name)
throws SourceException
Checks if this SourceDescriptor is configured to handle the
given property and if so forwards the call to
doRemoveSourceProperty()
.
Specified by: removeSourceProperty
in interface SourceDescriptor
Parameters: source
- the Source to remove the property fromnamespace
- namespace identifier of the property to removename
- name of the property to remove
Throws:
SourceException
setSourceProperty
public final void setSourceProperty (Source source,
SourceProperty property)
throws SourceException
Checks if this SourceDescriptor is configured to handle the
given property and if so forwards the call to
doSetSourceProperty()
.
Specified by: setSourceProperty
in interface SourceDescriptor
Parameters: source
- the Source to set the SourceProperty onproperty
- the SourceProperty to set
Throws:
SourceException
doRemoveSourceProperty
protected abstract void doRemoveSourceProperty (Source source,
String namespace,
String name)
throws SourceException
Do the actual work of removing the given property from the provided Source.
Throws:
SourceException
doSetSourceProperty
protected abstract void doSetSourceProperty (Source source,
SourceProperty property)
throws SourceException
Do the actual work of setting the provided SourceProperty on the given Source.
Throws:
SourceException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.