public class TextBorderFactoryMaker extends Object implements TextBorderFactoryMakerService
This class can be overridden by extending it and adding a reference to the new implementation to the services API. This class will then choose the new implementation when a new instance is requested.
Constructor and Description |
---|
TextBorderFactoryMaker()
Creates a new text border factory maker.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(TextBorderFactoryService factory)
Adds a factory (intended for use by the OSGi framework)
|
static TextBorderFactoryMakerService |
newInstance()
Creates a new TextBorderFactoryMaker and populates it using the SPI (java
service provider interface).
|
TextBorderStyle |
newTextBorderStyle(Map<String,Object> features)
Creates a new text border style with the suppled specifications
|
void |
removeFactory(TextBorderFactoryService factory)
Removes a factory (intended for use by the OSGi framework)
|
public TextBorderFactoryMaker()
public static TextBorderFactoryMakerService newInstance()
Creates a new TextBorderFactoryMaker and populates it using the SPI (java service provider interface).
In an OSGi context, an instance should be retrieved using the service registry. It will be registered under the TextBorderFactoryMakerService interface.
public void addFactory(TextBorderFactoryService factory)
factory
- the factory to addpublic void removeFactory(TextBorderFactoryService factory)
factory
- the factory to removepublic TextBorderStyle newTextBorderStyle(Map<String,Object> features) throws TextBorderConfigurationException
TextBorderFactoryMakerService
newTextBorderStyle
in interface TextBorderFactoryMakerService
features
- the features to useTextBorderConfigurationException
- if an instance cannot be created