Interface JavaConfig
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,JvmOptionBag,org.jvnet.hk2.config.types.PropertyBag
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of thebytecodePreprocessorsproperty.Gets the value of theclasspathPrefixproperty.Gets the value of theclasspathSuffixproperty.Gets the value of thedebugEnabledproperty.Gets the value of thedebugOptionsproperty.Gets the value of theenvClasspathIgnoredproperty.Gets the value of thejavacOptionsproperty.Returns the javac options for deployment.Gets the value of thejavaHomeproperty.Gets the value of thenativeLibraryPathPrefixproperty.Gets the value of thenativeLibraryPathSuffixproperty.Gets the value of theprofilerproperty.List<org.jvnet.hk2.config.types.Property> Properties as perPropertyBagGets the value of thermicOptionsproperty.Gets the value of theserverClasspathproperty.Gets the value of thesystemClasspathproperty.voidsetBytecodePreprocessors(String bytecodePreprocessors) Sets the value of thebytecodePreprocessorsproperty.voidsetClasspathPrefix(String classpathPrefix) Sets the value of theclasspathPrefixproperty.voidsetClasspathSuffix(String classpathSuffix) Sets the value of theclasspathSuffixproperty.voidsetDebugEnabled(String debugEnabled) Sets the value of thedebugEnabledproperty.voidsetDebugOptions(String debugOptions) Sets the value of thedebugOptionsproperty.voidsetEnvClasspathIgnored(String envClasspathIgnored) Sets the value of theenvClasspathIgnoredproperty.voidsetJavacOptions(String javacOptions) Sets the value of thejavacOptionsproperty.voidsetJavaHome(String javaHome) Sets the value of thejavaHomeproperty.voidsetNativeLibraryPathPrefix(String pathPrefix) Sets the value of thenativeLibraryPathPrefixproperty.voidsetNativeLibraryPathSuffix(String pathSuffix) Sets the value of thenativeLibraryPathSuffixproperty.voidsetProfiler(Profiler profiler) Sets the value of theprofilerproperty.voidsetRmicOptions(String rmicOptions) Sets the value of thermicOptionsproperty.voidsetServerClasspath(String serverClasspath) Sets the value of theserverClasspathproperty.voidsetSystemClasspath(String systemClasspath) Sets the value of thesystemClasspathproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface com.sun.enterprise.config.serverbeans.JvmOptionBag
contains, getJvmOptions, getStartingWith, getXmsMegs, getXmxMegs, setJvmOptionsMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Method Details
-
getJavaHome
String getJavaHome()Gets the value of thejavaHomeproperty.Specifies the installation directory for Java runtime. JDK 1.4 or higher is supported.
- Returns:
- possible object is
String
-
setJavaHome
Sets the value of thejavaHomeproperty.- Parameters:
javaHome- allowed object isString- Throws:
PropertyVetoException
-
getDebugEnabled
String getDebugEnabled()Gets the value of thedebugEnabledproperty.If set to
true, the server starts up in debug mode ready for attaching with a JPDA based debugger.- Returns:
- possible object is
String
-
setDebugEnabled
Sets the value of thedebugEnabledproperty.- Parameters:
debugEnabled- allowed object isString- Throws:
PropertyVetoException
-
getDebugOptions
String getDebugOptions()Gets the value of thedebugOptionsproperty.JPDA based debugging options string.
- Returns:
- possible object is
String
-
setDebugOptions
Sets the value of thedebugOptionsproperty.- Parameters:
debugOptions- allowed object isString- Throws:
PropertyVetoException
-
getRmicOptions
String getRmicOptions()Gets the value of thermicOptionsproperty.Options string passed to RMI compiler, at application deployment time.
- Returns:
- possible object is
String
-
setRmicOptions
Sets the value of thermicOptionsproperty.- Parameters:
rmicOptions- allowed object isString- Throws:
PropertyVetoException
-
getJavacOptions
String getJavacOptions()Gets the value of thejavacOptionsproperty.Options string passed to Java compiler, at application deployment time.
- Returns:
- possible object is
String
-
setJavacOptions
Sets the value of thejavacOptionsproperty.- Parameters:
javacOptions- allowed object isString- Throws:
PropertyVetoException
-
getClasspathPrefix
String getClasspathPrefix()Gets the value of theclasspathPrefixproperty.- Returns:
- possible object is
String
-
setClasspathPrefix
Sets the value of theclasspathPrefixproperty.A java classpath string that is prefixed to server-classpath.
- Parameters:
classpathPrefix- allowed object isString- Throws:
PropertyVetoException
-
getClasspathSuffix
String getClasspathSuffix()Gets the value of theclasspathSuffixproperty.A java classpath string that is appended to server-classpath.
- Returns:
- possible object is
String
-
setClasspathSuffix
Sets the value of theclasspathSuffixproperty.- Parameters:
classpathSuffix- allowed object isString- Throws:
PropertyVetoException
-
getServerClasspath
String getServerClasspath()Gets the value of theserverClasspathproperty.A java classpath string that specifies the classes needed by the Application server. Do not expect users to change this under normal conditions. The shared application server classloader forms the final classpath by concatenating
classpath-prefix,${INSTALL_DIR}/lib,server-classpath, andclasspath-suffix.- Returns:
- possible object is
String
-
setServerClasspath
Sets the value of theserverClasspathproperty.- Parameters:
serverClasspath- allowed object isString- Throws:
PropertyVetoException
-
getSystemClasspath
String getSystemClasspath()Gets the value of thesystemClasspathproperty.This classpath string supplied to the jvm at server startup. Contains
appserv-launch.jarby default. Users may add to this classpath.- Returns:
- possible object is
String
-
setSystemClasspath
Sets the value of thesystemClasspathproperty.- Parameters:
systemClasspath- allowed object isString- Throws:
PropertyVetoException
-
getNativeLibraryPathPrefix
String getNativeLibraryPathPrefix()Gets the value of thenativeLibraryPathPrefixproperty.Prepended to the native library path, which is constructed internally.
Internally, the native library path is automatically constructed to be a concatenation of Application Server installation relative path for its native shared libraries, standard JRE native library path, the shell environment setting (
LD-LIBRARY-PATHon Unix) and any path that may be specified in the profile element.- Returns:
- possible object is
String
-
setNativeLibraryPathPrefix
Sets the value of thenativeLibraryPathPrefixproperty.- Parameters:
pathPrefix- allowed object isString- Throws:
PropertyVetoException
-
getNativeLibraryPathSuffix
String getNativeLibraryPathSuffix()Gets the value of thenativeLibraryPathSuffixproperty.Appended to the native library path, which is constructed as described above.
- Returns:
- possible object is
String
-
setNativeLibraryPathSuffix
Sets the value of thenativeLibraryPathSuffixproperty.- Parameters:
pathSuffix- allowed object isString- Throws:
PropertyVetoException
-
getBytecodePreprocessors
String getBytecodePreprocessors()Gets the value of thebytecodePreprocessorsproperty.A comma separated list of classnames, each of which must implement the
com.sun.appserv.BytecodePreprocessorinterface. Each of the specified preprocessor class will be called in the order specified. At the moment the compelling use is for a 3rd party Performance Profiling tool.- Returns:
- possible object is
String
-
setBytecodePreprocessors
Sets the value of thebytecodePreprocessorsproperty.- Parameters:
bytecodePreprocessors- allowed object isString- Throws:
PropertyVetoException
-
getEnvClasspathIgnored
String getEnvClasspathIgnored()Gets the value of theenvClasspathIgnoredproperty.If set to
false, theCLASSPATHenvironment variable will be read and appended to the Application Server classpath, which is constructed as described above. TheCLASSPATHenvironment variable will be added after theclasspath-suffix, at the very end.- Returns:
- possible object is
String
-
setEnvClasspathIgnored
Sets the value of theenvClasspathIgnoredproperty.- Parameters:
envClasspathIgnored- allowed object isString- Throws:
PropertyVetoException
-
getProfiler
Profiler getProfiler()Gets the value of theprofilerproperty.- Returns:
- possible object is
Profiler
-
setProfiler
Sets the value of theprofilerproperty.- Parameters:
profiler- allowed object isProfiler- Throws:
PropertyVetoException
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
getJavacOptionsAsList
Returns the javac options for deployment. The options can be anything except "-d", "-classpath" and "-cp". It tokenizes the options by blank space between them. It does not to detect options like "-g -g -g" since javac handles it.- Returns:
- javac options as of a list of
String
-