|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.generator.tags.AbstractSandBaseTag
org.sandev.generator.tags.AbstractSandClassTag
org.sandev.generator.tags.AbstractSandNodeTag
org.sandev.generator.tags.NodeTagImplement
public class NodeTagImplement
Handle @sand.implements declarations of zero or more
interfaces to be implemented in the NodeBase. Implementation
values:
Generates a
SimpleMailSender mailSender data member, initialized at startup
from the simpleMailSenderClass global config variable. Also
generates a utility safeSendMail method.
If declaring this implementation, you must declare the following global parameters (with appropriate values) in your config:
Generates an
AuthUserLookup implementation via callthrough to a peer node
identified by name in the peerAuthUserLookupNode config
parameter.
If declaring this implementation, you must declare the following data member in your NodeDecl:
protected String peerAuthUserLookupNode;
Generates an
IDLookup implementation using the declared query/collection calls
declarations supported by an
IDCache. By default the cache used is a
NamedSingletonIDCache initialized with the deployment prefix
so that all nodes within the deployment share the same cache memory. This
can be changed by overriding the cache retrieval methods.
The IDLookup declaration requires AuthUserPeer
to be declared. This is so that all user instance retrieval is done
through the same mechanism.
For caching, the generated getInstance method calls the
generated cacheTrack method which calls to register for
CacheAction notifications. A default
onDelivery(CacheAction) implementation is provided which
removes invalid cached items. These methods require the following to
be present in the NodeDecl:
[atsign]sand.call
org.sandev.basics.sandmessages.CacheAction
org.sandev.basics.sandmessages.CacheAction
cacheActionRegistration
[atsign]sand.subscribe
org.sandev.basics.sandmessages.CacheAction
cacheActionSource
These declarations are NOT generated automatically. They must be present
in the source NodeDecl to provide an accurate and complete
view of this messaging from the source.
Generates an
IDLookup implementation via callthrough to a peer node
identified by name in the peerIDLookupNode config
parameter.
If declaring this implementation, you must declare the following data member in your NodeDecl:
protected String peerIDLookupNode;
| Field Summary | |
|---|---|
static java.lang.String |
CORENAME
The core name of this tag. |
protected boolean |
implAuthUserPeer
Declares implementation of AuthUserPeer |
protected boolean |
implIDLookup
Declares implementation of IDLookup |
protected boolean |
implIDLookupPeer
Declares implementation of IDLookupPeer |
protected boolean |
implMailSender
Declares implementation of MailSender |
static java.lang.String |
TAGNAME
Our fixed name, used for hash lookup and text parsing. |
| Fields inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
NodeTagImplement()
|
|
| Method Summary | |
|---|---|
static boolean |
exists(com.sun.javadoc.ClassDoc cd)
Returns true if the given field contains this tag, false otherwise. |
java.lang.String |
getImplDescription()
Assuming this instance has been initialized, return the description of the implementations that were declared. |
java.lang.String |
getName()
Return our tag name |
static NodeTagImplement |
getNodeTagImplement(com.sun.javadoc.ClassDoc cd)
Factory method for retrieving a new instance given a ClassDoc. |
boolean |
hasImplAuthUserPeer()
accessor for implAuthUserPeer |
boolean |
hasImplIDLookup()
accessor for implIDLookup |
boolean |
hasImplIDLookupPeer()
accessor for implIDLookupPeer |
boolean |
hasImplMailSender()
accessor for implMailSender |
void |
init(com.sun.javadoc.Tag tag)
Initialize this instance from the tag information. |
static void |
register(java.util.Map tagletMap)
Registers this taglet when triggered by the taglet declaration being loaded in as part of the build. |
void |
setImplAuthUserPeer(boolean val)
mutator for implAuthUserPeer |
void |
setImplIDLookup(boolean val)
mutator for implIDLookup |
void |
setImplIDLookupPeer(boolean val)
mutator for implIDLookupPeer |
void |
setImplMailSender(boolean val)
mutator for implMailSender |
java.lang.String |
toString(com.sun.javadoc.Tag tag)
Return a documentation description of this tag. |
java.lang.String |
toString(com.sun.javadoc.Tag[] tags)
Return a documentation text for when several of these tags are present. |
| Methods inherited from class org.sandev.generator.tags.AbstractSandClassTag |
|---|
inType |
| Methods inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
inConstructor, inField, inMethod, inOverview, inPackage, isInlineTag, registerHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CORENAME
protected boolean implMailSender
protected boolean implAuthUserPeer
protected boolean implIDLookup
protected boolean implIDLookupPeer
public static final java.lang.String TAGNAME
| Constructor Detail |
|---|
public NodeTagImplement()
| Method Detail |
|---|
public boolean hasImplMailSender()
public void setImplMailSender(boolean val)
public boolean hasImplAuthUserPeer()
public void setImplAuthUserPeer(boolean val)
public boolean hasImplIDLookup()
public void setImplIDLookup(boolean val)
public boolean hasImplIDLookupPeer()
public void setImplIDLookupPeer(boolean val)
public void init(com.sun.javadoc.Tag tag)
public java.lang.String getName()
public static void register(java.util.Map tagletMap)
public java.lang.String toString(com.sun.javadoc.Tag[] tags)
toString in interface com.sun.tools.doclets.TaglettoString in class AbstractSandBaseTagtags - the array of Tags representing of this custom tag.public java.lang.String toString(com.sun.javadoc.Tag tag)
toString in interface com.sun.tools.doclets.TaglettoString in class AbstractSandBaseTagtag - the Tag representation of this custom tag.public java.lang.String getImplDescription()
public static NodeTagImplement getNodeTagImplement(com.sun.javadoc.ClassDoc cd)
public static boolean exists(com.sun.javadoc.ClassDoc cd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||