@Override public void assertCanMutate() { if (closed) { throw new ModelViewClosedException(path, type, ruleDescriptor); } if (!mutable) { throw new ReadOnlyModelViewException(path, type, ruleDescriptor); } }
/** * Provide the project configuration * * @param projectConfig Project configuration */ @Model public void projectConfig(ProjectConfig projectConfig) { }
/** * Eclipse configuration model */ @Managed public interface EclipseConfig { /** * Get the Eclipse JDT UI settings * * @return JDT UI settings */ public EclipseUi getUi(); }
/** * Make tasks depend on Bintray plugin's configuration * * @param tasks Task container * @param bintrayExtension Bintray plugin's configuration */ @Mutate public void tasksDependOnBintrayExtension(ModelMap<Task> tasks, BintrayExtension bintrayExtension) { }
/** * Get the image's dependencies * * These dependencies are added to the task that copies the source files for the images * * @return Dependencies */ @Unmanaged public abstract Set<Object> getDependsOn();
@Override public void assertCanReadChildren() { if (!canReadChildren) { throw new WriteOnlyModelViewException(null, path, type, ruleDescriptor); } }
/** * Make the tasks depend on the Eclipse plugin configuration * * @param tasks Task container * @param eclipseModel Eclipse configuration */ @Mutate public void tasksDependOnEclipseModel(ModelMap<Task> tasks, EclipseModel eclipseModel) { }
/** * Provide the Docker configuration * * @param dockerConfig Docker configuration */ @Model public void dockerConfig(DockerConfig dockerConfig) { }
/** * Git configuration */ @Managed public abstract class GitConfig { }
/** * Get the image source * * @return Image source */ @Unmanaged public abstract CopySpec getFiles();
@Mutate void doThingWithExports(ModelMap<Task> tasks, ExportsConfigSpec exports) { } }
/** * Provide the Java configuration * * @param javaConfig Java configuration */ @Model public void javaConfig(JavaConfig javaConfig) { }
@Managed public interface Baidu { public String getAccessKey(); public void setAccessKey(String accessKey); public String getSecretKey(); public void setSecretKey(String secretKey); public OSSPublish getOssPublish(); public RunMapReduce getMapReduce(); }
/** * Checkstyle configuration */ @Managed public interface CheckstyleConfig { }
/** * Groovy configuration */ @Managed public interface GroovyConfig { }
/** * Java configuration */ @Managed public interface JavaConfig { }
@Managed public interface Master { public String getInstanceType(); public void setInstanceType(String instanceType); public Integer getInstanceCount(); public void setInstanceCount(Integer instanceCount); }