org.fuin.utils4swing.appstarter
Class ClasspathJarFileEntry

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

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

Single JAR to be added to the classpath.


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

ClasspathJarFileEntry

public ClasspathJarFileEntry(java.lang.String file)
Constructor with filename.

Parameters:
file - Jar path and filename.

ClasspathJarFileEntry

public ClasspathJarFileEntry(java.io.File file)
Constructor with file reference.

Parameters:
file - Jar file - Cannot be null and must exist.
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 © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.