|
SOAj Core v. 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.soaj.core.plugin.SjBasePlugin
public abstract class SjBasePlugin
This base class supports attributes and methods for SOAj plugins. Two abstract callback methods (CB) may be overridden to provide initialization and verification of the plugin following instantiation.
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .
| Field Summary | |
|---|---|
private SjPopulatedPluginKey |
populatedPluginKey
The wrapper object containing the descriptor document properties associated with this plugin. |
private static long |
serialVersionUID
UID |
| Constructor Summary | |
|---|---|
SjBasePlugin(SjPopulatedPluginKey populatedPluginKey)
Constructor - protected |
|
| Method Summary | |
|---|---|
abstract SjBaseMetadata |
createPluginMetadataCB()
This method |
SjBaseMetadata |
getPluginMetadata()
This method returns the pluginMetadata attribute. |
SjPluginProperties |
getPluginProperties()
This method returns the declared plugin properties. |
SjPopulatedPluginKey |
getPopulatedPluginKey()
This method returns the populatedPluginKey attribute. |
void |
initCB()
This callback method is invoked exactly once by a factory after instantiating the plugin. |
boolean |
verifyCB()
This callback method is invoked exactly once upon application server startup AFTER the initCB() methods complete successfully for
ALL plugins. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final SjPopulatedPluginKey populatedPluginKey
| Constructor Detail |
|---|
public SjBasePlugin(SjPopulatedPluginKey populatedPluginKey)
The SOAj plugin pattern enforces instantiation of a plugin via the General Store. Concrete class constructors should be coded as 'protected'.
populatedPluginKey - The 'Key' defined in the descriptor document.| Method Detail |
|---|
public abstract SjBaseMetadata createPluginMetadataCB()
public void initCB()
throws SjCoreExceptionActivationSequence
SjCoreExceptionActivationSequence
public boolean verifyCB()
throws SjCoreExceptionActivationSequence
initCB() methods complete successfully for
ALL plugins. This method provides an opportunity for a onetime execution
of verification logic to ensure the integrity (or fitness) of a plugin
for use. As an example, a sophisticated implementation might fire all of
the plugin methods (perhaps using mock objects) to ensure the plugin is
100% operational.
SjCoreExceptionActivationSequencepublic SjPluginProperties getPluginProperties()
public SjBaseMetadata getPluginMetadata()
pluginMetadata attribute.
public SjPopulatedPluginKey getPopulatedPluginKey()
populatedPluginKey attribute.
|
SOAj Core v. 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.