Class DefaultSetup

  • All Implemented Interfaces:
    Setup

    public abstract class DefaultSetup
    extends java.lang.Object
    implements Setup
    Default implementation of Setup.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultSetup()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getClients()
      Returns the clients.
      java.util.Map<java.lang.String,​Server> getServers()
      Returns the servers.
      java.lang.Object putClient​(java.lang.String name, java.lang.Object client)
      Adds a client.
      Server putServer​(java.lang.String name, Server server)
      Adds a server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.github.henryssondaniel.teacup.core.Setup

        initialize
    • Constructor Detail

      • DefaultSetup

        public DefaultSetup()
    • Method Detail

      • getClients

        public java.util.Map<java.lang.String,​java.lang.Object> getClients()
        Description copied from interface: Setup
        Returns the clients.
        Specified by:
        getClients in interface Setup
        Returns:
        the clients
      • getServers

        public java.util.Map<java.lang.String,​Server> getServers()
        Description copied from interface: Setup
        Returns the servers.
        Specified by:
        getServers in interface Setup
        Returns:
        the servers
      • putClient

        public java.lang.Object putClient​(java.lang.String name,
                                          java.lang.Object client)
        Description copied from interface: Setup
        Adds a client.
        Specified by:
        putClient in interface Setup
        Parameters:
        name - the name
        client - the client
        Returns:
        the previous client associated with name, or null if there was no mapping for name
      • putServer

        public Server putServer​(java.lang.String name,
                                Server server)
        Description copied from interface: Setup
        Adds a server.
        Specified by:
        putServer in interface Setup
        Parameters:
        name - the name
        server - the server
        Returns:
        the previous server associated with name, or null if there was no mapping for name