@Test public void testInitialize() throws Exception { Instance inst = new Instance("whatever").component(new Component("whatever").installerName( PluginScript.PLUGIN_NAME )); this.plugin.initialize( inst ); }
@Override public void initialize( Instance instance ) throws PluginException { this.logger.fine(this.agentId + ": initializing the plugin for " + instance); File instanceDirectory = InstanceHelpers.findInstanceDirectoryOnAgent( instance ); ScriptUtils.setScriptsExecutable( new File( instanceDirectory, SCRIPTS_FOLDER_NAME )); }
PluginScript implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine(this.agentId + ": initializing the plugin for " + instance); File instanceDirectory = InstanceHelpers.findInstanceDirectoryOnAgent( instance ); ScriptUtils.setScriptsExecutable( new File( instanceDirectory, SCRIPTS_FOLDER_NAME )); } }
PluginScript implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine(this.agentId + ": initializing the plugin for " + instance); File instanceDirectory = InstanceHelpers.findInstanceDirectoryOnAgent( instance ); ScriptUtils.setScriptsExecutable( new File( instanceDirectory, SCRIPTS_FOLDER_NAME )); }  }
PluginScript implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine(this.agentId + ": initializing the plugin for " + instance); File instanceDirectory = InstanceHelpers.findInstanceDirectoryOnAgent( instance ); ScriptUtils.setScriptsExecutable( new File( instanceDirectory, SCRIPTS_FOLDER_NAME )); }  @Override String getPluginName(); @Override void setNames( String applicationName, String scopedInstancePath ); @Override void initialize( Instance instance ); @Override void deploy( Instance instance ); @Override void start( Instance instance ); @Override void update(Instance instance, Import importChanged, InstanceStatus statusChanged); @Override void stop( Instance instance ); @Override void undeploy( Instance instance ); }
PluginScript implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine(this.agentId + ": initializing the plugin for " + instance); File instanceDirectory = InstanceHelpers.findInstanceDirectoryOnAgent( instance ); ScriptUtils.setScriptsExecutable( new File( instanceDirectory, SCRIPTS_FOLDER_NAME )); }  @Override String getPluginName(); @Override void setNames( String applicationName, String scopedInstancePath ); @Override void initialize( Instance instance ); @Override void deploy( Instance instance ); @Override void start( Instance instance ); @Override void update(Instance instance, Import importChanged, InstanceStatus statusChanged); @Override void stop( Instance instance ); @Override void undeploy( Instance instance ); static final String PLUGIN_NAME; }