Methods Summary |
---|
protected java.util.Set | _getAttributeNames()
final Set<String> attrNames = super._getAttributeNames();
if ( hasJVMOptions() )
{
attrNames.add( JVM_OPTIONS_ATTR );
}
return attrNames;
|
public java.lang.Object | getAttribute(java.lang.String attrName)
Object result = null;
if ( JVM_OPTIONS_ATTR.equals( attrName ) )
{
result = getJVMOptions();
}
else
{
result = super.getAttribute( attrName );
}
return result;
|
protected java.lang.Class | getAttributeClass(java.lang.String attrName)
Class result = null;
if ( JVM_OPTIONS_ATTR.equals( attrName ) )
{
result = String[].class;
}
else
{
result = super.getAttributeClass( attrName );
}
return result;
|
public java.lang.String[] | getJVMOptions()
// presumably spaces are not allowed in a JVM option
final String[] result = getJavaConfigConfigBean().getJvmOptions();
return result;
|
private com.sun.enterprise.config.serverbeans.JavaConfig | getJavaConfigConfigBean()
return (com.sun.enterprise.config.serverbeans.JavaConfig)
getConfigBean();
|
private boolean | hasJVMOptions()
return hasValue( JVM_OPTIONS_ATTR );
|
public void | setAttribute(java.lang.String name, java.lang.Object value)
if ( JVM_OPTIONS_ATTR.equals( name ) )
{
setJVMOptions( (String[])value );
}
else
{
super.setAttribute( name, value );
}
|
public void | setJVMOptions(java.lang.String[] optionsIn)
// ensure no duplicates
final Set<String> optionsSet = GSetUtil.newUnmodifiableStringSet( optionsIn );
final String[] options = GSetUtil.toStringArray( optionsSet );
Arrays.sort( options );
getJavaConfigConfigBean().setJvmOptions( options );
|