org.apache.maven.dotnet.vendor
Class VendorFactory

java.lang.Object
  extended by org.apache.maven.dotnet.vendor.VendorFactory

public final class VendorFactory
extends java.lang.Object

Provides services for returning an instance of Vendor based on the OS or name.

Author:
Shane Isbell

Method Summary
static Vendor createVendorFromName(java.lang.String vendorName)
          Returns a vendor instance for the given vendor name: MICROSOFT, DotGNU, MONO.
static Vendor getDefaultVendorForOS()
          Returns the default vendor of the operating system on which the application is running: Microsoft for windows and Mono for all others.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultVendorForOS

public static Vendor getDefaultVendorForOS()
                                    throws PlatformUnsupportedException
Returns the default vendor of the operating system on which the application is running: Microsoft for windows and Mono for all others.

Returns:
the default vendor of the operating system on which the application is running
Throws:
PlatformUnsupportedException - if the default vendor cannot be determined

createVendorFromName

public static Vendor createVendorFromName(java.lang.String vendorName)
                                   throws VendorUnsupportedException
Returns a vendor instance for the given vendor name: MICROSOFT, DotGNU, MONO.

Parameters:
vendorName - the name of a vendor
Returns:
a vendor instance for the given vendor name: MICROSOFT, DotGNU, MONO
Throws:
VendorUnsupportedException - if the vendor is not known
java.lang.NullPointerException - if the vendor name parameter is null


Copyright © 2007 NMaven. All Rights Reserved.