O'Reilly logo

Implementing Domain-Driven Design by Vaughn Vernon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sample Application Service

Let’s take a look at the partial sample interface and implementation class for an Application Service. This is the service that provides use case task management for tenants of the Identity and Access Context. It is just a sample and not meant to be taken as the final say. Trade-offs will be apparent.

First consider the basic interface:

package com.saasovation.identityaccess.application; public interface TenantIdentityService {     public void activateTenant(TenantId aTenantId);     public void deactivateTenant(TenantId aTenantId);     public String offerLimitedRegistrationInvitation(             TenantId aTenantId,             Date aStartsOnDate,             Date anUntilDate);     public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required