XMLValidationSchemaFactory instances with OSGi framework.
The added indirection (provider constructing factory) is needed because
of impedance between OSGi service objects (which are essentially
singletons) and Stax/Stax2 factories which are not.Note
implementations of provider should NOT use introspection
via XMLValidationSchemaFactory#newInstance as it will
not work with OSGi. Instead, providers should directly construct
instances of concrete factory they represent. That is, there will
be one provider implementation per concrete Stax/Stax2 implementation
| Modifier and Type | Field and Description |
|---|---|
| public static final String | OSGI_SVC_PROP_IMPL_NAME
Service property that defines name of Stax2 implementation that this provider represents. |
| public static final String | OSGI_SVC_PROP_IMPL_VERSION
Service property that defines version of Stax2 implementation that this provider represents. |
| public static final String | OSGI_SVC_PROP_SCHEMA_TYPE
Service property that defines type of Schemas (one of constants from
|
| Modifier and Type | Method and Description |
|---|---|
| public XMLValidationSchemaFactory | Returns: ValidationSchema factory configured to implementation-specific default settings, if type is supported by this provider; null if not.Method called to create a new |
| public String | Returns: Id of schema type that the factory instantiated by this provider will support.Method that can be used to determine which schema type this provider (or, rather, factory instances of which provider constructs) supports. |
| OSGI_SVC_PROP_IMPL_NAME | back to summary |
|---|---|
| public static final String OSGI_SVC_PROP_IMPL_NAME Service property that defines name of Stax2 implementation that this provider represents. | |
| OSGI_SVC_PROP_IMPL_VERSION | back to summary |
|---|---|
| public static final String OSGI_SVC_PROP_IMPL_VERSION Service property that defines version of Stax2 implementation that this provider represents. | |
| OSGI_SVC_PROP_SCHEMA_TYPE | back to summary |
|---|---|
| public static final String OSGI_SVC_PROP_SCHEMA_TYPE Service property that defines type of Schemas (one of constants from
| |
| createValidationSchemaFactory | back to summary |
|---|---|
| public XMLValidationSchemaFactory createValidationSchemaFactory() Method called to create a new
| |
| getSchemaType | back to summary |
|---|---|
| public String getSchemaType() Method that can be used to determine which schema type this provider (or, rather, factory instances of which provider constructs) supports.
| |