Class ApplicationPreStartEvent


  • public final class ApplicationPreStartEvent
    extends DriverEvent
    This event is only interesting for wrapper modules. It is called before the actual program is started in a new thread.
    See Also:
    DriverEvent
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File applicationFile
      The file of the original application
      private java.util.Collection<java.lang.String> arguments
      The arguments for the main method of the application
      private java.lang.Class<?> clazz
      The class, which is set in the manifest as 'Main-Class' by the archive of the wrapped application
      private Wrapper cloudNetWrapper
      The current singleton instance of the Wrapper class
      private java.util.jar.Manifest manifest
      The manifest properties of the jar archive by the original application
    • Constructor Summary

      Constructors 
      Constructor Description
      ApplicationPreStartEvent​(Wrapper cloudNetWrapper, java.lang.Class<?> clazz, java.io.File applicationFile, java.util.Collection<java.lang.String> arguments)  
      ApplicationPreStartEvent​(Wrapper cloudNetWrapper, java.lang.Class<?> clazz, java.util.jar.Manifest manifest, java.util.Collection<java.lang.String> arguments)
      Deprecated.
      the manifest of the application file is not available in the wrapper anymore and has been replaced by the whole application file
    • Field Detail

      • cloudNetWrapper

        private final Wrapper cloudNetWrapper
        The current singleton instance of the Wrapper class
        See Also:
        Wrapper
      • clazz

        private final java.lang.Class<?> clazz
        The class, which is set in the manifest as 'Main-Class' by the archive of the wrapped application
      • arguments

        private final java.util.Collection<java.lang.String> arguments
        The arguments for the main method of the application
      • manifest

        private java.util.jar.Manifest manifest
        The manifest properties of the jar archive by the original application
        See Also:
        Manifest
      • applicationFile

        private java.io.File applicationFile
        The file of the original application
    • Constructor Detail

      • ApplicationPreStartEvent

        @Deprecated
        public ApplicationPreStartEvent​(Wrapper cloudNetWrapper,
                                        java.lang.Class<?> clazz,
                                        java.util.jar.Manifest manifest,
                                        java.util.Collection<java.lang.String> arguments)
        Deprecated.
        the manifest of the application file is not available in the wrapper anymore and has been replaced by the whole application file
      • ApplicationPreStartEvent

        public ApplicationPreStartEvent​(Wrapper cloudNetWrapper,
                                        java.lang.Class<?> clazz,
                                        java.io.File applicationFile,
                                        java.util.Collection<java.lang.String> arguments)
    • Method Detail

      • getCloudNetWrapper

        public Wrapper getCloudNetWrapper()
      • getClazz

        public java.lang.Class<?> getClazz()
      • getManifest

        @Deprecated
        public java.util.jar.Manifest getManifest()
        Deprecated.
        the manifest of the application file is not available in the wrapper anymore, use getApplicationFile() to get the file of the manifest
      • getApplicationFile

        public java.io.File getApplicationFile()
      • getArguments

        public java.util.Collection<java.lang.String> getArguments()