@Override public void stop() { for (Contribution c : storage.getContributions()) { if (!c.isDisabled()) { uninstallContribution(c); } } }
public void write(DataOutput out) throws IOException { out.writeBoolean(isNode); if (node != null) { node.write(out); } else { contribution.write(out); } }
public void output() { super.output(); System.out.println("name: " + getName()); System.out.println("subtype: " + getSubtype()); System.out.println("member account: " + getMember().getAccount()); getComments().output("Comments"); }
public void readFields(DataInput in) throws IOException { isNode = in.readBoolean(); if (isNode) { node = new PageRankNode(); node.readFields(in); } else { contribution = new Contribution(); contribution.readFields(in); } }
@Override void acceptPojoPropertyPlugin(List<PojoPropertyPlugin> pluginList) { for (Contribution contribution : list) { contribution.acceptPojoPropertyPlugin(pluginList); } }
@Override void acceptPojoConstructor(PojoConstructor constructor) { for (Contribution contribution : list) { contribution.acceptPojoConstructor(constructor); } }
@Override void acceptInvalidateMethod(InvalidateMethod method) { for (Contribution contribution : list) { contribution.acceptInvalidateMethod(method); } }
@Override void acceptBuilder(br.com.objectos.way.pojo.BuilderConfiguration builder, Class<?> generator) { for (Contribution contribution : list) { contribution.acceptBuilder(builder, generator); } }
@Override void accept(TypeSpec.Builder type) { for (Contribution contribution : list) { contribution.accept(type); } }
@Override public boolean isPersisted(Contribution contrib) { return storage.getContribution(contrib.getName()) != null; }