public interface DomainRegistry
To use it, just inject it :
@Inject
DomainRegistry domainRegistry
Example for a class without generic parameter:MyPolicy policy = domainRegistry.getPolicy(MyPolicy.class,"qualifier");Example for a class with generic parameter:AnotherPolicy<MyClient<Long>> policy = domainRegistry.getPolicy(new TypeOf<AnotherPolicy<MyClient<Long>>>(){},"qualifier");
| Modifier and Type | Method and Description |
|---|---|
<T extends DomainObject & Producible> |
getFactory(Class<T> aggregateRoot)
Get the
Factory for an aggregate root. |
<T extends DomainObject & Producible> |
getFactory(Class<T> aggregateRoot,
Class<? extends Annotation> qualifier)
Get the
Factory with a qualifier for an aggregate root. |
<T extends DomainObject & Producible> |
getFactory(Class<T> aggregateRoot,
String qualifier)
Get the
Factory with a qualifier for an aggregate root. |
<T extends Factory<A>,A extends DomainObject & Producible> |
getFactory(org.seedstack.seed.TypeOf<T> typeOf)
Get a
Factory from the domain. |
<T extends Factory<A>,A extends DomainObject & Producible> |
getFactory(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
Get a
Factory from the domain. |
<T extends Factory<A>,A extends DomainObject & Producible> |
getFactory(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
Get a
Factory from the domain. |
<T> T |
getPolicy(Class<T> rawType)
Get a
DomainPolicy from the domain. |
<T> T |
getPolicy(Class<T> rawType,
Class<? extends Annotation> qualifier)
Get a
DomainPolicy with a qualifier from the domain. |
<T> T |
getPolicy(Class<T> rawType,
String qualifier)
Get a
DomainPolicy with a qualifier from the domain. |
<T> T |
getPolicy(org.seedstack.seed.TypeOf<T> typeOf)
Get a
DomainPolicy from the domain. |
<T> T |
getPolicy(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
Get a
DomainPolicy from the domain. |
<T> T |
getPolicy(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
Get a
DomainPolicy from the domain. |
<A extends AggregateRoot<K>,K> |
getRepository(Class<A> aggregateRoot,
Class<K> key,
Class<? extends Annotation> qualifier)
Get the
Repository for an aggregate root and a qualifier. |
<A extends AggregateRoot<K>,K> |
getRepository(Class<A> aggregateRoot,
Class<K> key,
String qualifier)
Get the
Repository for an aggregate root and a qualifier. |
<T extends Repository<A,K>,A extends AggregateRoot<K>,K> |
getRepository(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
Get a
Repository from the domain. |
<T extends Repository<A,K>,A extends AggregateRoot<K>,K> |
getRepository(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
Get a
Repository from the domain. |
<T> T |
getService(Class<T> rawType)
Get a
Service from the domain. |
<T> T |
getService(Class<T> rawType,
Class<? extends Annotation> qualifier)
Get a
Service with a qualifier from the domain. |
<T> T |
getService(Class<T> rawType,
String qualifier)
Get a
Service with a qualifier from the domain. |
<T> T |
getService(org.seedstack.seed.TypeOf<T> typeOf)
Get a
Service from the domain. |
<T> T |
getService(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
Get a
Service from the domain. |
<T> T |
getService(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
Get a
Service from the domain. |
<T extends Repository<A,K>,A extends AggregateRoot<K>,K> T getRepository(org.seedstack.seed.TypeOf<T> typeOf, Class<? extends Annotation> qualifier)
Repository from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - repository qualifierRepository found in the domain.<T extends Repository<A,K>,A extends AggregateRoot<K>,K> T getRepository(org.seedstack.seed.TypeOf<T> typeOf, String qualifier)
Repository from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - repository qualifierRepository found in the domain.<A extends AggregateRoot<K>,K> Repository<A,K> getRepository(Class<A> aggregateRoot, Class<K> key, Class<? extends Annotation> qualifier)
Repository for an aggregate root and a qualifier.aggregateRoot - the aggregate root linked to the repository.key - the aggregate root's key.qualifier - repository qualifier (example: JPA, ...).Repository<A extends AggregateRoot<K>,K> Repository<A,K> getRepository(Class<A> aggregateRoot, Class<K> key, String qualifier)
Repository for an aggregate root and a qualifier.aggregateRoot - the aggregate root linked to the repository.key - the aggregate root's key.qualifier - repository qualifier (example: JPA, ...).Repository<T extends DomainObject & Producible> Factory<T> getFactory(Class<T> aggregateRoot)
Factory for an aggregate root.aggregateRoot - the aggregate root linked to the factoy.Factory<T extends DomainObject & Producible> Factory<T> getFactory(Class<T> aggregateRoot, Class<? extends Annotation> qualifier)
Factory with a qualifier for an aggregate root.aggregateRoot - the aggregate root linked to the factoy.qualifier - factory qualifier.Factory<T extends DomainObject & Producible> Factory<T> getFactory(Class<T> aggregateRoot, String qualifier)
Factory with a qualifier for an aggregate root.aggregateRoot - the aggregate root linked to the factoy.qualifier - factory qualifier.Factory<T extends Factory<A>,A extends DomainObject & Producible> T getFactory(org.seedstack.seed.TypeOf<T> typeOf)
Factory from the domain.typeOf - the TypeOf to define all generic pattern.Factory found in the domain.<T extends Factory<A>,A extends DomainObject & Producible> T getFactory(org.seedstack.seed.TypeOf<T> typeOf, Class<? extends Annotation> qualifier)
Factory from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - factory qualifierFactory found in the domain.<T extends Factory<A>,A extends DomainObject & Producible> T getFactory(org.seedstack.seed.TypeOf<T> typeOf, String qualifier)
Factory from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - factory qualifierFactory found in the domain.<T> T getService(Class<T> rawType)
Service from the domain.rawType - the service class.Service found in the domain.<T> T getService(Class<T> rawType, Class<? extends Annotation> qualifier)
Service with a qualifier from the domain.rawType - the service class.qualifier - service qualifierService found in the domain.<T> T getService(Class<T> rawType, String qualifier)
Service with a qualifier from the domain.rawType - the service class.qualifier - service qualifierService found in the domain.<T> T getService(org.seedstack.seed.TypeOf<T> typeOf)
Service from the domain.typeOf - the TypeOf to define all generic pattern.Service found in the domain.<T> T getService(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
Service from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - service qualifierService found in the domain.<T> T getService(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
Service from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - service qualifierService found in the domain.<T> T getPolicy(Class<T> rawType)
DomainPolicy from the domain.rawType - the policy class.DomainPolicy found in the domain.<T> T getPolicy(Class<T> rawType, Class<? extends Annotation> qualifier)
DomainPolicy with a qualifier from the domain.rawType - the policy class.qualifier - policy qualifierDomainPolicy found in the domain.<T> T getPolicy(Class<T> rawType, String qualifier)
DomainPolicy with a qualifier from the domain.rawType - the policy class.qualifier - policy qualifierDomainPolicy found in the domain.<T> T getPolicy(org.seedstack.seed.TypeOf<T> typeOf)
DomainPolicy from the domain.typeOf - the TypeOf to define all generic pattern.DomainPolicy found in the domain.<T> T getPolicy(org.seedstack.seed.TypeOf<T> typeOf,
Class<? extends Annotation> qualifier)
DomainPolicy from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - policy qualifierDomainPolicy found in the domain.<T> T getPolicy(org.seedstack.seed.TypeOf<T> typeOf,
String qualifier)
DomainPolicy from the domain.typeOf - the TypeOf to define all generic pattern.qualifier - policy qualifierDomainPolicy found in the domain.Copyright © 2013-2016–2016 SeedStack. All rights reserved.