@Component(role=org.apache.maven.toolchain.ToolchainFactory.class, hint="protobuf", description="A default factory for \'protobuf\' toolchains") public class DefaultProtobufToolchainFactory extends Object implements ToolchainFactory
org.apache.maven.toolchain.java.DefaultJavaToolchainFactory.| Constructor and Description |
|---|
DefaultProtobufToolchainFactory() |
| Modifier and Type | Method and Description |
|---|---|
ToolchainPrivate |
createDefaultToolchain() |
ToolchainPrivate |
createToolchain(ToolchainModel model) |
protected static Object |
getBeanProperty(Object obj,
String property) |
protected static Properties |
getProvidesProperties(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 Properties |
toProperties(Xpp3Dom dom) |
public ToolchainPrivate createToolchain(ToolchainModel model) throws MisconfiguredToolchainException
createToolchain in interface ToolchainFactoryMisconfiguredToolchainExceptionpublic ToolchainPrivate createDefaultToolchain()
createDefaultToolchain in interface ToolchainFactoryprotected static Properties getProvidesProperties(ToolchainModel model)
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).model - the toolchain model as read from XMLprovides elementprotected static Properties toProperties(Xpp3Dom dom)
Copyright © 2016–2018 Maven Protocol Buffers Plugin Authors. All rights reserved.