Click or drag to resize

ClassPathBuilder Class

An helper class to build ClassPath
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeClassPathBuilder

Namespace:  MASES.JCOBridge.C2JBridge
Assembly:  C2JBridge (in C2JBridge.dll) Version: 2.4.12.220507-908f547aedf9e08963d047b783e99d6b2ed61a1c
Syntax
public class ClassPathBuilder

The ClassPathBuilder type exposes the following members.

Constructors
  NameDescription
Public methodClassPathBuilder
Initialize a new ClassPathBuilder instance
Top
Methods
  NameDescription
Public methodAdd(IEnumerableString)
Adds new elements to the ClassPathBuilder instance
Public methodAdd(String)
Adds new elements to the ClassPathBuilder instance
Public methodBuild
Builds and return the JVM classpath to be used in ClassPath
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberPathSeparator
The seaparator used in classpath. ; in Windows or : in Unix/Linux/MacOS
Public fieldStatic memberWildCard
The seaparator used in classpath. ; in Windows or : in Unix/Linux/MacOS
Top
Extension Methods
Examples
This is a basic example showing ClassPathBuilder class usage
C#
class JVMWrapperApp : SetupJVMWrapper
{
    public override string ClassPath
    {
         get
         {
              return new ClassPathBuilder(@"../PathToJars/*.jar", @"../OtherPathToJars/*").Build();
         }
    }

}
See Also