com.aol.micro.server.application.registry.Application Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-application-register Show documentation
Show all versions of micro-application-register Show documentation
Opinionated rest microservices
package com.aol.micro.server.application.registry;
import java.util.Iterator;
import java.util.List;
import lombok.AccessLevel;
import lombok.experimental.FieldDefaults;
import org.pcollections.ConsPStack;
import org.pcollections.PStack;
import com.aol.micro.server.rest.jackson.JacksonUtil;
@FieldDefaults(makeFinal=true, level=AccessLevel.PRIVATE)
public class Application implements Iterable{
PStack entries;
public Application(final List entries) {
this.entries = ConsPStack.from(entries);
}
@Override
public Iterator iterator() {
return entries.iterator();
}
public String toString(){
return JacksonUtil.serializeToJson(entries);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy