org.fuin.utils4swing.appstarter
Class ClasspathJarsDirEntry

java.lang.Object
  extended by org.fuin.utils4swing.appstarter.ClasspathJarsDirEntry
All Implemented Interfaces:
ClasspathEntry

public final class ClasspathJarsDirEntry
extends java.lang.Object
implements ClasspathEntry

Directory with several JAR files to be added to the classpath.


Field Summary
static java.lang.String TYPE
          Unique type name.
 
Constructor Summary
ClasspathJarsDirEntry(java.io.File dir)
          Constructor with directory reference.
ClasspathJarsDirEntry(java.lang.String dir)
          Constructor with directory name.
 
Method Summary
 void addToClasspath()
          Adds the value to the classpath.
 java.lang.String getType()
          Returns a unique name for this type of entry.
 java.lang.String getValue()
          Returns the value of the entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
Unique type name.

See Also:
Constant Field Values
Constructor Detail

ClasspathJarsDirEntry

public ClasspathJarsDirEntry(java.lang.String dir)
Constructor with directory name.

Parameters:
dir - Path.

ClasspathJarsDirEntry

public ClasspathJarsDirEntry(java.io.File dir)
Constructor with directory reference.

Parameters:
dir - Directory.
Method Detail

getType

public final java.lang.String getType()
Returns a unique name for this type of entry.

Specified by:
getType in interface ClasspathEntry
Returns:
Name of the type.

getValue

public final java.lang.String getValue()
Returns the value of the entry.

Specified by:
getValue in interface ClasspathEntry
Returns:
Value depending on the type.

addToClasspath

public final void addToClasspath()
Adds the value to the classpath. Assures the entries is not added more than once.

Specified by:
addToClasspath in interface ClasspathEntry


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.