Package org.jboss.soa.esb.listeners.gateway.remotestrategies

Examples of org.jboss.soa.esb.listeners.gateway.remotestrategies.ReadOnlyRemoteFileSystemStrategy


    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 )
    {
View Full Code Here


 
  @Test
  public void getNewInstance() throws ConfigurationException
  {
    ReadOnlyRemoteGatewayListener listener = (ReadOnlyRemoteGatewayListener) gatewayListener;
    ReadOnlyRemoteFileSystemStrategy instance = listener.getNewInstanceOf( ReadOnlyRemoteFileSystemStrategy.class.getName() );
    assertNotNull( "The instance should not be null!", instance );
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.listeners.gateway.remotestrategies.ReadOnlyRemoteFileSystemStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.