Also need @DataBoundConstructor annotated constructors

This commit is contained in:
Stephen Connolly committed 2014-08-12 12:54:35 +01:00
1 parent 02336bb246
commit 554e087a0a
1 file changed
+10
@@ -29,6 +29,7 @@ import hudson.ExtensionPoint;
import hudson.model.AbstractDescribableImpl;
import hudson.util.CaseInsensitiveComparator;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.DataBoundConstructor;
import javax.annotation.Nonnull;
import java.util.Comparator;
@@ -138,6 +139,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseInsensitive extends IdStrategy {
@DataBoundConstructor
public CaseInsensitive() {}
@Override
@Nonnull
public String filenameOf(@Nonnull String id) {
@@ -178,6 +182,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseSensitive extends IdStrategy {
@DataBoundConstructor
public CaseSensitive() {}
/**
* {@inheritDoc}
*/
@@ -255,6 +262,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseSensitiveEmailAddress extends CaseSensitive {
@DataBoundConstructor
public CaseSensitiveEmailAddress() {}
/**
* {@inheritDoc}
*/