com.sun.jini.tool.envcheck.plugins
Class CheckJDK1_4

java.lang.Object
  extended by com.sun.jini.tool.envcheck.AbstractPlugin
      extended by com.sun.jini.tool.envcheck.plugins.CheckJDK1_4
All Implemented Interfaces:
Plugin

public class CheckJDK1_4
extends AbstractPlugin

Check that the Java platform is at least version 1.4. This check is applied to the VM invoked by the command line being analyzed and the VM invoked by a SharedActivationGroupDescriptor if the descriptor's getServerCommand() method returns non-null.


Nested Class Summary
static class CheckJDK1_4.JDK1_4Task
          Subtask to check the VM version.
 
Field Summary
private  EnvCheck envCheck
          reference to the plugin container
private  String taskName
          name of task to execute
 
Constructor Summary
CheckJDK1_4()
           
 
Method Summary
private  void checkGroupVM()
          Check the activation group VM.
private  void checkMainVM()
          Check the vm invoked by the command-line java command.
private  void processReturn(Object o, String source)
          Process the object returned by the subtask.
 void run(EnvCheck envCheck)
          Check the validity of the activation group VM (if there is one)
 
Methods inherited from class com.sun.jini.tool.envcheck.AbstractPlugin
getBundle, getString, getString, getString, getString, handleUnexpectedSubtaskReturn, isPluginOption, taskName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envCheck

private EnvCheck envCheck
reference to the plugin container


taskName

private String taskName
name of task to execute

Constructor Detail

CheckJDK1_4

public CheckJDK1_4()
Method Detail

run

public void run(EnvCheck envCheck)
Check the validity of the activation group VM (if there is one)

Parameters:
envCheck - the container

checkGroupVM

private void checkGroupVM()
Check the activation group VM. If there is a SharedActivationGroupDescriptor available from the container, invoke a subtask which verifies that the VM used to run that group is at least version 1.4.


checkMainVM

private void checkMainVM()
Check the vm invoked by the command-line java command.


processReturn

private void processReturn(Object o,
                           String source)
Process the object returned by the subtask. Prints a success or failure message based on the type and contents of o.

Parameters:
o - the object returned by the subtask
source - the source description


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.