DO - Domain Object type to be produced.@DomainFactory public interface GenericFactory<DO extends DomainObject & Producible> extends DomainObject
To be a valid factory interface, Type must respect the followings:
GenericFactory
public interface ProductFactory extends GenericFactory<Product> {
Product createProduct(String productId, EAN13 ean13);
}
Then this interface has to be implemented by the actual factory implementation .| Modifier and Type | Method and Description |
|---|---|
Class<DO> |
getProducedClass() |
Copyright © 2013-2016–2016 SeedStack. All rights reserved.