A primitive application that can be expanded by creating java plugin file without changing the source code.
-
bin - A directory containing class files that are shared bewteen plugins and main application
-
DataFiles - A directory that contains compiled plugins that will be loaded in the main application
-
plugin source file - A directory that contains source code of plugins
- PrimitiveExpandableApp.class - The main program
- Element.java - The source code of one of the file from bin directory
- GamePanel.java - The source code of one of the file from bin directory
- TemplatePlugin.java - A template for creating new plugins
-
Copy and paste TemplatePlugin.java in the same directory.
Rename the duplicate file to [Your Plugin Name].java, open the file and change the class & constructor name to [Your Plugin Name].
After creating the new plugin compile the plugin with command as: " javac -d . [Your Plugin Name].java "
(A new Plugin file will be added in DataFile directory)
Start the program with command: " java PrimitiveExpandableApp "