org.fuin.utils4swing.appstarter
Class ClasspathBinDirEntry

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

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

Directory with several classes ("bin" or "classes" folder) to be added to the classpath.


Field Summary
static java.lang.String TYPE
          Unique type name.
 
Constructor Summary
ClasspathBinDirEntry(java.io.File dir)
          Constructor with directory reference.
ClasspathBinDirEntry(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

ClasspathBinDirEntry

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

Parameters:
dir - Path.

ClasspathBinDirEntry

public ClasspathBinDirEntry(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.