Package com.service.basic.logic
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.pipservices4.components.config.ConfigParams config) Configures component by passing configuration parameters.doSomething(org.pipservices4.components.context.IContext context, RequestV1 request) Some API function of moduleorg.pipservices4.rpc.commands.CommandSetvoidsetReferences(org.pipservices4.components.refer.IReferences references) Sets references to dependent components.
-
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:
configurein interfaceorg.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:
setReferencesin interfaceorg.pipservices4.components.refer.IReferenceable- Parameters:
references- references to locate the component dependencies.- Throws:
org.pipservices4.components.refer.ReferenceExceptionorg.pipservices4.commons.errors.ConfigException
-
getCommandSet
public org.pipservices4.rpc.commands.CommandSet getCommandSet()- Specified by:
getCommandSetin interfaceorg.pipservices4.rpc.commands.ICommandable
-
doSomething
public ResponseV1 doSomething(org.pipservices4.components.context.IContext context, RequestV1 request) Some API function of module- Specified by:
doSomethingin interfaceIBasicService- Parameters:
request- a request string- Returns:
- a response string
-