blob: 637938f53d557fa0ddc6800a2caa823f0750511e [file] [log] [blame]
Tatu Saloranta68bb83d2013-04-19 10:41:15 -07001/* Jackson JSON-processor.
2 *
3 * Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
4 */
5
Tatu Salorantaf15531c2011-12-22 23:00:40 -08006package com.fasterxml.jackson.core;
7
8/**
9 * Interface that those Jackson components that are explicitly versioned will implement.
10 * Intention is to allow both plug-in components (custom extensions) and applications and
11 * frameworks that use Jackson to detect exact version of Jackson in use.
12 * This may be useful for example for ensuring that proper Jackson version is deployed
13 * (beyond mechanisms that deployment system may have), as well as for possible
14 * workarounds.
Tatu Salorantaf15531c2011-12-22 23:00:40 -080015 */
16public interface Versioned {
17 /**
18 * Method called to detect version of the component that implements this interface;
19 * returned version should never be null, but may return specific "not available"
20 * instance (see {@link Version} for details).
21 */
Francis Galiegue4d5def12012-09-29 12:26:42 +020022 Version version();
Tatu Salorantaf15531c2011-12-22 23:00:40 -080023}