public interface DomainRegistry
Usage for a class without generic parameter:
MyPolicy policy = domainRegistry.getPolicy(MyPolicy.class,"qualifier");
Usage for a class with generic parameter(s):
AnotherPolicy<MyClient<Long>> policy = domainRegistry.getPolicy(
new TypeOf<AnotherPolicy<MyClient<Long>>>(){},
"qualifier"
);
Note that generics are specified with a Type instance. In the example above,
SeedStack TypeOf is used to capture generics and provide a Type instance but any
other implementation can be used.
| Modifier and Type | Method and Description |
|---|---|
<P extends Producible> |
getFactory(Class<P> producibleClass)
Get the
Factory for an aggregate root. |
<P extends Producible> |
getFactory(Class<P> producibleClass,
Class<? extends Annotation> qualifier)
Get the
Factory with a qualifier for an aggregate root. |
<P extends Producible> |
getFactory(Class<P> producibleClass,
String qualifier)
Get the
Factory with a qualifier for an aggregate root. |
<F extends Factory<P>,P extends Producible> |
getFactory(Type factoryType)
Get a
Factory from the domain. |
<F extends Factory<P>,P extends Producible> |
getFactory(Type factoryType,
Class<? extends Annotation> qualifier)
Get a
Factory from the domain. |
<F extends Factory<P>,P extends Producible> |
getFactory(Type factoryType,
String qualifier)
Get a
Factory from the domain. |
<P> P |
getPolicy(Class<P> policyClass)
Get a
DomainPolicy from the domain. |
<P> P |
getPolicy(Class<P> policyClass,
Class<? extends Annotation> qualifier)
Get a
DomainPolicy with a qualifier from the domain. |
<P> P |
getPolicy(Class<P> policyClass,
String qualifier)
Get a
DomainPolicy with a qualifier from the domain. |
<P> P |
getPolicy(Type policyType)
Get a
DomainPolicy from the domain. |
<P> P |
getPolicy(Type policyType,
Class<? extends Annotation> qualifier)
Get a
DomainPolicy from the domain. |
<P> P |
getPolicy(Type policyType,
String qualifier)
Get a
DomainPolicy from the domain. |
<A extends AggregateRoot<I>,I> |
getRepository(Class<A> aggregateRootClass,
Class<I> idClass)
Get the
Repository for an aggregate root. |
<A extends AggregateRoot<I>,I> |
getRepository(Class<A> aggregateRootClass,
Class<I> idClass,
Class<? extends Annotation> qualifier)
Get the
Repository for an aggregate root and a qualifier. |
<A extends AggregateRoot<I>,I> |
getRepository(Class<A> aggregateRootClass,
Class<I> idClass,
String qualifier)
Get the
Repository for an aggregate root and a qualifier. |
<R extends Repository<A,I>,A extends AggregateRoot<I>,I> |
getRepository(Type repositoryType)
Get a
Repository from the domain. |
<R extends Repository<A,I>,A extends AggregateRoot<I>,I> |
getRepository(Type repositoryType,
Class<? extends Annotation> qualifier)
Get a
Repository from the domain. |
<R extends Repository<A,I>,A extends AggregateRoot<I>,I> |
getRepository(Type repositoryType,
String qualifier)
Get a
Repository from the domain. |
<S> S |
getService(Class<S> serviceClass)
Get a
Service from the domain. |
<S> S |
getService(Class<S> serviceClass,
Class<? extends Annotation> qualifier)
Get a
Service with a qualifier from the domain. |
<S> S |
getService(Class<S> serviceClass,
String qualifier)
Get a
Service with a qualifier from the domain. |
<S> S |
getService(Type serviceType)
Get a
Service from the domain. |
<S> S |
getService(Type serviceType,
Class<? extends Annotation> qualifier)
Get a
Service from the domain. |
<S> S |
getService(Type serviceType,
String qualifier)
Get a
Service from the domain. |
<A extends AggregateRoot<I>,I> Repository<A,I> getRepository(Class<A> aggregateRootClass, Class<I> idClass)
Repository for an aggregate root.A - the type of the aggregate root.I - the type of the aggregate root identifier.aggregateRootClass - the aggregate root class.idClass - the aggregate root identifier class.<A extends AggregateRoot<I>,I> Repository<A,I> getRepository(Class<A> aggregateRootClass, Class<I> idClass, Class<? extends Annotation> qualifier)
Repository for an aggregate root and a qualifier.A - the type of the aggregate root.I - the type of the aggregate root identifier.aggregateRootClass - the aggregate root class.idClass - the aggregate root identifier class.qualifier - the repository qualifier.<A extends AggregateRoot<I>,I> Repository<A,I> getRepository(Class<A> aggregateRootClass, Class<I> idClass, String qualifier)
Repository for an aggregate root and a qualifier.A - the type of the aggregate root.I - the type of the aggregate root identifier.aggregateRootClass - the aggregate root class.idClass - the aggregate root identifier class.qualifier - the repository qualifier.<R extends Repository<A,I>,A extends AggregateRoot<I>,I> R getRepository(Type repositoryType)
Repository from the domain.R - the type of the repository.A - the type of the aggregate root.I - the type of the aggregate root identifier.repositoryType - the full generic type.<R extends Repository<A,I>,A extends AggregateRoot<I>,I> R getRepository(Type repositoryType, Class<? extends Annotation> qualifier)
Repository from the domain.R - the type of the repository.A - the type of the aggregate root.I - the type of the aggregate root identifier.repositoryType - the full generic type.qualifier - the repository qualifier.<R extends Repository<A,I>,A extends AggregateRoot<I>,I> R getRepository(Type repositoryType, String qualifier)
Repository from the domain.R - the type of the repository.A - the type of the aggregate root.I - the type of the aggregate root identifier.repositoryType - the full generic type.qualifier - the repository qualifier.<P extends Producible> Factory<P> getFactory(Class<P> producibleClass)
Factory for an aggregate root.P - the type of the producible object.producibleClass - the producible class.<P extends Producible> Factory<P> getFactory(Class<P> producibleClass, Class<? extends Annotation> qualifier)
Factory with a qualifier for an aggregate root.P - the type of the producible object.producibleClass - the producible class.qualifier - the factory qualifier.<P extends Producible> Factory<P> getFactory(Class<P> producibleClass, String qualifier)
Factory with a qualifier for an aggregate root.P - the type of the producible object.producibleClass - the producible class.qualifier - the factory qualifier.<F extends Factory<P>,P extends Producible> F getFactory(Type factoryType)
Factory from the domain.F - the type of the factory.P - the type of the producible object.factoryType - the capture of the full generic type.<F extends Factory<P>,P extends Producible> F getFactory(Type factoryType, Class<? extends Annotation> qualifier)
Factory from the domain.F - the type of the factory.P - the type of the producible object.factoryType - the full generic type.qualifier - the factory qualifier.<F extends Factory<P>,P extends Producible> F getFactory(Type factoryType, String qualifier)
Factory from the domain.F - the type of the factory.P - the type of the producible object.factoryType - the full generic type.qualifier - the factory qualifier.<S> S getService(Class<S> serviceClass)
Service from the domain.S - the type of the service.serviceClass - the class of the service interface.<S> S getService(Class<S> serviceClass, Class<? extends Annotation> qualifier)
Service with a qualifier from the domain.S - the type of the service.serviceClass - the class of the service interface.qualifier - the service qualifier.<S> S getService(Class<S> serviceClass, String qualifier)
Service with a qualifier from the domain.S - the type of the service.serviceClass - the class of the service interface.qualifier - the service qualifier.<S> S getService(Type serviceType)
Service from the domain.S - the type of the service.serviceType - the full generic type.<S> S getService(Type serviceType, Class<? extends Annotation> qualifier)
Service from the domain.S - the type of the service.serviceType - the full generic type.qualifier - the service qualifier.<S> S getService(Type serviceType, String qualifier)
Service from the domain.S - the type of the service.serviceType - the full generic type.qualifier - the service qualifier.<P> P getPolicy(Class<P> policyClass)
DomainPolicy from the domain.P - the type of the policy.policyClass - the policy class.<P> P getPolicy(Class<P> policyClass, Class<? extends Annotation> qualifier)
DomainPolicy with a qualifier from the domain.P - the type of the policy.policyClass - the policy class.qualifier - the policy qualifier.<P> P getPolicy(Class<P> policyClass, String qualifier)
DomainPolicy with a qualifier from the domain.P - the type of the policy.policyClass - the policy class.qualifier - the policy qualifier.<P> P getPolicy(Type policyType)
DomainPolicy from the domain.P - the type of the policy.policyType - the full generic type.<P> P getPolicy(Type policyType, Class<? extends Annotation> qualifier)
DomainPolicy from the domain.P - the type of the policy.policyType - the full generic type.qualifier - the policy qualifier.<P> P getPolicy(Type policyType, String qualifier)
DomainPolicy from the domain.P - the type of the policy.policyType - the full generic type.qualifier - the policy qualifier.Copyright © 2013-2018–2019 SeedStack. All rights reserved.