Methods Summary |
---|
public static com.sun.enterprise.ServerConfiguration | getConfiguration()
if(serverconfig == null) {
serverconfig = new ServerConfiguration();
}
return serverconfig;
|
public static com.sun.enterprise.repository.J2EEResourceFactory | getJ2EEResourceFactory()
/* IASRI #4626188
return new J2EEResourceFactoryImpl();
*/
// START OF IASRI #4626188
return new IASJ2EEResourceFactoryImpl();
// END OF IASRI #4626188
|
public java.lang.String[] | getKeys(java.lang.String index)This method returns all the keys for a given index.
String[] keys = null;
try {
keys = config.getKeys(index);
} catch(Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.getkey_exception",e);
// END OF IASRI 4660742
}
return keys;
|
public java.lang.Object | getObject(java.lang.String key)This method gets an Object associated with the given key.
Object obj = null;
try {
obj = config.getObject(key);
} catch (Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.getobject_exception",e);
// END OF IASRI 4660742
}
return obj;
|
public java.util.Properties | getProperties(java.lang.String index)Return the subset of properties for a given index.
Properties props = new Properties();
try {
String[] keys = config.getKeys(index);
for (int i=0; i<keys.length; i++) {
props.put(keys[i], getProperty(keys[i]));
}
} catch (Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.get_put_key_exception",e);
// END OF IASRI 4660742
}
return props;
|
public java.lang.String | getProperty(java.lang.String key)This method gets a property value associated with the given key.
String val = null;
try {
val = config.getProperty(key);
} catch (Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.getpropertry_exception",e);
// END OF IASRI 4660742
}
return val;
|
public java.lang.String | getProperty(java.lang.String key, java.lang.String defaultvalue)This method gets a property value associated with the given key.
String val = defaultvalue;
try {
val = config.getProperty(key);
} catch (Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.getpropertry_exception",e);
// END OF IASRI 4660742
}
if(val != null) {
return val;
} else {
return defaultvalue;
}
|
public void | removeObject(java.lang.String key)
try {
if (remote) {
config.removeObject(key);
} else {
throw new IllegalStateException("Cannot remove objects in local mode");
}
} catch(Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.remove_object_exception",e);
// END OF IASRI 4660742
}
|
public void | removeProperty(java.lang.String key)
try {
if (remote) {
config.removeProperty(key);
} else {
throw new IllegalStateException("Cannot remove properties in local mode");
}
} catch(Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.remove_property_exception",e);
// END OF IASRI 4660742
}
|
public void | setObject(java.lang.String key, java.lang.Object obj)This method associates an Object with the given key.
try {
if (remote) {
config.setObject(key, obj);
} else {
throw new IllegalStateException("Cannot set objects in local mode");
}
} catch(Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.setobject_exception",e);
// END OF IASRI 4660742
}
|
public void | setProperty(java.lang.String key, java.lang.String value)This method associates a property value with the given key.
// IASRI 466074
// System.out.println("Setting Property: " + key + " value =" + value +
// " " + remote);
// START OF IASRI 4660742
// _logger.log(Level.FINE,"Setting Property: " + key + " value =" + value +
// " " + remote);
// END OF IASRI 4660742
try {
if (remote) {
config.setProperty(key, value);
} else {
throw new IllegalStateException("Cannot set properties n local mode");
}
} catch (Exception e) {
// IASRI 4660742 e.printStackTrace(System.err);
// START OF IASRI 4660742
_logger.log(Level.SEVERE,"enterprise.setpropertry_exception",e);
// END OF IASRI 4660742
}
|