Package com.exonum.binding.core.service
Class AbstractService
java.lang.Object
com.exonum.binding.core.service.AbstractService
- All Implemented Interfaces:
Service
public abstract class AbstractService extends java.lang.Object implements Service
A base class for user services.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractService(ServiceInstanceSpec instanceSpec)
-
Method Summary
Modifier and Type Method Description protected int
getId()
Returns the numeric id of the service instance.protected ServiceInstanceSpec
getInstanceSpec()
Returns this service instance specification.protected java.lang.String
getName()
Returns the name of the service instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.exonum.binding.core.service.Service
afterCommit, afterTransactions, beforeTransactions, createPublicApiHandlers, initialize, resume
-
Constructor Details
-
Method Details
-
getName
protected final java.lang.String getName()Returns the name of the service instance.- See Also:
ServiceInstanceSpec.getName()
-
getId
protected final int getId()Returns the numeric id of the service instance.- See Also:
ServiceInstanceSpec.getId()
-
getInstanceSpec
Returns this service instance specification.
-