Declaring a new PodLoader

Next we need to declare our PodLoader. The PodLoader is the java class that will generate the fragment of XML that will populate our Pod. The CT_PodLoaderBindings.ctx codetable entry binds a Pod-Type to a PodLoader. When the infrastructure processes our Pod it will look up the PodLoader class in this codetable.

Figure 1. CT_PodLoaderBindings.ctx, declaring a 'PodLoader'
<?xml version="1.0" encoding="UTF-8"?>
<codetables package="codetable">
  <codetable 
    java_identifier="PODLOADERBINDINGS" 
    name="PodLoaderBindings"
  >
    <code
      default="false"
      java_identifier="HELLOWORLD"
      status="ENABLED"
      value="PT9001"
    >
      <locale language="en" sort_order="0">
        <description>pods.podloaders.HelloWorld</description>
        <annotation/>
      </locale>
    </code>
  </codetable>
</codetables>

Now that we have added our codetable entries to the PodType and PodLoaderBindings files we will need to run the ctgen target to create the codetables and the database target to insert the codetable values into the database.