All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ymate.platform.plugin.AbstractPlugin Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
/*
 * Copyright 2007-2107 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.ymate.platform.plugin;

/**
 * 

* AbstractPlugin *

*

* 插件启动器接口抽象实现类; *

* * @author 刘镇([email protected]) * @version 0.0.0 * * * * * * * * * * * *
版本号动作修改人修改时间
0.0.0创建类刘镇2012-4-20下午5:30:30
*/ public abstract class AbstractPlugin implements IPlugin { private PluginContext __context; /* (non-Javadoc) * @see net.ymate.platform.plugin.IPlugin#doInit(net.ymate.platform.plugin.PluginContext) */ public void doInit(PluginContext context) throws PluginException { this.__context = context; } public IPluginFactory getPluginFactory() { return this.__context.getPluginFactory(); } /* (non-Javadoc) * @see net.ymate.platform.plugin.IPlugin#getPluginMeta() */ public PluginMeta getPluginMeta() { return this.__context.getPluginMeta(); } /* (non-Javadoc) * @see net.ymate.platform.plugin.IPlugin#destroy() */ public void destroy() throws PluginException { this.doStop(); } /** * @return the pluginContext */ protected PluginContext getPluginContext() { return __context; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy