net.sourceforge.fluxion.datapublisher.plugins.owlgen
Class GenerateOwlMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sourceforge.fluxion.datapublisher.plugins.owlgen.GenerateOwlMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class GenerateOwlMojo
extends org.apache.maven.plugin.AbstractMojo

Maven plugin mojo for creating an OWL file representing a specific database and populating a database schema meta-owl with relevant individuals for this database.

Version:
0.2
Author:
Tony Burdett
See Also:
BeanIntrospector

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateOwlMojo()
           
 
Method Summary
 void execute()
           
 java.util.Set<java.lang.Class> findBeans(java.util.Set<java.lang.Class> beans, java.io.File file)
          Get a list of database beans.
 void resolveDependencies()
          Resolve Maven dependencies from "${project.artifacts}" and load classes from artifacts which match the artifact id containing "meta-owl".
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateOwlMojo

public GenerateOwlMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

resolveDependencies

public void resolveDependencies()
                         throws org.apache.maven.plugin.MojoExecutionException
Resolve Maven dependencies from "${project.artifacts}" and load classes from artifacts which match the artifact id containing "meta-owl". Also, load the classes from the /target/classes directory.

Throws:
org.apache.maven.plugin.MojoExecutionException - if the artifact jar can't be resolved

findBeans

public java.util.Set<java.lang.Class> findBeans(java.util.Set<java.lang.Class> beans,
                                                java.io.File file)
                                         throws org.apache.maven.plugin.MojoExecutionException
Get a list of database beans. Retrieves all bean found in the directory (or file) specified, recursively searching.

Parameters:
beans - the set of classes to add beans into
file - the directory to look in
Returns:
the set of bean classes
Throws:
org.apache.maven.plugin.MojoExecutionException - if a bean class can't be loaded


Copyright © 2010. All Rights Reserved.