Project is updated version of Week1 project but in this version
to load textprocessor
plugins is used java.util.ServiceLoader
. There are 2 implementation of loading pluggins:
To load plugins from classpath project has to be executed with all plugins classpaths of plugin implementations.
Executing from Windows commandline e.g.
java -cp 'Core/target/Core-1.0-SNAPSHOT.jar;ToUpper/target/ToUpperCaseProcessor-1.0-SNAPSHOT.jar' cz.cuni.mff.textprocessor.AdvancedTextProcessorMain
To load plugins from remote URL where are implementations (.jar
)
use program arguments to pass file location where are URLs stored.