Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

ExecutableClass Class Reference

#include <coherence/lang/ExecutableClass.hpp>

Inherits Object.

Inherited by TypedExecutableClass [virtual].

List of all members.


Detailed Description

Interface specialization for Classes which are executable.

An executable class includes a method compatible with the following signature:

 public: static void main(ObjectArray::View vasArg);

The class does not implement this interface, it however must be registered with the SystemClassLoader via COH_REGISTER_EXECUTABLE_CLASS(class).

As of Coherence 3.7.1 it is no longer necessary to register executable classes via this interface. As an alternative the "main" method with the above signature can be registered via any Class implementation and will be resolved via reflection.

Author:
mf 2008.10.02
 

Public Types

typedef spec::Handle  Handle
  ExecutableClass Handle definition.
typedef spec::View  View
  ExecutableClass View definition.
typedef spec::Holder  Holder
  ExecutableClass Holder definition.

Public Member Functions

virtual void  execute (ObjectArray::View vasArg) const =0
  Execute the class.

Member Function Documentation

virtual void execute ( ObjectArray::View  vasArg  )  const [pure virtual]

Execute the class.

Parameters:
  vasArg  the executable argument String array

Implemented in TypedExecutableClass.


The documentation for this class was generated from the following file:

Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.