Tatu Saloranta | 68bb83d | 2013-04-19 10:41:15 -0700 | [diff] [blame] | 1 | /* Jackson JSON-processor. |
| 2 | * |
| 3 | * Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi |
| 4 | */ |
| 5 | |
Tatu Saloranta | f15531c | 2011-12-22 23:00:40 -0800 | [diff] [blame] | 6 | package 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 Saloranta | f15531c | 2011-12-22 23:00:40 -0800 | [diff] [blame] | 15 | */ |
| 16 | public 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 Galiegue | 4d5def1 | 2012-09-29 12:26:42 +0200 | [diff] [blame] | 22 | Version version(); |
Tatu Saloranta | f15531c | 2011-12-22 23:00:40 -0800 | [diff] [blame] | 23 | } |