Interface Plugin<T,Pm>

All Superinterfaces:
IconSetHolder, LoggerProvider, MessageSetHolder, ResourceSetHolder
All Known Implementing Classes:
DefaultPlugin

public interface Plugin<T,Pm> extends ResourceSetHolder, LoggerProvider
Author:
Taha Ben Salah (taha.bensalah@gmail.com) %creationtime 27 août 2007 19:23:14
  • Method Details

    • pluginInstalled

      void pluginInstalled()
    • pluginUninstalled

      void pluginUninstalled()
    • pluginRegistered

      void pluginRegistered()
    • pluginUnregistered

      void pluginUnregistered()
    • applicationInitializing

      void applicationInitializing()
      called to initialize Application component. Mainly we could configure Factory here with
      registerImplementation(AnyInterface.class, AnyClass.class,true)
      
      it is recommended not to use directly
        getApplication().getFactory().getConfiguration(AnyInterface.class).add(AnyClass.class);
      

      system plugin should call the following

      getApplication().setDefaultFactoryConfigurations(createFactoryConfigurations(getMessageSet()));
      
    • applicationOpening

      void applicationOpening()
    • applicationConfiguring

      void applicationConfiguring()
    • applicationReady

      void applicationReady()
    • applicationClosing

      void applicationClosing()
    • getApplication

      T getApplication()
    • getPluginManager

      Pm getPluginManager()
    • init

      void init(T app, Pm pluginManager)
    • isEnabled

      boolean isEnabled()
    • setEnabled

      void setEnabled(boolean enabled)
    • setInitialized

      void setInitialized(boolean enabled)
    • isInitialized

      boolean isInitialized()
    • setLocale

      void setLocale(Locale lcoale)
    • getDescriptor

      PluginDescriptor getDescriptor()
    • setDescriptor

      void setDescriptor(PluginDescriptor info)
    • getMessageSet

      MessageSet getMessageSet()
      Specified by:
      getMessageSet in interface MessageSetHolder
    • getIconSet

      IconSet getIconSet()
      Specified by:
      getIconSet in interface IconSetHolder
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
    • addPropertyChangeListener

      void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
    • setMessageSet

      void setMessageSet(String bundleName)
    • setIconSet

      void setIconSet(String iconSetBundleName)
    • getId

      String getId()
      Plugin Unique Identifier must return getPluginDescriptor().getId()
      Returns:
      getPluginDescriptor().getId()
    • getVarFolder

      File getVarFolder()