Class XMLResourceGenerator


  • public class XMLResourceGenerator
    extends java.lang.Object
    Can turn an OSGi repository into an http://www.osgi.org/xmlns/repository/v1.0.0 XML file. See the Repository spec in OSGi.
    • Constructor Detail

      • XMLResourceGenerator

        public XMLResourceGenerator()
    • Method Detail

      • save

        public void save​(java.io.File location)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        public void save​(java.io.OutputStream out)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • repository

        public XMLResourceGenerator repository​(org.osgi.service.repository.Repository repository)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resources

        public XMLResourceGenerator resources​(java.util.Collection<? extends org.osgi.resource.Resource> resources)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resource

        public XMLResourceGenerator resource​(org.osgi.resource.Resource resource)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception