Пример #1
0
  private void initialisePlugin(Class<?> clazz) {
    pluginGrailsClass = new GrailsPluginClass(clazz);
    plugin = (GroovyObject) pluginGrailsClass.newInstance();
    pluginBean = new BeanWrapperImpl(plugin);

    // configure plugin
    evaluatePluginVersion();
    evaluatePluginDependencies();
    evaluatePluginLoadAfters();
    evaluateProvidedArtefacts();
    evaluatePluginEvictionPolicy();
    evaluatePluginInfluencePolicy();
    evaluateOnChangeListener();
    evaluateObservedPlugins();
    evaluatePluginStatus();
    evaluatePluginScopes();
    evaluatePluginExcludes();
    evaluateTypeFilters();
  }
Пример #2
0
 @Override
 public String getName() {
   return pluginGrailsClass.getLogicalPropertyName();
 }