createInstance method.
Note that some implementations may choose to implement createInstance
by simply returning 'this': this is acceptable if instances are stateless.
DefaultPrettyPrinter
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: Actual instance to useMethod called to ensure that we have a non-blueprint object to use; it is either this object (if stateless), or a newly created object with separate state. |
| createInstance | back to summary |
|---|---|
| public T createInstance() Method called to ensure that we have a non-blueprint object to use; it is either this object (if stateless), or a newly created object with separate state.
| |