This method has been deprecated in favor of various static factory
methods, like getShared(), getPrecomputed(), createLazy() and similar.
Those offer various computation strategies and allow users to better
fine-tune memory/cpu overhead trade-offs based on their use. Remove
the old create() method.
Change-Id: I01bb4063be2273bc7f5cc3e2361b23c01ffa11bf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
iidCodec = new JSONStringInstanceIdentifierCodec(context, this);
}
- /**
- * Instantiate a new codec factory attached to a particular context.
- *
- * @param context SchemaContext to which the factory should be bound
- * @return A codec factory instance.
- *
- * @deprecated Use {@link #getShared(SchemaContext)} instead.
- */
- @Deprecated
- public static JSONCodecFactory create(final SchemaContext context) {
- return getShared(context);
- }
-
/**
* Get a thread-safe, eagerly-caching {@link JSONCodecFactory} for a SchemaContext. This method can, and will,
* return the same instance as long as the associated SchemaContext is present. Returned object can be safely