Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/qtags
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28575/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/qtags
Modified Files:
EjbBeanTag.java EjbUtilTag.java
Log Message:
* Added LookupObjectPlugin
* Finished PrimaryKeyClassPlugin
* Fixed small bugs
Index: EjbUtilTag.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/qtags/EjbUtilTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EjbUtilTag.java 7 Sep 2005 01:13:08 -0000 1.4
--- EjbUtilTag.java 11 Oct 2005 09:22:26 -0000 1.5
***************
*** 1,4 ****
/*
! * Copyright (c) 2003
* XDoclet Team
* All rights reserved.
--- 1,4 ----
/*
! * Copyright (c) 2005
* XDoclet Team
* All rights reserved.
***************
*** 7,29 ****
/**
! * This tag is optional, and lets you define whether or not a util class
should be generated, and whether
* to use the logical component name (java:comp/env) or the physical JNDI
name to do the lookup.<br>
! * If this tag is not specified, the util class will be generated using
logical lookups
* (provided the <utilobject/> subtask is used)
*/
public interface EjbUtilTag extends com.thoughtworks.qdox.model.DocletTag {
/**
! * false or no will omit the generation of the util class.<br>
! * logical will generate a util class that uses the component name for
lookup, and physical will generate
* a class that uses the JNDI name for lookups.<br>
* Default is logical.
*
- * @qtags.required
- *
- * @qtags.allowed-value false
- * @qtags.allowed-value no
* @qtags.allowed-value logical
* @qtags.allowed-value physical
*/
! String getGenerate();
}
\ No newline at end of file
--- 7,39 ----
/**
! * This tag is optional, and lets you define whether or not a util class
should be generated, and whether
* to use the logical component name (java:comp/env) or the physical JNDI
name to do the lookup.<br>
! * If this tag is not specified, the util class will be generated using
logical lookups
* (provided the <utilobject/> subtask is used)
+ *
+ * @qtags.location class
+ * @qtags.once
*/
public interface EjbUtilTag extends com.thoughtworks.qdox.model.DocletTag {
/**
! * Should util class be generated.<br>
! *
! * @qtags.allowed-value true
! * @qtags.allowed-value false
! *
! * @qtags.default true
! */
! boolean isGenerate();
!
! /**
! * Logical will generate a util class that uses the component name for
lookup, and physical will generate
* a class that uses the JNDI name for lookups.<br>
* Default is logical.
*
* @qtags.allowed-value logical
* @qtags.allowed-value physical
+ *
+ * @qtags.default logical
*/
! String getLookupKind();
}
\ No newline at end of file
Index: EjbBeanTag.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/qtags/EjbBeanTag.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** EjbBeanTag.java 6 Oct 2005 13:45:29 -0000 1.8
--- EjbBeanTag.java 11 Oct 2005 09:22:26 -0000 1.9
***************
*** 1,180 ****
! /*
! * Copyright (c) 2003
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.plugin.ejb.qtags;
!
! import org.xdoclet.plugin.ejb.qtags.parameter.JndiName;
! import org.xdoclet.plugin.ejb.qtags.parameter.ViewType;
!
! /**
! * The ejb.bean tag provides information about the EJB.<br>
! * It is the one compulsory tag for all EJBs, however not all parameters are
applicable for all types of beans,
! * and some parameters apply differently for different types of beans.
! *
! * @qtags.location class
! * @qtags.once
! */
! public interface EjbBeanTag extends com.thoughtworks.qdox.model.DocletTag,
ViewType, JndiName {
! /**
! * Provides the fully qualified classname of the bean's implementation
class, to be used in the ejb-class
! * element of the ejb-jar.xml deployment descriptor.<br>
! * Its value is only used when the implementation class is not being
generated by a subtask
! * (e.g. <session/>, <entitycmp/>, ...) as those subtasks have other ways
to determine the classname.<br>
! * This parameter is mainly intended to be used where the bean class
itself is generated, and additional
! * code is to be added in a subclass.
! */
! String getImplClassName();
!
! /**
! * Defines the acknowledge mode for MDB.
! *
! * @qtags.allowed-value Auto-acknowledge
! * @qtags.allowed-value Dups-ok-acknowledge
! */
! String getAcknowledgeMode();
!
! /**
! * Defines the version of the spec the bean is for CMP.
! *
! * @qtags.allowed-value 1.x
! * @qtags.allowed-value 2.x
! */
! String getCmpVersion();
!
! /**
! * A description of the bean.<br>
! * Defaults to the first sentence of the class-level javadoc comment of
the bean class.
! */
! String getDescription();
!
! /**
! * Defines the type of destination for MDB.
! *
! * @qtags.allowed-value javax.jms.Queue
! * @qtags.allowed-value javax.jms.Topic
! */
! String getDestinationType();
!
! /**
! * The display name of the bean.
! */
! String getDisplayName();
!
! /**
! * Set it to "false" if you want the class be excluded from list of
EJBs.<br>
! * This is useful for abstract EJBs that other EJBs are to derive
from.<br>
! * So you obviously do not want the abstract EJB be wrongly specified in
deployment descriptors as
! * a concrete EJB.<br>
! * Default is "true".
! *
! * @qtags.default true
! */
! boolean isGenerate();
!
! /**
! * The large icon for the bean.
! */
! String getLargeIcon();
!
! /**
! * Defines the local business interface for the bean.<br>
! * Similar to remote-business-interface, but the interface does not need
to declare RemoteException
! * in the throws clause.
! */
! String getLocalBusinessInterface();
!
! /**
! * Provides the JNDI name of the bean that will be used in the vendor
specific deployment descriptors.<br>
! * It's the JNDI name for the local EJB.
! */
! String getLocalJndiName();
!
! /**
! * Defines an optional message selector for MDB.
! */
! String getMessageSelector();
!
! /**
! * Provides the name of the bean that will be used in the ejb-jar.xml
deployment descriptor.
! *
! * @qtags.required
! */
! String getName_();
!
! /**
! * Defines the primary key field for the bean.<br>
! * Use this if you have one field or use ejb.pk-field's.<br>
! * The primary fields for a bean are found gathering this bean's primary
fields and super's bean primary key field's.
! */
! String getPrimkeyField();
!
! /**
! * Defines the entity bean's reentrancy.
! *
! * @qtags.default false
! */
! boolean isReentrant();
!
! /**
! * Defines the remote business interface for the bean.<br>
! * If present, ejb.interface-method tags are not required, instead the
remote interface will extend
! * the business interface.<br>
! * The business interface must declare all methods as throwing
RemoteException as per the business
! * interface pattern.
! */
! String getRemoteBusinessInterface();
!
! /**
! * Defines the abstract schema name for the bean.
! */
! String getSchema();
!
! /**
! * The small icon for the bean.
! */
! String getSmallIcon();
!
! /**
! * Defines the durability of messages for MDB as per EJB 2.0 spec
! *
! * @qtags.allowed-value Durable
! * @qtags.allowed-value NonDurable
! */
! String getSubscriptionDurability();
!
! /**
! * Defines the bean's transaction type.
! *
! * @qtags.allowed-value Container
! * @qtags.allowed-value Bean
! * @qtags.default Container
! */
! String getTransactionType();
!
! /**
! * Defines the bean's "type".<br>
! * Default value(s):
! * <ul>
! * <li>CMP (for javax.ejb.EntityBean)</li>
! * <li>Stateless (for javax.ejb.SessionBean)</li>
! * </ul>
! *
! * @qtags.allowed-value CMP
! * @qtags.allowed-value BMP
! * @qtags.allowed-value Stateless
! * @qtags.allowed-value Stateful
! */
! String getType();
!
! /**
! * If true, then generate a public int version attribute in the
auto-generated concrete class,
! * to form a optimistic locking mechanism.<br>
! * The value of version attribute is incremented in ejbStore.<br>
! * The default is false.<br>
! * Note: It's applicable to both CMP and BMP, but many containers have
optimistic locking capabilities
! * built-in, so you don't need to worry about it locking issues.
! */
! boolean isUseSoftLocking();
}
\ No newline at end of file
--- 1,218 ----
! /*
! * Copyright (c) 2003
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.plugin.ejb.qtags;
!
! import org.xdoclet.plugin.ejb.qtags.parameter.JndiName;
! import org.xdoclet.plugin.ejb.qtags.parameter.ViewType;
!
! /**
! * The ejb.bean tag provides information about the EJB.<br>
! * It is the one compulsory tag for all EJBs, however not all parameters are
applicable for all types of beans,
! * and some parameters apply differently for different types of beans.
! *
! * @qtags.location class
! * @qtags.once
! */
! public interface EjbBeanTag extends com.thoughtworks.qdox.model.DocletTag,
ViewType, JndiName {
! /**
! * Provides the fully qualified classname of the bean's implementation
class, to be used in the ejb-class
! * element of the ejb-jar.xml deployment descriptor.<br>
! * Its value is only used when the implementation class is not being
generated by a subtask
! * (e.g. <session/>, <entitycmp/>, ...) as those subtasks have other ways
to determine the classname.<br>
! * This parameter is mainly intended to be used where the bean class
itself is generated, and additional
! * code is to be added in a subclass.
! */
! String getImplClassName();
!
! /**
! * Defines the acknowledge mode for MDB.
! *
! * @qtags.allowed-value Auto-acknowledge
! * @qtags.allowed-value Dups-ok-acknowledge
! */
! String getAcknowledgeMode();
!
! /**
! * Defines the version of the spec the bean is for CMP.
! *
! * @qtags.allowed-value 1.x
! * @qtags.allowed-value 2.x
! */
! String getCmpVersion();
!
! /**
! * A description of the bean.<br>
! * Defaults to the first sentence of the class-level javadoc comment of
the bean class.
! */
! String getDescription();
!
! /**
! * Defines the type of destination for MDB.
! *
! * @qtags.allowed-value javax.jms.Queue
! * @qtags.allowed-value javax.jms.Topic
! */
! String getDestinationType();
!
! /**
! * The display name of the bean.
! */
! String getDisplayName();
!
! /**
! * Set it to "false" if you want the class be excluded from list of
EJBs.<br>
! * This is useful for abstract EJBs that other EJBs are to derive
from.<br>
! * So you obviously do not want the abstract EJB be wrongly specified in
deployment descriptors as
! * a concrete EJB.<br>
! * Default is "true".
! *
! * @qtags.default true
! */
! boolean isGenerate();
!
! /**
! * The large icon for the bean.
! */
! String getLargeIcon();
!
! /**
! * Defines the local business interface for the bean.<br>
! * Similar to remote-business-interface, but the interface does not need
to declare RemoteException
! * in the throws clause.
! */
! String getLocalBusinessInterface();
!
! /**
! * Provides the JNDI name of the bean that will be used in the vendor
specific deployment descriptors.<br>
! * It's the JNDI name for the local EJB.
! */
! String getLocalJndiName();
!
! /**
! * Defines an optional message selector for MDB.
! */
! String getMessageSelector();
!
! /**
! * Provides the name of the bean that will be used in the ejb-jar.xml
deployment descriptor.
! *
! * @qtags.required
! */
! String getName_();
!
! /**
! * Defines the primary key field for the bean.<br>
! * Use this if you have one field or use ejb.pk-field's.<br>
! * The primary fields for a bean are found gathering this bean's primary
fields and super's bean primary key field's.
! */
! String getPrimkeyField();
!
! /**
! * Defines the entity bean's reentrancy.
! *
! * @qtags.default false
! */
! boolean isReentrant();
!
! /**
! * Defines the remote business interface for the bean.<br>
! * If present, ejb.interface-method tags are not required, instead the
remote interface will extend
! * the business interface.<br>
! * The business interface must declare all methods as throwing
RemoteException as per the business
! * interface pattern.
! */
! String getRemoteBusinessInterface();
!
! /**
! * Defines the abstract schema name for the bean.
! */
! String getSchema();
!
! /**
! * The small icon for the bean.
! */
! String getSmallIcon();
!
! /**
! * Defines the durability of messages for MDB as per EJB 2.0 spec
! *
! * @qtags.allowed-value Durable
! * @qtags.allowed-value NonDurable
! */
! String getSubscriptionDurability();
!
! /**
! * Defines the bean's transaction type.
! *
! * @qtags.allowed-value Container
! * @qtags.allowed-value Bean
! * @qtags.default Container
! */
! String getTransactionType();
!
! /**
! * Defines the bean's "type".<br>
! * Default value(s):
! * <ul>
! * <li>CMP (for javax.ejb.EntityBean)</li>
! * <li>Stateless (for javax.ejb.SessionBean)</li>
! * </ul>
! *
! * @qtags.allowed-value CMP
! * @qtags.allowed-value BMP
! * @qtags.allowed-value Stateless
! * @qtags.allowed-value Stateful
! */
! String getType();
!
! /**
! * If true, then generate a public int version attribute in the
auto-generated concrete class,
! * to form a optimistic locking mechanism.<br>
! * The value of version attribute is incremented in ejbStore.<br>
! * The default is false.<br>
! * Note: It's applicable to both CMP and BMP, but many containers have
optimistic locking capabilities
! * built-in, so you don't need to worry about it locking issues.
! */
! boolean isUseSoftLocking();
!
! /**
! * Used to link the message-driven bean to a message destination.<br>
! * The value must be the message-destination-name of a message
destination in the same Deployment File
! * or in another Deployment File in the same J2EE application unit.<br>
! * Alternatively, the value may be composed of a path name specifying a
Deployment File containing the
! * referenced message destination with the message-destination-name of
the destination appended and
! * separated from the path name by "#".<br>
! * The path name is relative to the Deployment File containing Deployment
Component that is referencing
! * the message destination.<br>
! * This allows multiple message destinations with the same name to be
uniquely identified.<br>
! * A message-destination-link is automatically generated if you add a
message-destination tag to the
! * message-driven bean. This should be used if the message-destination is
specified in another bean or
! * in a merge-file.<br>
! * Only applicable to EJB 2.1 message-driven beans.
! */
! String getDestinationLink();
!
! /**
! * Defines the jndi name of the destination queue/topic.
! * Only applicable to message-driven beans.
! */
! String getDestinationJndiName();
!
! /**
! * Defines the jndi name of the JMS connection factory
! * Only applicable to message-driven beans.
! */
! String getConnectionFactoryJndiName();
!
! /**
! * The messaging-type element specifies the message listener interface of
the message-driven bean.<br>
! * If the messaging-type element is not specified, it is assumed to be
javax.jms.MessageListener.
! * Only applicable to EJB 2.1 message-driven beans.
! *
! * @qtags.default javax.jms.MessageListener
! */
! String getMessagingType();
}
\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits