@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);
   }
 }
Exemplo n.º 3
0
  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);
   }
 }
Exemplo n.º 5
0
 @Override
 void acceptPojoPropertyPlugin(List<PojoPropertyPlugin> pluginList) {
   for (Contribution contribution : list) {
     contribution.acceptPojoPropertyPlugin(pluginList);
   }
 }
Exemplo n.º 6
0
 @Override
 void acceptPojoConstructor(PojoConstructor constructor) {
   for (Contribution contribution : list) {
     contribution.acceptPojoConstructor(constructor);
   }
 }
Exemplo n.º 7
0
 @Override
 void acceptInvalidateMethod(InvalidateMethod method) {
   for (Contribution contribution : list) {
     contribution.acceptInvalidateMethod(method);
   }
 }
Exemplo n.º 8
0
 @Override
 void acceptBuilder(br.com.objectos.way.pojo.BuilderConfiguration builder, Class<?> generator) {
   for (Contribution contribution : list) {
     contribution.acceptBuilder(builder, generator);
   }
 }
Exemplo n.º 9
0
 @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;
 }