SystemProperties.java revision ca66273b61a8889f097081b01b6ff9a5f5801064
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * The contents of this file are subject to the terms
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * of the Common Development and Distribution License
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * (the License). You may not use this file except in
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * compliance with the License.
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * You can obtain a copy of the License at
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * https://opensso.dev.java.net/public/CDDLv1.0.html or
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * See the License for the specific language governing
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * permission and limitations under the License.
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * When distributing Covered Code, include this CDDL
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * Header Notice in each file and include the License file
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * If applicable, add the following below the CDDL Header,
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * with the fields enclosed by brackets [] replaced by
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * your own identifying information:
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * "Portions Copyrighted [year] [name of copyright owner]"
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * $Id: SystemProperties.java,v 1.21 2009/10/12 17:55:06 alanchu Exp $
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk * Portions Copyrighted 2010-2013 ForgeRock, Inc.
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenkimport com.sun.identity.coretoken.interfaces.AMTokenRepository;
* then a file, <code>AMConfig.properties</code> in the CLASSPATH accessible
* flat file <code>AMConfig.properties</code>.
public class SystemProperties {
private static boolean sitemonitorDisabled = false;
private static void initAttributeMapping() {
private static long lastModified;
.toLowerCase();
} catch (MissingResourceException e) {
val);
return (answer);
return answer;
{ return defaultValue; }
return properties;
return properties;
return getAll();
throws MissingResourceException {
while (e.hasMoreElements()) {
public static void initializeProperties(
boolean reset)
public static void initializeProperties(
boolean reset,
boolean withDefaults) {
if (withDefaults) {
if (!reset) {
public static void initializeProperties(
public static long lastModified() {
return (lastModified);
return (initError);
return (initSecondaryError);
return instanceName;
public static boolean isServerMode() {
return attributeMap;