Exemplo n.º 1
0
 @Override
 public SftpSubsystemFactory build() {
   SftpSubsystemFactory factory = new SftpSubsystemFactory();
   factory.setExecutorService(executors);
   factory.setShutdownOnExit(shutdownExecutor);
   factory.setUnsupportedAttributePolicy(policy);
   factory.setFileSystemAccessor(fileSystemAccessor);
   GenericUtils.forEach(getRegisteredListeners(), factory::addSftpEventListener);
   return factory;
 }
Exemplo n.º 2
0
 @Override
 public Command create() {
   SftpSubsystem subsystem =
       new SftpSubsystem(
           getExecutorService(),
           isShutdownOnExit(),
           getUnsupportedAttributePolicy(),
           getFileSystemAccessor());
   GenericUtils.forEach(getRegisteredListeners(), subsystem::addSftpEventListener);
   return subsystem;
 }