RemoteFileSystemStrategy strategy = null;
if ( strategyClassName != null )
strategy = getNewInstanceOf( strategyClassName );
remotefileSystemStrategy = strategy != null ? strategy : new ReadOnlyRemoteFileSystemStrategy();
String configFile = config.getAttribute( REMOTE_FILE_SYSTEM_STRATEGY_CONFIG_FILE );
try
{
remotefileSystemStrategy.init( configFile );
if ( remotefileSystemStrategy instanceof ReadOnlyRemoteFileSystemStrategy )
{
ReadOnlyRemoteFileSystemStrategy rm = (ReadOnlyRemoteFileSystemStrategy) remotefileSystemStrategy;
String cacheListener = config.getAttribute( REMOTE_FILE_SYSTEM_STRATEGY_CACHE_LISTENER );
if ( cacheListener != null )
{
Class cacheListenerClass = ClassUtil.forName( cacheListener , getClass() );
rm.setCacheListener( cacheListenerClass );
}
}
}
catch( RemoteFileSystemStrategyException e )
{