Ignore:
Timestamp:
Mar 8, 2007, 10:57:25 AM (16 years ago)
Author:
Johan Enell
Message:

fixed linkes
fixed some methodname tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/developerdoc/plugin_developer.xml

    r3170 r3175  
    335335              failed. Not setting a response is considered a failure by the core. From
    336336              the run method it is only allowed to use the
    337               <methodname>setDone</methodname>
    338               () or the
    339               <methodname>setError</methodname>
    340               () methods.
     337              <methodname>setDone()</methodname>
     338              or the
     339              <methodname>setError()</methodname>
     340              methods.
    341341            </para>
    342342            <example id="net.sf.basedb.core.plugin.Plugin.run">
     
    344344                Here is a skeleton that we recommend each plugin to use in it's
    345345                implementation of the
    346                 <methodname>run</methodname>
     346                <methodname>run()</methodname>
    347347                method
    348348              </title>
     
    397397                contains an implementation of this method which simply sets the
    398398                parameters passed to the
    399                 <methodname>init</methodname>
     399                <methodname>init()</methodname>
    400400                method to null
    401401              </title>
     
    459459              <classname>net.sf.basedb.core.Item</classname>
    460460              enumeration and the type is either
    461               <classname>Type.LIST</classname>
     461              <constant>Type.LIST</constant>
    462462              or
    463               <classname>Type.ITEM</classname>
     463              <constant>Type.ITEM</constant>
    464464              .
    465465            </para>
     
    467467              For example, the
    468468              <varname>GuiContext</varname>
    469               = (
     469              <literal>= (</literal>
    470470              <constant>Item.REPORTER</constant>
    471               ,
     471              <literal>,</literal>
    472472              <constant>Type.LIST</constant>
    473               ) tells a client application that this plugin can be plugged in whenever
    474               a list of reporters is displayed. The
     473              <literal>)</literal>
     474              tells a client application that this plugin can be plugged in whenever a
     475              list of reporters is displayed. The
    475476              <varname>GuiContext</varname>
    476477              = (
     
    910911              <classname>AbstractPlugin</classname>
    911912              class it is very easy to validate the parameters using it's
    912               <methodname>validateRequestParameters</methodname>
    913               () method. This method takes the same list of
     913              <methodname>validateRequestParameters()</methodname>
     914              method. This method takes the same list of
    914915              <classname>PluginParameter</classname>
    915916              's used in the
     
    923924              When the parameters have been validated they need to be stored. Once
    924925              again, it is very easy if you use one of the
    925               <classname>AbstractPlugin.</classname>
    926               <methodname>storeValue</methodname>
    927               () or
    928               <classname>AbstractPlugin.</classname>
    929               <methodname>storeValues</methodname>
    930               () methods.
     926              <methodname>AbstractPlugin.storeValue()</methodname>
     927              or
     928              <methodname>AbstractPlugin.storeValues()</methodname>
     929              methods.
    931930            </para>
    932931            <para>
    933932              The configure method works much like the
    934               <classname>Plugin.</classname>
    935               <methodname>run</methodname>
    936               () method. It must return the result in the
     933              <methodname>Plugin.run()</methodname>
     934              method. It must return the result in the
    937935              <classname>Response</classname>
    938936              object, i.e. it shouldn't trow any exceptions.
     
    982980            <para>
    983981              Note that the
    984               <methodname>setDone</methodname>
    985               () has a second parameter
     982              <methodname>setDone()</methodname>
     983              has a second parameter
    986984              <classname>Job.ExecutionTime</classname>
    987985              . It is an indication about how long time it will take to execute the
     
    990988              blocking the entire system. Please try to use this parameter wisely and
    991989              not use the
    992               <constant>SHORT</constant>
     990              <constant>Job.ExecutionTime.SHORT</constant>
    993991              value out of old habit all the time.
    994992            </para>
    995993            <para>
    996994              The response also has a
    997               <methodname>setContinue</methodname>
    998               () method which tells the core that the plugin needs more parameters,
     995              <methodname>setContinue()</methodname>
     996              method which tells the core that the plugin needs more parameters,
    999997              i.e. the core will then call
    1000               <methodname>getRequestInformation</methodname>
    1001               () again with the new command, let the user enter values, and the call
    1002               <methodname>configure</methodname>
    1003               () with the new values. This process is repeated until the plugin
     998              <methodname>getRequestInformation()</methodname>
     999              again with the new command, let the user enter values, and the call
     1000              <methodname>configure()</methodname>
     1001              with the new values. This process is repeated until the plugin
    10041002              reports that it is done or an error occurs.
    10051003            </para>
     
    10081006              of the plugin that is used. However, no parameter values are stored in
    10091007              the database until
    1010               <methodname>setDone</methodname>
    1011               () is called. Then, the plugin instance is usually discarded. The
    1012               execution of the plugin happens in a new instance and maybe on a
    1013               different server.
     1008              <methodname>setDone()</methodname>
     1009              is called. Then, the plugin instance is usually discarded. The execution
     1010              of the plugin happens in a new instance and maybe on a different server.
    10141011            </para>
    10151012            <tip>
     
    10591056    </sect2>
    10601057   
    1061     <sect2 id="plugin_developer.organize.build">
     1058    <sect2 id="plugin_developer.organize.ant">
    10621059      <title>Ant build file</title>
    10631060      <para>
     
    11251122    </sect2>
    11261123     
    1127     <sect2>
     1124    <sect2 id="plugin_developer.organize.build">
    11281125      <title>Building the plugin</title>
    11291126      <para>
     
    11381135        files (if any). Place all files together in the same directory. Then follow the
    11391136        instructions in chapter
    1140         <link linkend="plugin_installation" endterm="plugin_installation.title"></link>
     1137        <xref linkend="plugin_installation" />
    11411138        .
    11421139      </para>
     
    12381235  </sect1>
    12391236
     1237  <sect1 id="plugin_developer.import_plugins">
     1238    <title id="plugin_developer.import_plugins.title">Plugins for importing data</title>
     1239    <para></para>
     1240  </sect1>
     1241
    12401242</chapter>
Note: See TracChangeset for help on using the changeset viewer.