<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.biouml.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.biouml.org/index.php?action=history&amp;feed=atom&amp;title=Biohub_%28extension_point%29</id>
		<title>Biohub (extension point) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.biouml.org/index.php?action=history&amp;feed=atom&amp;title=Biohub_%28extension_point%29"/>
		<link rel="alternate" type="text/html" href="https://wiki.biouml.org/index.php?title=Biohub_(extension_point)&amp;action=history"/>
		<updated>2026-04-25T16:16:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>https://wiki.biouml.org/index.php?title=Biohub_(extension_point)&amp;diff=3789&amp;oldid=prev</id>
		<title>Lan@dote.ru: Created page with &quot;{{Extension point|biohub|ru.biosoft.access|registry=ru.biosoft.access.biohub.BioHubRegistry}} === Description === This extension point allows you to register a BioHub.  ==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.biouml.org/index.php?title=Biohub_(extension_point)&amp;diff=3789&amp;oldid=prev"/>
				<updated>2013-05-20T04:17:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Extension point|biohub|ru.biosoft.access|registry=ru.biosoft.access.biohub.BioHubRegistry}} === Description === This extension point allows you to register a &lt;a href=&quot;/index.php/BioHub&quot; title=&quot;BioHub&quot;&gt;BioHub&lt;/a&gt;.  ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Extension point|biohub|ru.biosoft.access|registry=ru.biosoft.access.biohub.BioHubRegistry}}&lt;br /&gt;
=== Description ===&lt;br /&gt;
This extension point allows you to register a [[BioHub]].&lt;br /&gt;
&lt;br /&gt;
=== Configuration Markup ===&lt;br /&gt;
 &amp;lt;!ELEMENT hubItem (property)*&amp;gt;&lt;br /&gt;
 &amp;lt;!ATTLIST hubItem&lt;br /&gt;
      name      CDATA #REQUIRED&lt;br /&gt;
      class     CDATA #REQUIRED&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
&lt;br /&gt;
;name&lt;br /&gt;
:BioHub user-friendly name.&lt;br /&gt;
;class&lt;br /&gt;
:Fully-qualified name of class implementing {{Class|ru.biosoft.access.biohub.BioHub}} interface.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!ELEMENT property&amp;gt;&lt;br /&gt;
 &amp;lt;!ATTLIST property&lt;br /&gt;
      name      CDATA #REQUIRED&lt;br /&gt;
      value     CDATA #REQUIRED&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
&lt;br /&gt;
;name&lt;br /&gt;
:name of the property&lt;br /&gt;
;value&lt;br /&gt;
:value of the property&lt;br /&gt;
&lt;br /&gt;
These properties will be passed to constructor.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
 &amp;lt;extension id=&amp;quot;GOhub&amp;quot; point=&amp;quot;ru.biosoft.access.biohub&amp;quot;&amp;gt; &lt;br /&gt;
    &amp;lt;hubItem name=&amp;quot;GO&amp;quot; class=&amp;quot;biouml.plugins.go.GOHub&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;property name=&amp;quot;jdbcDriverClass&amp;quot; value=&amp;quot;org.gjt.mm.mysql.Driver&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;property name=&amp;quot;jdbcURL&amp;quot; value=&amp;quot;jdbc:mysql://localhost:3306/go&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;property name=&amp;quot;jdbcUser&amp;quot; value=&amp;quot;go&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;property name=&amp;quot;jdbcPassword&amp;quot; value=&amp;quot;go&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/hubItem&amp;gt; &lt;br /&gt;
 &amp;lt;/extension&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This extension defines a hub &amp;quot;GO&amp;quot; implemented in {{Class|biouml.plugins.go.GOHub}} class and passes database configuration properties.&lt;br /&gt;
&lt;br /&gt;
=== Module BioHub registration ===&lt;br /&gt;
When BioHub is associated with some [[module]] in the repository, it's strongly recommended to register it in the module instead. You should add the following line to the module configuration file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;bioHub.&amp;lt;hubId&amp;gt;=&amp;lt;BioHub_class&amp;gt;[;&amp;lt;name&amp;gt;=&amp;lt;value&amp;gt;[;&amp;lt;name&amp;gt;=&amp;lt;value&amp;gt;[;...]]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;amp;lt;hubId&amp;amp;gt;&amp;lt;/code&amp;gt; is the internal BioHub id; &amp;lt;code&amp;gt;&amp;amp;lt;BioHub_class&amp;amp;gt;&amp;lt;/code&amp;gt; is the fully-qualified name of class implementing {{Class|ru.biosoft.access.biohub.BioHub}} interface and any custom properties are defined in &amp;lt;code&amp;gt;&amp;amp;lt;name&amp;amp;gt;=&amp;amp;lt;value&amp;amp;gt;&amp;lt;/code&amp;gt; pairs. Example:&lt;br /&gt;
&lt;br /&gt;
 bioHub.functional=biouml.plugins.gtrd.TFClassificationFunctionalHub;name=TF classification&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
* Any BioHub implementation must have a constructor which accepts single parameter of type {{Class|java.util.Properties}}. Upon BioHub instantiation the {{Class|java.util.Properties}} object will be passed which include:&lt;br /&gt;
** All properties defined inside hubItem extension point or in BioHub definition line in the module configuration;&lt;br /&gt;
** For BioHubs defined as extensions: property &amp;lt;code&amp;gt;&amp;quot;name&amp;quot;&amp;lt;/code&amp;gt; having value of BioHub name;&lt;br /&gt;
** For BioHubs defined in the modules: properties &amp;lt;code&amp;gt;&amp;quot;completeName&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;moduleName&amp;quot;&amp;lt;/code&amp;gt; containing full path to the module. It's recommended to use &amp;lt;code&amp;gt;&amp;quot;completeName&amp;quot;&amp;lt;/code&amp;gt; property; the &amp;lt;code&amp;gt;&amp;quot;moduleName&amp;quot;&amp;lt;/code&amp;gt; property is passed for the legacy reasons.&lt;br /&gt;
* When you're implementing BioHub, in many cases it's convenient to extend abstract class {{Class|ru.biosoft.access.biohub.BioHubSupport}}.&lt;/div&gt;</summary>
		<author><name>Lan@dote.ru</name></author>	</entry>

	</feed>