String[] tokens = getStringArray(key);
String[] tokens = getStringArray(key);
return defaults.getStringArray(key); } else { return new String[0];
return defaults.getStringArray(key); } else { return new String[0];
paths = configuration.getStringArray("path"); if (paths == null || paths.length == 0)
/** * Returns a list of available database pool names.<p> * * @param configuration the configuration to read the pool names from * * @return a list of database pool names */ public static List getDbPoolUrls(ExtendedProperties configuration) { List dbPoolNames = new ArrayList(); String[] driverPoolNames = configuration.getStringArray(CmsDriverManager.CONFIGURATION_DB + ".pools"); for (int i = 0; i < driverPoolNames.length; i++) { dbPoolNames.add(getDbPoolName(configuration, driverPoolNames[i])); } return dbPoolNames; }
@Override public void init() { String[] badPackages = this.runtimeServices.getConfiguration().getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_PACKAGES); String[] badClasses = this.runtimeServices.getConfiguration().getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_CLASSES); this.introspector = new SecureIntrospector(badClasses, badPackages, this.log); }
/** * init - generates the Introspector. As the setup code * makes sure that the log gets set before this is called, * we can initialize the Introspector using the log object. */ public void init() { String [] badPackages = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_PACKAGES); String [] badClasses = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_CLASSES); introspector = new SecureIntrospectorImpl(badClasses, badPackages, log); }
/** * init - generates the Introspector. As the setup code * makes sure that the log gets set before this is called, * we can initialize the Introspector using the log object. */ public void init() { String [] badPackages = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_PACKAGES); String [] badClasses = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_CLASSES); introspector = new SecureIntrospectorImpl(badClasses, badPackages, log); }
String[] tokens = getStringArray(key);
String[] tokens = getStringArray(key);
String[] tokens = getStringArray(key);
String[] tokens = getStringArray(key);
/** * init - generates the Introspector. As the setup code * makes sure that the log gets set before this is called, * we can initialize the Introspector using the log object. */ public void init() { String [] badPackages = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_PACKAGES); String [] badClasses = runtimeServices.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_CLASSES); introspector = new SecureIntrospectorImpl(badClasses, badPackages, log); }
return defaults.getStringArray(key); } else { return new String[0];
return defaults.getStringArray(key); } else { return new String[0];
return defaults.getStringArray(key); } else { return new String[0];
return defaults.getStringArray(key); } else { return new String[0];
return defaults.getStringArray(key); } else { return new String[0];
/** * {@inheritDoc} * <p> * This implementation initializes the array of uberspectors. * </p> * * @see org.apache.velocity.util.introspection.Uberspect#init() */ @Override public void init() { this.log.debug("Initializing the linking uberspector."); // Create the array String[] arrayClassnames = this.runtime.getConfiguration().getStringArray(UBERSPECT_ARRAY_CLASSNAMES); this.uberspectors = new ArrayList<Uberspect>(arrayClassnames.length); for (String classname : arrayClassnames) { initializeUberspector(classname); } // If the chain is empty, use a SecureUberspector if (this.uberspectors.isEmpty()) { this.log.error("No uberspectors defined! " + "This uberspector is just a placeholder that relies on at least one real uberspector " + "to actually allow method calls. Using SecureUberspector instead as a fallback."); initializeUberspector(SecureUberspector.class.getCanonicalName()); } }