📄 mguardianplugin.java
字号:
package net.jumperz.app.MGuardian.plugin;
import java.util.*;
import java.io.*;
import net.jumperz.net.*;
import net.jumperz.app.MGuardian.*;
public abstract class MGuardianPlugin
{
public abstract Map execute( Map sessionInfo ) throws IOException;
protected Properties control = MConfig.getInstance().getControlProperties();
//--------------------------------------------------------------------------------
public void startup()
throws IOException
{
// default implementation
// do nothing
}
//--------------------------------------------------------------------------------
public void shutdown()
{
// default implementation
// do nothing
}
//--------------------------------------------------------------------------------
protected String getRequiredProperty( String key )
throws IOException
{
String property = control.getProperty( key );
if( property == null )
{
throw new IOException( "'" + key + "' must be defined in the 'control' file." );
}
return property;
}
//--------------------------------------------------------------------------------
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -