Expand the GeneratePojo method to allow for input
- Dominant language
- Java
- Stars
- 6
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
There are cases where a Limiter requires correlation with information that is external to the Pojo generator. A new limiter should be constructed to handle this.
```
PojoGenerator generator = new PojoGeneratorBuilder<>(YourPojo.class)
.andLimitField("itemId", new ExternalPropertyLimiter(YourExternalObject.class, Supplier))
.build()
generator.generatePojoUsing(instanceOfExternalObject);
```
Contributor guide
Research direction
Start by locating PojoGenerator, PojoGeneratorBuilder, and the existing limiter implementations referenced by the example. Trace how generatePojo currently receives its input and how limiters obtain values; done means an external object can be supplied to generation and correlated limiter behavior is covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100