public class DefaultRestEntityFactory extends Object implements RestEntityFactory
| Constructor and Description |
|---|
DefaultRestEntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> RestEntity<T> |
create(T entity)
creates a RestEntity that wraps the provided entity.
|
public <T> RestEntity<T> create(T entity)
RestEntityFactoryAny fields referenced by the entity that have the RestEnrichable annotation will also be converted to RestEntities.
Fields annotated with JsonProperty that implement Iterable will have their contents converted to RestEntities if the content class has the RestEnrichable annotation. Likewise Maps will have their values converted.
create in interface RestEntityFactoryCopyright © 2003–2017 Atlassian. All rights reserved.