Package org.apache.unomi.schema.listener
Class JsonSchemaListener
- java.lang.Object
-
- org.apache.unomi.schema.listener.JsonSchemaListener
-
- All Implemented Interfaces:
EventListener
,org.osgi.framework.BundleListener
,org.osgi.framework.SynchronousBundleListener
public class JsonSchemaListener extends Object implements org.osgi.framework.SynchronousBundleListener
An implementation of a BundleListener for the JSON schema. It will load the pre-defined schema files in the folder META-INF/cxs/schemas. It will load the extension of schema in the folder META-INF/cxs/schemasextensions. The scripts will be stored in the ES index jsonSchema and the extension will be stored in jsonSchemaExtension
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTRIES_LOCATION
-
Constructor Summary
Constructors Constructor Description JsonSchemaListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bundleChanged(org.osgi.framework.BundleEvent event)
void
postConstruct()
void
preDestroy()
void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
void
setSchemaService(SchemaService schemaService)
-
-
-
Field Detail
-
ENTRIES_LOCATION
public static final String ENTRIES_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSchemaService
public void setSchemaService(SchemaService schemaService)
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
postConstruct
public void postConstruct()
-
preDestroy
public void preDestroy()
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
-