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.5.21.241219-a6a144ea07c497c3a9a1be842408e852afb458be
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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns 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
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Example
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