Class ApplicationPreStartEvent


  • public final class ApplicationPreStartEvent
    extends de.dytanic.cloudnet.driver.event.events.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
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.io.File getApplicationFile()  
      java.util.Collection<java.lang.String> getArguments()  
      java.lang.Class<?> getClazz()  
      Wrapper getCloudNetWrapper()  
      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
      • Methods inherited from class de.dytanic.cloudnet.driver.event.events.DriverEvent

        getDriver
      • Methods inherited from class de.dytanic.cloudnet.driver.event.Event

        isShowDebug
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()