⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultpropertiesprovider.java

📁 struts 2 核心包 的源码 有错误是难免的
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   DefaultPropertiesProvider.java

package org.apache.struts2.config;

import com.opensymphony.xwork2.config.Configuration;
import com.opensymphony.xwork2.config.ConfigurationException;
import com.opensymphony.xwork2.inject.ContainerBuilder;
import com.opensymphony.xwork2.util.location.LocatableProperties;

// Referenced classes of package org.apache.struts2.config:
//			LegacyPropertiesConfigurationProvider, PropertiesSettings

public class DefaultPropertiesProvider extends LegacyPropertiesConfigurationProvider
{

	public DefaultPropertiesProvider()
	{
	}

	public void destroy()
	{
	}

	public void init(Configuration configuration1)
		throws ConfigurationException
	{
	}

	public void register(ContainerBuilder builder, LocatableProperties props)
		throws ConfigurationException
	{
		Settings defaultSettings = null;
		try
		{
			defaultSettings = new PropertiesSettings("org/apache/struts2/default");
		}
		catch (Exception e)
		{
			throw new ConfigurationException("Could not find or error in org/apache/struts2/default.properties", e);
		}
		loadSettings(props, defaultSettings);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -