1 /* Jackson JSON-processor. 2 * 3 * Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi 4 */ 5 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. 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 */ version()22 Version version(); 23 } 24