/** * @see ResourceLoader#init(org.apache.velocity.util.ExtProperties) */ public void init(ExtProperties configuration) { log.trace("URLResourceLoader: initialization starting."); roots = configuration.getStringArray("root"); if (log.isDebugEnabled()) { for (String root : roots) { log.debug("URLResourceLoader: adding root '{}'", root); } } timeout = configuration.getInt("timeout", -1); // init the template paths map templateRoots = new HashMap(); log.trace("URLResourceLoader: initialization complete."); }
/** * 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 = rsvc.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_PACKAGES); String [] badClasses = rsvc.getConfiguration() .getStringArray(RuntimeConstants.INTROSPECTOR_RESTRICT_CLASSES); introspector = new SecureIntrospectorImpl(badClasses, badPackages, log); }
String[] tokens = getStringArray(key);
return defaults.getStringArray(key);
String[] userdirective = configuration.getStringArray("userdirective");
String[] referenceinsertion = configuration.getStringArray(RuntimeConstants.EVENTHANDLER_REFERENCEINSERTION); if ( referenceinsertion != null ) String[] methodexception = configuration.getStringArray(RuntimeConstants.EVENTHANDLER_METHODEXCEPTION); if ( methodexception != null ) String[] includeHandler = configuration.getStringArray(RuntimeConstants.EVENTHANDLER_INCLUDE); if ( includeHandler != null ) String[] invalidReferenceSet = configuration.getStringArray(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES); if ( invalidReferenceSet != null )
protected void readToolboxes(ExtProperties factory) { String[] scopes = factory.getStringArray("toolbox"); for (String scope : scopes) { ToolboxConfiguration toolbox = new ToolboxConfiguration(); toolbox.setScope(scope); addToolbox(toolbox); ExtProperties toolboxProps = factory.subset(scope); readTools(toolboxProps, toolbox); readProperties(toolboxProps, toolbox); } }
String[] uberspectors = configuration.getStringArray(RuntimeConstants.UBERSPECT_CLASSNAME); for (String rm : uberspectors)