Package org.revapi.simple
Class SimpleConfigurable
- java.lang.Object
-
- org.revapi.simple.SimpleConfigurable
-
- All Implemented Interfaces:
AutoCloseable
,Configurable
- Direct Known Subclasses:
SimpleDifferenceTransform
,SimpleElementFilter
,SimpleReporter
@Deprecated public abstract class SimpleConfigurable extends Object implements AutoCloseable, Configurable
Deprecated.useBaseConfigurable
instead- Since:
- 0.4.0
- Author:
- Lukas Krejci
-
-
Constructor Summary
Constructors Constructor Description SimpleConfigurable()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Reader
getJSONSchema()
Deprecated.This method must not return null ifConfigurable.getExtensionId()
returns a non-null value.void
initialize(AnalysisContext analysisContext)
Deprecated.The instance can configure itself for the upcoming analysis from the supplied analysis context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.revapi.configuration.Configurable
getExtensionId
-
-
-
-
Method Detail
-
close
public void close() throws Exception
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getJSONSchema
@Nullable public Reader getJSONSchema()
Deprecated.Description copied from interface:Configurable
This method must not return null ifConfigurable.getExtensionId()
returns a non-null value.- Specified by:
getJSONSchema
in interfaceConfigurable
- Returns:
- a json schema to validate the configuration of this configurable against
-
initialize
public void initialize(@Nonnull AnalysisContext analysisContext)
Deprecated.Description copied from interface:Configurable
The instance can configure itself for the upcoming analysis from the supplied analysis context.The configuration contained in the supplied analysis context is solely the one provided for this configurable instance and conforms to its schema. Note that this method can be called multiple times, each time for a different analysis run.
- Specified by:
initialize
in interfaceConfigurable
- Parameters:
analysisContext
- the context of the upcoming analysis
-
-