com.jk.services.server.JKServicesRegistry Maven / Gradle / Ivy
/*
* Copyright 2002-2023 Dr. Jalal Kiswani.
* Email: [email protected]
* Check out https://j-framework.com for more details
*
* All the opensource projects of Dr. Jalal Kiswani are free for personal and academic use only,
* for commercial usage and support, please contact the author.
*
* 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 com.jk.services.server;
import java.util.List;
import java.util.Vector;
import com.jk.services.server.commons.models.ServiceServerInfo;
/**
* This class represents a registry for service server information.
*
* @author Dr. Jalal H. Kiswani
* @version 1.0
*/
public class JKServicesRegistry {
/**
* Represents the single instance of this class.
*/
private static JKServicesRegistry instance = new JKServicesRegistry();
/**
* Represents a list that stores information about service servers.
*/
List serviceServers = new Vector<>();
/**
* This method gets the singleton instance of this class.
*
* @return singleton instance of this class.
*/
public static JKServicesRegistry getInstance() {
return instance;
}
/**
* This method constructs a new {@code JKServicesRegistry}.
*/
private JKServicesRegistry() {
}
/**
* This method gets the list of the service servers.
*
* @return the list of the service servers
*/
public List getServiceServers() {
return serviceServers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy