public class IoProcessorFactory extends Unit<IoProcessor>
Modifier and Type | Field and Description |
---|---|
static String |
FILE
FILE.
|
static String |
FTP
FTP.
|
static String |
FTPS
FTPS.
|
static String |
HTTP
HTTP.
|
static String |
MAIL
MAIL.
|
static String |
SFTP
SFTP.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
Object object)
Adds loaded object using name as a key.
|
void |
addWithoutLicense(String name,
Object object)
Adds loaded object which doesn't have license using name as a key.
|
boolean |
allowLoadAll()
Checks if loader allowed to to load all objects regardless of license.
|
boolean |
canBeLoadedAgain()
Checks if module can be loaded again.
|
void |
finishLoad(UnitLoader loader)
Executed when UnitLoader finishes load.
|
void |
free()
Executed when there is a need to free memory.
|
IoProcessor |
getIoProcessor()
Returns FileProcessor.
|
IoProcessor |
getIoProcessor(String resource)
Gets the IoProcessor by name.
|
IoProcessor |
getIoProcessor(String resource,
String proxyHost,
int proxyPort)
Gets the IoProcessor by name.
|
List<IoProcessor> |
getList()
Gets the list of loaded modules.
|
List<KeyValue> |
getProcessors()
Gets the processors.
|
static IoProcessorFactory |
instance()
Returns an instance of the IoProcessorFactory.
|
boolean |
loadsConfigurableExtensions()
Returns true if Unit is indented to load configurable extensions.
|
boolean |
startLoad()
Executed when UnitLoader starts loading.
|
getClassPath, getJarPath, getObjClass, getPath, isSingleton, setClassPath, setJarPath, setObjClass, setPath, setSingleton
public static final String FILE
public static final String FTP
public static final String FTPS
public static final String SFTP
public static final String HTTP
public static final String MAIL
public static IoProcessorFactory instance()
public void add(String name, Object object)
Unit
add
in class Unit<IoProcessor>
name
- the unique name of the objectobject
- the objectpublic void addWithoutLicense(String name, Object object)
Unit
addWithoutLicense
in class Unit<IoProcessor>
name
- the unique name of the objectobject
- the objectpublic boolean allowLoadAll()
Unit
allowLoadAll
in class Unit<IoProcessor>
public boolean canBeLoadedAgain()
Unit
canBeLoadedAgain
in class Unit<IoProcessor>
public void finishLoad(UnitLoader loader)
Unit
finishLoad
in class Unit<IoProcessor>
loader
- the UnitLoaderpublic void free()
Unit
free
in class Unit<IoProcessor>
public IoProcessor getIoProcessor()
FileProcessor
public IoProcessor getIoProcessor(String resource)
resource
- the name of the IoProcessor. Possible values: file, ftp, sftp,
httppublic IoProcessor getIoProcessor(String resource, String proxyHost, int proxyPort)
resource
- the name of the IoProcessor. Possible values: file, ftp, sftp,
httpproxyHost
- the proxy hostproxyPort
- the proxy portpublic List<IoProcessor> getList()
Unit
getList
in class Unit<IoProcessor>
public List<KeyValue> getProcessors()
public boolean loadsConfigurableExtensions()
Unit
loadsConfigurableExtensions
in class Unit<IoProcessor>
public boolean startLoad()
Unit
startLoad
in class Unit<IoProcessor>
Copyright © 2010-2020 Toolsverse. All Rights Reserved.