defaultpropertiesprovider.java

来自「struts 2 核心包 的源码 有错误是难免的」· Java 代码 · 共 47 行

JAVA
47
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?