Author: tchemit Date: 2010-01-10 17:32:23 +0100 (Sun, 10 Jan 2010) New Revision: 655 Modified: trunk/src/main/java/org/nuiton/helper/plugin/ShareServerSecretPlugin.java Log: open api to reuse the mojo from outside Modified: trunk/src/main/java/org/nuiton/helper/plugin/ShareServerSecretPlugin.java =================================================================== --- trunk/src/main/java/org/nuiton/helper/plugin/ShareServerSecretPlugin.java 2010-01-07 04:30:57 UTC (rev 654) +++ trunk/src/main/java/org/nuiton/helper/plugin/ShareServerSecretPlugin.java 2010-01-10 16:32:23 UTC (rev 655) @@ -164,7 +164,7 @@ } @Override - protected void init() throws Exception { + public void init() throws Exception { // protected boolean init() throws Exception { propertiesToTreate = new EnumMap<Property, String>(Property.class); @@ -206,7 +206,7 @@ } @Override - protected boolean checkSkip() { + public boolean checkSkip() { if (runOnce) { // compute the unique key refering to parameters of plugin @@ -319,4 +319,16 @@ public void setServerId(String serverId) { this.serverId = serverId; } + + public void setSec(SecDispatcher sec) { + this.sec = sec; + } + + public void setSettings(Settings settings) { + this.settings = settings; + } + + public void setRunOnce(boolean runOnce) { + this.runOnce = runOnce; + } }