@@ -0,0 +1,1461 @@
+package com.github.aureliano.evtbridge.core.register;%0A%0Aimport com.github.aureliano.evtbridge.core.agent.IAgent;%0Aimport com.github.aureliano.evtbridge.core.config.IConfiguration;%0A%0Apublic class ServiceRegistration %7B%0A%0A%09private String id;%0A%09private Class%3C? extends IConfiguration%3E configuration;%0A%09private Class%3C? extends IAgent%3E agent;%0A%09%0A%09public ServiceRegistration() %7B%0A%09%09super();%0A%09%7D%0A%0A%09public String getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public ServiceRegistration withId(String id) %7B%0A%09%09this.id = id;%0A%09%09return this;%0A%09%7D%0A%0A%09public Class%3C? extends IConfiguration%3E getConfiguration() %7B%0A%09%09return configuration;%0A%09%7D%0A%0A%09public ServiceRegistration withConfiguration(Class%3C? extends IConfiguration%3E configuration) %7B%0A%09%09this.configuration = configuration;%0A%09%09return this;%0A%09%7D%0A%0A%09public Class%3C? extends IAgent%3E getExecutor() %7B%0A%09%09return agent;%0A%09%7D%0A%0A%09public ServiceRegistration withExecutor(Class%3C? extends IAgent%3E executor) %7B%0A%09%09this.agent = executor;%0A%09%09return this;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((id == null) ? 0 : id.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09ServiceRegistration other = (ServiceRegistration) obj;%0A%09%09if (id == null) %7B%0A%09%09%09if (other.id != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!id.equals(other.id))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%7D

Create service registration model.