|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.source.impl.SourceDescriptorManager
public final class SourceDescriptorManager
This source descriptor acts as container for a set of source inspectors/descriptors.
Field Summary |
---|
Fields inherited from interface org.apache.cocoon.components.source.SourceDescriptor |
---|
ROLE |
Constructor Summary | |
---|---|
SourceDescriptorManager()
|
Method Summary | |
---|---|
void |
configure(Configuration configuration)
|
void |
contextualize(Context context)
|
void |
dispose()
|
SourceProperty[] |
getSourceProperties(Source source)
Aggregate all properties of all registered inspectors. |
SourceProperty |
getSourceProperty(Source source,
String namespace,
String name)
Loops over the registered inspectors until it finds the property. |
SourceValidity |
getValidity(Source source)
Returns an aggregate validity describing the validity of all the properties. |
boolean |
handlesProperty(String namespace,
String name)
Check if there is an inspector that handles properties of the given type. |
void |
initialize()
|
void |
removeSourceProperty(Source source,
String ns,
String name)
Loops over the registered descriptors and delegates the call. |
void |
service(ServiceManager manager)
|
void |
setSourceProperty(Source source,
SourceProperty property)
Loops over the registered descriptors and calls delegates the call. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceDescriptorManager()
Method Detail |
---|
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager)
service
in interface Serviceable
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public SourceProperty getSourceProperty(Source source, String namespace, String name) throws SourceException
getSourceProperty
in interface SourceInspector
source
- the source for which to compute the propertynamespace
- the namespace of the propertyname
- the name of the property
null
if the inspector does not provide this property.
SourceException
public SourceProperty[] getSourceProperties(Source source) throws SourceException
getSourceProperties
in interface SourceInspector
source
- the Source for wich to compute the property.
SourceException
public boolean handlesProperty(String namespace, String name)
handlesProperty
in interface SourceInspector
namespace
- the namespace of the propertyname
- the name of the property
true
if this inspector handles properties of the given type
else false
.public void removeSourceProperty(Source source, String ns, String name) throws SourceException
removeSourceProperty
in interface SourceDescriptor
source
- the Source to remove the property fromns
- namespace identifier of the property to removename
- name of the property to remove
SourceException
public void setSourceProperty(Source source, SourceProperty property) throws SourceException
setSourceProperty
in interface SourceDescriptor
source
- the Source to set the SourceProperty onproperty
- the SourceProperty to set
SourceException
public SourceValidity getValidity(Source source)
getValidity
in interface SourceInspector
source
- the Source for which to calculate the validity
its properties, null
if the source properties
are not cacheable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |