You could reference EmailService
from Java, but not from Scala, because Scala stores the signature of the class as a scala.reflect.ScalaSignature
annotation. The Scala compiler will fail with the following error:
class EmailService in package email cannot be accessed in package shop.orders.services.email