Class MockGrailsPluginManager

    • Constructor Detail

      • MockGrailsPluginManager

        public MockGrailsPluginManager​(GrailsApplication application)
      • MockGrailsPluginManager

        public MockGrailsPluginManager()
    • Method Detail

      • getGrailsPlugin

        public GrailsPlugin getGrailsPlugin​(java.lang.String name,
                                            java.math.BigDecimal version)
      • registerMockPlugin

        public void registerMockPlugin​(GrailsPlugin plugin)
      • getUserPlugins

        public GrailsPlugin[] getUserPlugins()
        Description copied from interface: GrailsPluginManager
        Gets plugin installed by the user and not provided by the framework
        Returns:
        A list of user plugins
      • loadPlugins

        public void loadPlugins()
                         throws grails.plugins.exceptions.PluginException
        Description copied from interface: GrailsPluginManager
        Performs the initial load of plug-ins throwing an exception if any dependencies don't resolve
        Throws:
        grails.plugins.exceptions.PluginException - Thrown when an error occurs loading the plugins
      • checkForChanges

        public void checkForChanges()
        Description copied from interface: GrailsPluginManager
        Checks all the plugins to see whether they have any changes
      • refreshPlugin

        public void refreshPlugin​(java.lang.String name)
        Description copied from interface: GrailsPluginManager
        Refreshes the specified plugin. A refresh will force to plugin to "touch" each of its watched resources and fire modified events for each
        Parameters:
        name - The name of the plugin to refresh
      • getPluginObservers

        public java.util.Collection<?> getPluginObservers​(GrailsPlugin plugin)
        Description copied from interface: GrailsPluginManager
        Retrieves a collection of plugins that are observing the specified plugin
        Parameters:
        plugin - The plugin to retrieve observers for
        Returns:
        A collection of observers
      • informObservers

        public void informObservers​(java.lang.String pluginName,
                                    java.util.Map event)
        Description copied from interface: GrailsPluginManager
        inform the specified plugins observers of the event specified by the passed Map instance
        Parameters:
        pluginName - The name of the plugin
        event - The event
      • expectCheckForChanges

        public void expectCheckForChanges()
      • verify

        public void verify()