
br.com.objectos.way.pojo.plugin.NoopConfiguration Maven / Gradle / Ivy
/*
* Copyright 2014-2015 Objectos, Fábrica de Software LTDA.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package br.com.objectos.way.pojo.plugin;
import br.com.objectos.way.code.Artifact;
/**
* @author [email protected] (Marcio Endo)
*/
enum NoopConfiguration implements Configuration {
INSTANCE;
@Override
public void execute(ArtifactAction action) {
// noop
}
@Override
public void execute(BuilderPropertyAction action) {
// noop
}
@Override
public void execute(MethodAction action) {
// noop
}
@Override
public void execute(PojoAction action) {
// noop
}
@Override
public Configuration executeWhen(PojoPredicate condition) {
// noop
return this;
}
@Override
public final Artifact generate() {
return Artifact.empty();
}
@Override
public final void generatedBy(Class> generator) {
// noop
}
@Override
public WhenMethod when(MethodPredicate predicate) {
return new WhenMethod() {
@Override
public void execute(MethodAction action) {
// noop
}
};
}
@Override
public WhenPojo when(PojoPredicate predicate) {
return new WhenPojo() {
@Override
public void execute(WhenPojoAction action) {
// noop
}
};
}
@Override
public WhenProperty when(PropertyPredicate predicate) {
return new WhenProperty() {
@Override
public WhenProperty and(Condition condition) {
// noop
return this;
}
@Override
public void execute(PojoPropertyAction action) {
// noop
}
@Override
public void execute(BuilderPropertyAction generator) {
// noop
}
@Override
public void ignore() {
// noop
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy