Class DefaultProtobufToolchainFactory

  • All Implemented Interfaces:
    org.apache.maven.toolchain.ToolchainFactory

    @Component(role=org.apache.maven.toolchain.ToolchainFactory.class,
               hint="protobuf",
               description="A default factory for \'protobuf\' toolchains")
    public class DefaultProtobufToolchainFactory
    extends java.lang.Object
    implements org.apache.maven.toolchain.ToolchainFactory
    Based on org.apache.maven.toolchain.java.DefaultJavaToolchainFactory.
    Since:
    0.2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.codehaus.plexus.logging.Logger logger  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.maven.toolchain.ToolchainPrivate createDefaultToolchain()  
      org.apache.maven.toolchain.ToolchainPrivate createToolchain​(org.apache.maven.toolchain.model.ToolchainModel model)  
      protected static java.lang.Object getBeanProperty​(java.lang.Object obj, java.lang.String property)  
      protected static java.util.Properties getProvidesProperties​(org.apache.maven.toolchain.model.ToolchainModel model)
      Get provides properties in in a way compatible with toolchains descriptor version 1.0 (Maven 2.0.9 to 3.2.3, where it is represented as Object/DOM) and descriptor version 1.1 (Maven 3.2.4 and later, where it is represented as Properties).
      protected static java.util.Properties toProperties​(org.codehaus.plexus.util.xml.Xpp3Dom dom)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        @Requirement
        private org.codehaus.plexus.logging.Logger logger
    • Constructor Detail

      • DefaultProtobufToolchainFactory

        public DefaultProtobufToolchainFactory()
    • Method Detail

      • createToolchain

        public org.apache.maven.toolchain.ToolchainPrivate createToolchain​(org.apache.maven.toolchain.model.ToolchainModel model)
                                                                    throws org.apache.maven.toolchain.MisconfiguredToolchainException
        Specified by:
        createToolchain in interface org.apache.maven.toolchain.ToolchainFactory
        Throws:
        org.apache.maven.toolchain.MisconfiguredToolchainException
      • createDefaultToolchain

        public org.apache.maven.toolchain.ToolchainPrivate createDefaultToolchain()
        Specified by:
        createDefaultToolchain in interface org.apache.maven.toolchain.ToolchainFactory
      • getProvidesProperties

        protected static java.util.Properties getProvidesProperties​(org.apache.maven.toolchain.model.ToolchainModel model)
        Get provides properties in in a way compatible with toolchains descriptor version 1.0 (Maven 2.0.9 to 3.2.3, where it is represented as Object/DOM) and descriptor version 1.1 (Maven 3.2.4 and later, where it is represented as Properties).
        Parameters:
        model - the toolchain model as read from XML
        Returns:
        the properties defined in the provides element
        See Also:
        MNG-5718
      • toProperties

        protected static java.util.Properties toProperties​(org.codehaus.plexus.util.xml.Xpp3Dom dom)
      • getBeanProperty

        protected static java.lang.Object getBeanProperty​(java.lang.Object obj,
                                                          java.lang.String property)