public class SchemaRegistryImpl extends Object implements SchemaRegistry, org.osgi.framework.SynchronousBundleListener
Constructor and Description |
---|
SchemaRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
void |
destroy() |
protected com.networknt.schema.JsonSchema |
getJsonSchema(String schemaId) |
JSONSchema |
getSchema(String schemaId) |
List<JSONSchema> |
getTargetSchemas(String target) |
void |
init() |
boolean |
isValid(Object object,
String schemaId) |
String |
registerSchema(String target,
InputStream jsonSchemaInputStream) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setProfileService(ProfileService profileService) |
boolean |
unregisterSchema(String target,
String schemaId) |
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
public void init()
public void destroy()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setProfileService(ProfileService profileService)
public boolean isValid(Object object, String schemaId)
isValid
in interface SchemaRegistry
public List<JSONSchema> getTargetSchemas(String target)
getTargetSchemas
in interface SchemaRegistry
public JSONSchema getSchema(String schemaId)
getSchema
in interface SchemaRegistry
public String registerSchema(String target, InputStream jsonSchemaInputStream)
registerSchema
in interface SchemaRegistry
public boolean unregisterSchema(String target, String schemaId)
unregisterSchema
in interface SchemaRegistry
protected com.networknt.schema.JsonSchema getJsonSchema(String schemaId)
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.