|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetExecutableFactory
Provides services to obtain executables. This interface is intended to be used by AbstractMojo
implementations to obtain the appropriate executable or compiler.
Field Summary | |
---|---|
static java.lang.String |
ROLE
Role used to register component implementations with the container. |
Method Summary | |
---|---|
CompilerExecutable |
getCompilerExecutableFor(CompilerRequirement compilerRequirement,
CompilerConfig compilerConfig,
org.apache.maven.project.MavenProject project,
java.io.File assemblyPath)
Returns an executable for compiling .NET applications. |
NetExecutable |
getJavaExecutableFromRepository(VendorInfo vendorInfo,
java.util.List<java.lang.String> commands)
|
NetExecutable |
getNetExecutableFor(java.lang.String vendor,
java.lang.String frameworkVersion,
java.lang.String profile,
java.util.List<java.lang.String> commands,
java.io.File netHome)
Returns an executable that matches the vendor, framework version and profile. |
NetExecutable |
getNetExecutableFromRepository(java.lang.String groupId,
java.lang.String artifactId,
VendorInfo vendorInfo,
java.io.File localRepository,
java.util.List<java.lang.String> commands,
boolean isIsolatedAppDomain)
Returns an executable that resides within a maven repository. |
NetExecutable |
getPluginLoaderFor(java.lang.String groupId,
java.lang.String artifactId,
VendorInfo vendorInfo,
java.lang.String localRepository,
java.io.File parameterFile,
java.lang.String mojoName)
Returns a plugin loader for loading and executing a .NET plugin. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
NetExecutable getNetExecutableFor(java.lang.String vendor, java.lang.String frameworkVersion, java.lang.String profile, java.util.List<java.lang.String> commands, java.io.File netHome) throws PlatformUnsupportedException
vendor
- the vendor of the executableframeworkVersion
- the version of the .NET framework that the executable works underprofile
- the profile of the executable plugin. This is used to differentiate an executable that
matches the same platform and framework version.commands
- the user-defined command options to use with the executablenetHome
- the install root of the .NET framework
PlatformUnsupportedException
- if no executable is foundNetExecutable getNetExecutableFromRepository(java.lang.String groupId, java.lang.String artifactId, VendorInfo vendorInfo, java.io.File localRepository, java.util.List<java.lang.String> commands, boolean isIsolatedAppDomain) throws PlatformUnsupportedException
groupId
- the group ID of the executable artifact (as specified within the maven repo)artifactId
- the artifact ID of the executable artifact (as specified within the maven repo)vendorInfo
- the additional vendor information used to decide how to execute the net executablelocalRepository
- the local maven repository where the executable resides.isIsolatedAppDomain
- the executable can load up assemblies into an isolated application domain. This should
be set to true if the application needs to load up assemblies into another app domain
and to remotly invoke methods on classes in the other app domain, otherwise it should be
set to false.
PlatformUnsupportedException
- if no executable is foundNetExecutable getJavaExecutableFromRepository(VendorInfo vendorInfo, java.util.List<java.lang.String> commands) throws PlatformUnsupportedException
vendorInfo
- commands
-
PlatformUnsupportedException
CompilerExecutable getCompilerExecutableFor(CompilerRequirement compilerRequirement, CompilerConfig compilerConfig, org.apache.maven.project.MavenProject project, java.io.File assemblyPath) throws PlatformUnsupportedException
compilerRequirement
- the requirements for the compilercompilerConfig
- the configuration for the compilerproject
- the maven projectassemblyPath
- an optional parameter for replacing the system assemblies
PlatformUnsupportedException
- if no executable is foundNetExecutable getPluginLoaderFor(java.lang.String groupId, java.lang.String artifactId, VendorInfo vendorInfo, java.lang.String localRepository, java.io.File parameterFile, java.lang.String mojoName) throws PlatformUnsupportedException
groupId
- the group ID of the executable artifact (as specified within the maven repo)artifactId
- the artifact ID of the executable artifact (as specified within the maven repo)vendorInfo
- the additional vendor information used to decide how to execute the net executablelocalRepository
- the local maven repository where the executable resides.parameterFile
- the file containing parameter information to inject into the .NET pluginmojoName
- the name of the .NET Mojo implementation
PlatformUnsupportedException
- if no executable is found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |