org.qi4j.bootstrap
Interface ImportedServiceDeclaration


public interface ImportedServiceDeclaration

Fluent API for declaring imported services. Instances of this API are acquired by calling ModuleAssembly.importedServices(Class[]).


Field Summary
static Class<? extends ServiceImporter> INSTANCE
           
static Class<? extends ServiceImporter> NEW_OBJECT
           
static Class<? extends ServiceImporter> SERVICE_IMPORTER
           
static Class<? extends ServiceImporter> SERVICE_SELECTOR
           
 
Method Summary
 ImportedServiceDeclaration identifiedBy(String identity)
           
 ImportedServiceDeclaration importedBy(Class<? extends ServiceImporter> serviceImporterClass)
           
 ImportedServiceDeclaration setMetaInfo(Object serviceAttribute)
           
 ImportedServiceDeclaration taggedWith(String... tags)
           
 ImportedServiceDeclaration visibleIn(Visibility visibility)
           
 

Field Detail

INSTANCE

static final Class<? extends ServiceImporter> INSTANCE

NEW_OBJECT

static final Class<? extends ServiceImporter> NEW_OBJECT

SERVICE_SELECTOR

static final Class<? extends ServiceImporter> SERVICE_SELECTOR

SERVICE_IMPORTER

static final Class<? extends ServiceImporter> SERVICE_IMPORTER
Method Detail

visibleIn

ImportedServiceDeclaration visibleIn(Visibility visibility)

importedBy

ImportedServiceDeclaration importedBy(Class<? extends ServiceImporter> serviceImporterClass)

identifiedBy

ImportedServiceDeclaration identifiedBy(String identity)

taggedWith

ImportedServiceDeclaration taggedWith(String... tags)

setMetaInfo

ImportedServiceDeclaration setMetaInfo(Object serviceAttribute)