Class BootstrapCommandFile


  • public class BootstrapCommandFile
    extends Object
    • Field Detail

      • DATA_FILENAME

        public static final String DATA_FILENAME
        Name of file used to store our execution timestamp
    • Constructor Detail

      • BootstrapCommandFile

        public BootstrapCommandFile​(org.apache.felix.framework.Logger logger,
                                    File cmdFile)
        Will load our commands from specified file, if found
        Parameters:
        logger - Logger to use
        cmdFile - File to load commands from, or null
    • Method Detail

      • execute

        public boolean execute​(org.osgi.framework.BundleContext ctx)
                        throws IOException
        Execute commands if needed, and store execution timestamp
        Parameters:
        ctx - BundleContext to use
        Returns:
        If system bundle needs a restart.
        Throws:
        IOException - If an error occurs