net.sourceforge.fluxion.datapublisher.plugins.owlgen
Class GenerateOwlMojo
java.lang.Object
  
org.apache.maven.plugin.AbstractMojo
      
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
 
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
ROLE | 
 
 
| 
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 | 
 
GenerateOwlMojo
public GenerateOwlMojo()
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 intofile - 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.