Class BaseService

    • Field Detail

      • configuration

        protected org.apache.commons.configuration2.Configuration configuration
        The configuration for this service
      • name

        protected String name
        The name of this Service.
    • Method Detail

      • setServiceBroker

        public void setServiceBroker​(ServiceBroker broker)
        Saves a reference to the ServiceBroker that instantiated this object, so that it can ask for its properties and access other Services.
        Specified by:
        setServiceBroker in interface Service
        Parameters:
        broker - The ServiceBroker that instantiated this object.
      • setName

        public void setName​(String name)
        ServiceBroker uses this method to pass a Service its name.
        Specified by:
        setName in interface Service
        Parameters:
        name - The name of this Service.
      • getName

        public String getName()
        Returns the name of this service.
        Specified by:
        getName in interface Service
        Returns:
        The name of this Service.
      • getServiceBroker

        public ServiceBroker getServiceBroker()
        Returns a ServiceBroker reference.
        Returns:
        The ServiceBroker that instantiated this object.
      • getConfiguration

        public org.apache.commons.configuration2.Configuration getConfiguration()
        Returns the configuration of this Service.
        Specified by:
        getConfiguration in interface Service
        Returns:
        The Configuration of this Service.