Package org.xmlBlaster.util.plugin

Examples of org.xmlBlaster.util.plugin.PluginInfo


    * therefore the plugin of same typeVersion is only loaded once.
    * @param typeVersion The type and version e.g. "Priority,1.0"
    * @return null if no plugin was loaded
    */
   public I_MsgDispatchInterceptor getPlugin(String typeVersion) throws XmlBlasterException {
      PluginInfo pluginInfo = new PluginInfo(getGlobal(), this, typeVersion);
      pluginInfo.setUserData(typeVersion); // transport to postInstantiate() without any modification
      return (I_MsgDispatchInterceptor)getPluginObject(pluginInfo);
   }
View Full Code Here


      try {
         if (log.isLoggable(Level.FINE)) log.fine("Trying Class.forName('"+param[0]+"') ...");
         Class cl = java.lang.Class.forName(param[0]);
         clntPlugin = (I_ClientPlugin)cl.newInstance();
         PluginInfo pluginInfo = new PluginInfo(glob, null, this.getType(), this.getVersion());
         clntPlugin.init(glob, pluginInfo);
         if (log.isLoggable(Level.FINE)) log.fine("Found I_ClientPlugin '"+param[0]+"'");
      }
      catch (IllegalAccessException e) {
         if (log.isLoggable(Level.FINE)) log.fine("The plugin class '"+param[0]+"' is not accessible\n -> check the plugin name and/or the CLASSPATH");
View Full Code Here

    */
   public I_XmlBlasterConnection getPlugin(String type, String version) throws XmlBlasterException {
      if (log.isLoggable(Level.FINER)) log.finer("Creating instance of " + createPluginPropertyKey(type, version));

      // We need a new instance every time! (no caching in base class)
      PluginInfo pluginInfo = new PluginInfo(glob, this, type, version);
      I_XmlBlasterConnection driver = (I_XmlBlasterConnection)super.instantiatePlugin(pluginInfo, false);
      if (driver == null) {
         log.warning("Creating instance of " + createPluginPropertyKey(type, version) + " failed, no such plugin found.");
      }
      return driver;
View Full Code Here

    */
   public I_CallbackServer getPlugin(String type, String version) throws XmlBlasterException {
      if (log.isLoggable(Level.FINER)) log.finer("Creating instance of " + createPluginPropertyKey(type, version));

      // We need a new instance every time! (no caching in base class)
      PluginInfo pluginInfo = new PluginInfo(glob, this, type, version);
      I_CallbackServer driver = (I_CallbackServer)super.instantiatePlugin(pluginInfo, false);
      if (driver == null) log.warning("Creating instance of " + createPluginPropertyKey(type, version) + " failed, no such plugin found.");
      return driver;
   }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.plugin.PluginInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.