Class DefaultProtobufToolchainFactory
java.lang.Object
org.xolstice.maven.toolchain.protobuf.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 Object
implements org.apache.maven.toolchain.ToolchainFactory
Based on
org.apache.maven.toolchain.java.DefaultJavaToolchainFactory
.- Since:
- 0.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.toolchain.ToolchainPrivate
org.apache.maven.toolchain.ToolchainPrivate
createToolchain
(org.apache.maven.toolchain.model.ToolchainModel model) protected static Object
getBeanProperty
(Object obj, String property) protected static Properties
getProvidesProperties
(org.apache.maven.toolchain.model.ToolchainModel model) Getprovides
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 Properties
toProperties
(org.codehaus.plexus.util.xml.Xpp3Dom dom)
-
Field Details
-
logger
@Requirement private org.codehaus.plexus.logging.Logger logger
-
-
Constructor Details
-
DefaultProtobufToolchainFactory
public DefaultProtobufToolchainFactory()
-
-
Method Details
-
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 interfaceorg.apache.maven.toolchain.ToolchainFactory
- Throws:
org.apache.maven.toolchain.MisconfiguredToolchainException
-
createDefaultToolchain
public org.apache.maven.toolchain.ToolchainPrivate createDefaultToolchain()- Specified by:
createDefaultToolchain
in interfaceorg.apache.maven.toolchain.ToolchainFactory
-
getProvidesProperties
protected static Properties getProvidesProperties(org.apache.maven.toolchain.model.ToolchainModel model) Getprovides
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:
-
toProperties
-
getBeanProperty
-