<divclass="block">Interface for registering <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a>s.
Registering <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a>:
- Register your <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> with <ahref="#register(com.djrapitops.plan.extension.DataExtension)"><code>register(DataExtension)</code></a>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="ExtensionService.Holder.html"title="class in com.djrapitops.plan.extension">ExtensionService.Holder</a></span></code></th>
<tdclass="colFirst"><code><ahref="builder/ExtensionDataBuilder.html"title="interface in com.djrapitops.plan.extension.builder">ExtensionDataBuilder</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#newExtensionDataBuilder(com.djrapitops.plan.extension.DataExtension)">newExtensionDataBuilder</a></span>​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</code></th>
<tdclass="colLast">
<divclass="block">Obtain a new <ahref="builder/ExtensionDataBuilder.html"title="interface in com.djrapitops.plan.extension.builder"><code>ExtensionDataBuilder</code></a>, it is recommended to use <ahref="DataExtension.html#newExtensionDataBuilder()"><code>DataExtension.newExtensionDataBuilder()</code></a>.</div>
<tdclass="colFirst"><code>java.util.Optional<<ahref="Caller.html"title="interface in com.djrapitops.plan.extension">Caller</a>></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#register(com.djrapitops.plan.extension.DataExtension)">register</a></span>​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</code></th>
<tdclass="colLast">
<divclass="block">Register your <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> implementation.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#unregister(com.djrapitops.plan.extension.DataExtension)">unregister</a></span>​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</code></th>
<tdclass="colLast">
<divclass="block">Unregister your <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> implementation.</div>
<preclass="methodSignature">static <ahref="ExtensionService.html"title="interface in com.djrapitops.plan.extension">ExtensionService</a> getInstance()</pre>
<preclass="methodSignature">java.util.Optional<<ahref="Caller.html"title="interface in com.djrapitops.plan.extension">Caller</a>> register​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</pre>
<divclass="block">Register your <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> implementation.
You can use <ahref="extractor/ExtensionExtractor.html#validateAnnotations()"><code>ExtensionExtractor.validateAnnotations()</code></a> in your Unit Tests to prevent IllegalArgumentExceptions here at runtime.</div>
<dd><code>extension</code> - Your DataExtension implementation, see <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> for requirements.</dd>
<dd>Optional <ahref="Caller.html"title="interface in com.djrapitops.plan.extension"><code>Caller</code></a> that can be used to call for data update in Plan database manually - If the Optional is not present the user has disabled the extension in Plan config.</dd>
<preclass="methodSignature"><ahref="builder/ExtensionDataBuilder.html"title="interface in com.djrapitops.plan.extension.builder">ExtensionDataBuilder</a> newExtensionDataBuilder​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</pre>
<divclass="block">Obtain a new <ahref="builder/ExtensionDataBuilder.html"title="interface in com.djrapitops.plan.extension.builder"><code>ExtensionDataBuilder</code></a>, it is recommended to use <ahref="DataExtension.html#newExtensionDataBuilder()"><code>DataExtension.newExtensionDataBuilder()</code></a>.
<preclass="methodSignature">void unregister​(<ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension">DataExtension</a> extension)</pre>
<divclass="block">Unregister your <ahref="DataExtension.html"title="interface in com.djrapitops.plan.extension"><code>DataExtension</code></a> implementation.