Class BasicService

java.lang.Object
com.service.basic.logic.BasicService
All Implemented Interfaces:
IBasicService, org.pipservices4.components.config.IConfigurable, org.pipservices4.components.refer.IReferenceable, org.pipservices4.rpc.commands.ICommandable

public class BasicService extends Object implements IBasicService, org.pipservices4.components.config.IConfigurable, org.pipservices4.components.refer.IReferenceable, org.pipservices4.rpc.commands.ICommandable
Implements the business logic operations of the controller.
  • Constructor Details

    • BasicService

      public BasicService()
  • Method Details

    • configure

      public void configure(org.pipservices4.components.config.ConfigParams config) throws org.pipservices4.commons.errors.ConfigException
      Configures component by passing configuration parameters.
      Specified by:
      configure in interface org.pipservices4.components.config.IConfigurable
      Parameters:
      config - configuration parameters to be set.
      Throws:
      org.pipservices4.commons.errors.ConfigException
    • setReferences

      public void setReferences(org.pipservices4.components.refer.IReferences references) throws org.pipservices4.components.refer.ReferenceException, org.pipservices4.commons.errors.ConfigException
      Sets references to dependent components.
      Specified by:
      setReferences in interface org.pipservices4.components.refer.IReferenceable
      Parameters:
      references - references to locate the component dependencies.
      Throws:
      org.pipservices4.components.refer.ReferenceException
      org.pipservices4.commons.errors.ConfigException
    • getCommandSet

      public org.pipservices4.rpc.commands.CommandSet getCommandSet()
      Specified by:
      getCommandSet in interface org.pipservices4.rpc.commands.ICommandable
    • doSomething

      public ResponseV1 doSomething(org.pipservices4.components.context.IContext context, RequestV1 request)
      Some API function of module
      Specified by:
      doSomething in interface IBasicService
      Parameters:
      request - a request string
      Returns:
      a response string