eu.lindenbaum.maven.erlang
Class CheckAppScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.CheckAppScript
All Implemented Interfaces:
Script<CheckAppResult>

public final class CheckAppScript
extends Object

A Script that can be used to extract certain values from an erlang application file.

Author:
Tobias Schlager , Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
CheckAppScript(File appFile)
          Creates an extraction Script for a specific application file.
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 CheckAppResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
          Converts the result of the Script execution into a CheckAppResult bean holding interesting values from the application file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

protected final String script
Constructor Detail

CheckAppScript

public CheckAppScript(File appFile)
               throws org.apache.maven.plugin.MojoExecutionException
Creates an extraction Script for a specific application file.

Parameters:
appFile - to extract values from
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
http://www.erlang.org/doc/man/app.html
Method Detail

get

public String get()
Description copied from interface: Script
Returns an evaluateable String containing the erlang script of the implementing class.

Returns:
An erlang script that can be evaluated.

handle

public CheckAppResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into a CheckAppResult bean holding interesting values from the application file.

Parameters:
result - The return term of the Script execution.
Returns:
An object capable of delivering the results transparently.


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.