Class FactoryManager


  • public class FactoryManager
    extends Object
    Provides a factory manager that can be used in OSGi as well as in SPI contexts. The factory manager maintains a reference to all factory implementations needed by this bundle.
    • Constructor Detail

      • FactoryManager

        public FactoryManager()
        Creates a new empty factory manager (all factories are null).
    • Method Detail

      • getFormatterFactory

        public FormatterFactory getFormatterFactory()
        Gets the formatter factory associated with this manager.
        Returns:
        returns a formatter factory, or null if not set
      • setFormatterFactory

        public void setFormatterFactory​(FormatterFactory formatterFactory)
        Sets the formatter factory associated with this manager.
        Parameters:
        formatterFactory - the formatter factory
      • getTextBorderFactory

        public TextBorderFactoryMakerService getTextBorderFactory()
        Gets the text border factory associated with this manager.
        Returns:
        returns a text border factory, or null if not set
      • setTextBorderFactory

        public void setTextBorderFactory​(TextBorderFactoryMakerService textBorderFactory)
        Sets the text border factory associated with this manager.
        Parameters:
        textBorderFactory - the text border factory
      • getExpressionFactory

        public ExpressionFactory getExpressionFactory()
        Gets the expression factory associated with this manager.
        Returns:
        returns a expression factory, or null if not set
      • setExpressionFactory

        public void setExpressionFactory​(ExpressionFactory expressionFactory)
        Sets the expression factory associated with this manager.
        Parameters:
        expressionFactory - the expression factory
      • getXmlEventFactory

        public XMLEventFactory getXmlEventFactory()
        Gets the xml event factory associated with this manager.
        Returns:
        returns a xml event factory, or null if not set
      • setXmlEventFactory

        public void setXmlEventFactory​(XMLEventFactory xmlEventFactory)
        Sets the xml event factory associated with this manager.
        Parameters:
        xmlEventFactory - the xml event factory
      • getXmlOutputFactory

        public XMLOutputFactory getXmlOutputFactory()
        Gets the xml output factory associated with this manager.
        Returns:
        returns a xml output factory, or null if not set
      • setXmlOutputFactory

        public void setXmlOutputFactory​(XMLOutputFactory xmlOutputFactory)
        Sets the xml output factory associated with this manager.
        Parameters:
        xmlOutputFactory - the xml output factory
      • getXmlInputFactory

        public XMLInputFactory getXmlInputFactory()
        Gets the xml input factory associated with this manager.
        Returns:
        returns a xml input factory, or null if not set
      • setXmlInputFactory

        public void setXmlInputFactory​(XMLInputFactory xmlInputFactory)
        Sets the xml input factory associated with this manager.
        Parameters:
        xmlInputFactory - the xml input factory
      • getDocumentBuilderFactory

        public DocumentBuilderFactory getDocumentBuilderFactory()
        Gets the document builder factory associated with this manager.
        Returns:
        returns a document builder factory, or null if not set
      • setDocumentBuilderFactory

        public void setDocumentBuilderFactory​(DocumentBuilderFactory documentBuilderFactory)
        Sets the document builder factory associated with this manager.
        Parameters:
        documentBuilderFactory - the document builder factory
      • getXpathFactory

        public XPathFactory getXpathFactory()
        Gets the xpath factory associated with this manager.
        Returns:
        returns a xpath factory, or null if not set
      • setXpathFactory

        public void setXpathFactory​(XPathFactory xpathFactory)
        Sets the xpath factory associated with this manager.
        Parameters:
        xpathFactory - the xpath factory
      • getTransformerFactory

        public TransformerFactory getTransformerFactory()
        Gets the transformer factory associated with this manager.
        Returns:
        returns a transformer factory, or null if not set
      • setTransformerFactory

        public void setTransformerFactory​(TransformerFactory transformerFactory)
        Sets the transformer factory associated with this manager.
        Parameters:
        transformerFactory - the transformer factory