org.apache.excalibur.source.impl
Class SourceResolverImpl
java.lang.Object
org.apache.excalibur.source.impl.AbstractSourceResolver
org.apache.excalibur.source.impl.SourceResolverImpl
- All Implemented Interfaces:
- org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, SourceResolver, org.apache.avalon.framework.thread.ThreadSafe
- public class SourceResolverImpl
- extends AbstractSourceResolver
- implements org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe
This is the default implemenation of a SourceResolver
.
The source resolving is done relative to a base directory/URI (if
the given location is relative). This implementation looks for the
base URI in the Context
object of the "container" for the
"context-root" information. This information can either be a
File
object or a URL
object.
If the entry does not exist, the system property "user.dir" is used
as the base URI instead.
- Version:
- $Id: SourceResolverImpl.java,v 1.4 2004/02/28 11:47:24 cziegeler Exp $
- Author:
- Avalon Development Team
- See Also:
SourceResolver
Field Summary |
protected org.apache.avalon.framework.service.ServiceSelector |
m_factorySelector
The special Source factories |
protected org.apache.avalon.framework.service.ServiceManager |
m_manager
The component m_manager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_manager
protected org.apache.avalon.framework.service.ServiceManager m_manager
- The component m_manager
m_factorySelector
protected org.apache.avalon.framework.service.ServiceSelector m_factorySelector
- The special Source factories
SourceResolverImpl
public SourceResolverImpl()
getSourceFactory
protected SourceFactory getSourceFactory(java.lang.String protocol)
- Specified by:
getSourceFactory
in class AbstractSourceResolver
- See Also:
AbstractSourceResolver.getSourceFactory(java.lang.String)
releaseSourceFactory
protected void releaseSourceFactory(SourceFactory factory)
- Overrides:
releaseSourceFactory
in class AbstractSourceResolver
- See Also:
AbstractSourceResolver.releaseSourceFactory(org.apache.excalibur.source.SourceFactory)
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
- Specified by:
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
- See Also:
LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
getLogger
protected final org.apache.avalon.framework.logger.Logger getLogger()
debug
protected final void debug(java.lang.String text)
- Overrides:
debug
in class AbstractSourceResolver
- See Also:
AbstractSourceResolver.debug(java.lang.String)
isDebugEnabled
protected final boolean isDebugEnabled()
- Overrides:
isDebugEnabled
in class AbstractSourceResolver
- See Also:
AbstractSourceResolver.isDebugEnabled()
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
- Get the context
- Specified by:
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
- Throws:
org.apache.avalon.framework.context.ContextException
service
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
- Set the current
ServiceManager
instance used by this
Serviceable
.
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
- See Also:
Disposable.dispose()
Copyright © 1997-2007 Apache Software Foundation. All Rights Reserved.