/* (non-Javadoc)
@see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
485623
@Override
    public void afterPropertiesSet() throws Exception {
        this.transactionTemplate = new TransactionTemplate(this.transactionManager);
        this.transactionTemplate.setPropagationBehavior(
                TransactionTemplate.PROPAGATION_REQUIRES_NEW);
        this.transactionTemplate.setReadOnly(true);
        this.transactionTemplate.afterPropertiesSet();

        this.runDatabaseTests();
        if (LOG.isDebugEnabled()) LOG.debug(this.toString());
    }
446582
public void setProperties(Properties props) throws Exception {
		// Use reflection to read in all possible properties of int, String or boolean.
		for (Method method: BoneCPConfig.class.getDeclaredMethods()){
			String tmp = null;
			if (method.getName().startsWith("is")){
				tmp = lowerFirst(method.getName().substring(2));
			} else if (method.getName().startsWith("set")){
				tmp = lowerFirst(method.getName().substring(3));
			} else {
				continue;
			}

			if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(int.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					try{
						method.invoke(this, Integer.parseInt(val));
					} catch (NumberFormatException e){
						// do nothing, use the default value
					}
				}
			} else if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(long.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					try{
						method.invoke(this, Long.parseLong(val));
					} catch (NumberFormatException e){
						// do nothing, use the default value
					}
				}
			} else if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(String.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					method.invoke(this, val);
				}
			} if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(boolean.class)){
				String val = props.getProperty(tmp);
				if (val == null){
					val = props.getProperty("bonecp."+tmp); // hibernate provider style
				}
				if (val != null) {
					method.invoke(this, Boolean.parseBoolean(val));
				}
			}
		}
	}
1228442
@Override
    public void setProperties(Property[] newProperties) {
        // unregister the listeners from previous properties
        for (Property prop : properties) {
            prop.removePropertyChangeListener(this);
        }

        // replace the current properties
        properties.clear();
        properties.addAll(Arrays.asList(newProperties));

        // add listeners
        for (Property prop : properties) {
            prop.addPropertyChangeListener(this);
        }

        buildModel();
    }
239305
@Override
	public void afterPropertiesSet() {

		super.afterPropertiesSet();

		boolean fallbackToSystemLocale = config.getBooleanProperty(
				JawrConstant.JAWR_LOCALE_GENERATOR_FALLBACK_TO_SYSTEM_LOCALE, DEFAULT_FALLBACK_TO_SYSTEM_LOCALE);

		String charsetName = config.getProperty(JawrConstant.JAWR_LOCALE_GENERATOR_RESOURCE_BUNDLE_CHARSET,
				DEFAULT_RESOURCE_BUNDLE_CHARSET);

		Charset charset = Charset.forName(charsetName);

		control = new MessageBundleControl(fallbackToSystemLocale, charset);
	}
899664
@Override
    public MapBeanBuilder set(String propertyName, Object value) {
        bean.put(propertyName, value);
        return this;
    }
269876
@Override
	public void afterPropertiesSet() throws Exception {
		if (cdxSource == null) {
			cdxSource = zipnumSource;
		}

		cdxLineFactory = new StandardCDXLineFactory(cdxFormat);
		// defaultCdxFormat = cdxLineFactory.getParseFormat();

		// if (authChecker != null && authChecker.getPublicCdxFields() != null)
		// {
		// publicCdxFields = new
		// FieldSplitFormat(authChecker.getPublicCdxFields());
		// }

		if (defaultParams == null) {
			defaultParams = new ZipNumParams(maxPageSize, maxPageSize, 0, false);
		}

		super.afterPropertiesSet();
	}
211350
public void afterPropertyChange(String propertyName) {
		if(propertyName.startsWith(RtfProperty.CHARACTER)) {
		} else {
			if(propertyName.startsWith(RtfProperty.PARAGRAPH)) {
			} else {
				if(propertyName.startsWith(RtfProperty.SECTION)) {
				} else {
					if(propertyName.startsWith(RtfProperty.DOCUMENT)) {

					}
				}
			}
		}		
	}
94807
@Override
    public void afterPropertiesSet() throws Exception {
        if (this.cacheKeyGenerator == null) {
            final AttributeBasedCacheKeyGenerator cacheKeyGenerator = new AttributeBasedCacheKeyGenerator();
            cacheKeyGenerator.setCacheKeyAttributes(this.cacheKeyAttributes);

            final IUsernameAttributeProvider usernameAttributeProvider = this.getUsernameAttributeProvider();
            final String usernameAttribute = usernameAttributeProvider.getUsernameAttribute();
            cacheKeyGenerator.setDefaultAttributeName(usernameAttribute);
            this.cacheKeyGenerator = cacheKeyGenerator;
        }
    }
924030
public void setProperties(Object bean, Map map) {
        checkInitalised();
        for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {
            Map.Entry entry = (Map.Entry) iter.next();
            String key = entry.getKey().toString();

            Object value = entry.getValue();
            setProperty(bean, key, value);
        }
    }
212972
@Override
	public void afterPropertiesSet() {

		super.afterPropertiesSet();
		StopWatch stopWatch = new StopWatch("initializing JS engine for Coffeescript");
		stopWatch.start();

		// Load JavaScript Script Engine
		String script = config.getProperty(JAWR_JS_GENERATOR_COFFEE_SCRIPT_LOCATION, DEFAULT_COFFEE_SCRIPT_JS_LOCATION);
		jsEngine = new JavascriptEngine(config.getJavascriptEngineName(JAWR_JS_GENERATOR_COFFEE_SCRIPT_JS_ENGINE));
		try(InputStream inputStream = getResourceInputStream(script)){
			jsEngine.evaluate("coffee-script.js", inputStream);
		} catch (IOException e) {
			throw new BundlingProcessException(e);
		}
		String strOptions = config.getProperty(JAWR_JS_GENERATOR_COFFEE_SCRIPT_OPTIONS, COFFEE_SCRIPT_DEFAULT_OPTIONS);
		options = jsEngine.execEval(strOptions);
		coffeeScript = jsEngine.execEval("CoffeeScript");
		stopWatch.stop();
		if (PERF_LOGGER.isDebugEnabled()) {
			PERF_LOGGER.debug(stopWatch.shortSummary());
		}
	}
766418
@Override
    public BeanBuilder<T> set(String propertyName, Object value) {
        return set(getMetaBean().metaProperty(propertyName), value);
    }
849724
@Override
    public void afterProjectsRead(final MavenSession session) throws MavenExecutionException {
        boolean anyProject = false;
        for (MavenProject project : session.getProjects()) {
            if (project.getPlugin("ceylon") != null
            	|| project.getPlugin("ceylon-maven-plugin") != null
            	|| "ceylon".equals(project.getArtifact().getArtifactHandler().getPackaging())
                || "car".equals(project.getArtifact().getArtifactHandler().getPackaging())
                || "ceylon-jar".equals(project.getArtifact().getArtifactHandler().getPackaging())
                || usesCeylonRepo(project)) {
            	anyProject = true;
            }
        }
        if (anyProject) {
        	logger.info("At least one project is using the Ceylon plugin. Preparing.");
        	findCeylonRepo(session);
        }
        logger.info("Adding Ceylon repositories to build");
        session.getRequest().setWorkspaceReader(
        		new CeylonWorkspaceReader(
        				session.getRequest().getWorkspaceReader(),
        				logger));
    }
182880
public void afterPropertiesSet() throws IOException {
        Map<String, String> finalConfig = new HashMap<String, String>();
        if (systemPropertyMode == SystemPropertyMode.MODE_FALLBACK) {
            finalConfig.putAll(lookupSystemProperties());
        }
        if (config != null) {
            finalConfig.putAll(config.getConfig());
        }
        if (lookupConfig) {
            // Merge all configs in the context in the reverse order
            Map<String, SpringJolokiaConfigHolder> configsMap = context.getBeansOfType(SpringJolokiaConfigHolder.class);
            List<SpringJolokiaConfigHolder> configs = new ArrayList<SpringJolokiaConfigHolder>(configsMap.values());
            Collections.sort(configs, new OrderComparator());
            for (SpringJolokiaConfigHolder c : configs) {
                if (c != config) {
                    finalConfig.putAll(c.getConfig());
                }
            }
        }
        if (systemPropertyMode == SystemPropertyMode.MODE_OVERRIDE) {
            finalConfig.putAll(lookupSystemProperties());
        }
        String autoStartS = finalConfig.remove("autoStart");
        boolean autoStart = true;
        if (autoStartS != null) {
            autoStart = Boolean.parseBoolean(autoStartS);
        }
        init(new JolokiaServerConfig(finalConfig),false);
        if (autoStart) {
            start();
        }
    }
1205219
public BasicSebConfiguration addSystemPropertiesAfter(String afterKey) {
		return (BasicSebConfiguration) addPropertiesAfter(afterKey, SYSTEM_PROPERTIES_KEY, System.getProperties());
	}
1367181
public void afterConstructor(PageContext pc, Variables parent) throws ApplicationException {
	pc.setVariablesScope(parent);
	this.afterConstructor = true;

	/*
	 * if(constructorUDFs!=null){ Iterator<Entry<Key, UDF>> it = constructorUDFs.entrySet().iterator();
	 * Map.Entry<Key, UDF> entry; Key key; UDFPlus udf; PageSource ps; while(it.hasNext()){
	 * entry=it.next(); key=entry.getKey(); udf=(UDFPlus) entry.getValue(); ps=udf.getPageSource();
	 * //if(ps!=null && ps.equals(getPageSource()))continue; // TODO can we avoid that udfs from the
	 * component itself are here? registerUDF(key, udf,false,true); } }
	 */
    }
299124
@Override
    public void afterInitialized(BaseComponent comp) {
        super.afterInitialized(comp);
        propertyGrid = PropertyGrid.create(null, comp, true);
        getPlugin().registerProperties(this, "provider", "group");
    }
1211945
@Override
	public void afterPropertiesSet() throws Exception {
		super.afterPropertiesSet();
		Assert.notNull(sql, "The SQL query must be provided");
		Assert.notNull(rowMapper, "RowMapper must be provided");
	}