public interface GeneratedResourceFactory
GeneratedResource
instance from an ExtensionModel
instance.
Implementations are to be reusable and thread-safe.Modifier and Type | Method and Description |
---|---|
Optional<GeneratedResource> |
generateResource(ExtensionModel extensionModel)
Creates a new
GeneratedResource from the given extensionModel . |
Optional<GeneratedResource> generateResource(ExtensionModel extensionModel)
GeneratedResource
from the given extensionModel
.
Because not every implementation of this class necessarily applies to
every ExtensionModel
, this method returns an Optional
which will be empty if the kind of generated resource is not valid
for the given extensionModel
extensionModel
- the ExtensionModel
that requires the resourceOptional
GeneratedResource
Copyright © 2018. All rights reserved.