You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
| 2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
| 2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:15:43
|
User: vancek
Date: 06/01/16 19:15:38
Modified: andromda-ejb3/src/main/resources/templates/ejb3
SessionLocal.vsl
Log:
added generatedFile variable for use in cartridge.xml, moved Local annotation to session bean
Revision Changes Path
1.3 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionLocal.vsl
Index: SessionLocal.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionLocal.vsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- SessionLocal.vsl 3 Jan 2006 01:06:24 -0000 1.2
+++ SessionLocal.vsl 17 Jan 2006 03:15:36 -0000 1.3
@@ -3,12 +3,12 @@
#if ($stringUtils.isNotBlank($service.packageName))
package $service.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceLocalInterfaceName,'.','/')}.java")
/**
* Local component interface for the ${service.serviceName} session bean.
$service.getDocumentation(" * ")
*/
-@javax.ejb.Local
public interface ${service.serviceLocalInterfaceName}
#if($service.generalization)
extends ${service.generalization.fullyQualifiedName}Local
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:14:48
|
User: vancek
Date: 06/01/16 19:14:42
Modified: andromda-ejb3/src/main/resources/templates/ejb3
SessionBeanImpl.vsl SessionListener.vsl
Log:
added generatedFile template variable for file name used in cartridge.xml
Revision Changes Path
1.5 +1 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl
Index: SessionBeanImpl.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- SessionBeanImpl.vsl 10 Jan 2006 08:11:09 -0000 1.4
+++ SessionBeanImpl.vsl 17 Jan 2006 03:14:41 -0000 1.5
@@ -2,6 +2,7 @@
#if ($stringUtils.isNotBlank($service.packageName))
package $service.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceImplementationName,'.','/')}.java")
/**
* @see ${service.fullyQualifiedServiceName}
1.2 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionListener.vsl
Index: SessionListener.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionListener.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- SessionListener.vsl 3 Jan 2006 01:06:00 -0000 1.1
+++ SessionListener.vsl 17 Jan 2006 03:14:41 -0000 1.2
@@ -2,7 +2,7 @@
#if ($stringUtils.isNotBlank($service.packageName))
package $service.packageName;
#end
-
+#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceListenerName,'.','/')}.java")
/**
* Callback Listener for Session bean ${service.fullyQualifiedName}
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:13:55
|
User: vancek
Date: 06/01/16 19:13:49
Modified: andromda-ejb3/src/main/resources/templates/ejb3
SessionBean.vsl
Log:
changed securityDomain to securityRealm, added RemoteBinding & LocalBinding annotations for setting JNDI names, moved Local and Remote annotation to session bean from interface classes, added Interceptor annotation
Revision Changes Path
1.5 +33 -6 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl
Index: SessionBean.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- SessionBean.vsl 10 Jan 2006 08:11:09 -0000 1.4
+++ SessionBean.vsl 17 Jan 2006 03:13:48 -0000 1.5
@@ -3,6 +3,7 @@
#if ($stringUtils.isNotBlank($service.packageName))
package $service.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceName,'.','/')}.java")
/**
* Autogenerated EJB entity POJO class for the ${service.serviceName} session bean.
@@ -19,9 +20,9 @@
#**##end
#end
@javax.ejb.CallbackListener(${service.fullyQualifiedServiceListenerName}.class)
-#if ($service.securityDomain)
+#if ($stringUtils.isNotBlank($service.securityRealm))
#**##if ($service.persistenceContainerJboss)
-@org.jboss.annotation.security.SecurityDomain("${service.securityDomain}")
+@org.jboss.annotation.security.SecurityDomain("${service.securityRealm}")
#**##end
#end
#if ($service.permitAll)
@@ -34,11 +35,34 @@
#if ($service.runAs)
@javax.annotation.security.RunAs("${service.runAs}")
#end
+#if ($service.jndiNameRemote)
+#**##if ($service.persistenceContainerJboss)
+@org.jboss.annotation.ejb.RemoteBinding(jndiBinding = "${service.jndiNameRemote}")
+#**##end
+#end
+#if ($service.jndiNameLocal)
+#**##if ($service.persistenceContainerJboss)
+@org.jboss.annotation.ejb.LocalBinding(jndiBinding = "${service.jndiNameLocal}")
+#**##end
+#end
+#if ($service.viewTypeLocal)
+@javax.ejb.Local({${service.fullyQualifiedServiceLocalInterfaceName}.class})
+#end
+#if ($service.viewTypeRemote)
+@javax.ejb.Remote({${service.fullyQualifiedServiceRemoteInterfaceName}.class})
+#end
+#set ($interceptors = $service.interceptorReferences)
+#if ($collectionUtils.size($interceptors) == 1)
+@javax.ejb.Interceptor($service.getInterceptorsAsList($interceptors))
+#elseif ($collectionUtils.size($interceptors) > 1)
+@javax.ejb.Interceptors({$service.getInterceptorsAsList($interceptors)})
+#end
public abstract class ${service.serviceName}
#if($service.generalization)
extends ${service.generalization.fullyQualifiedName}BeanImpl
#end
- implements ${service.fullyQualifiedServiceLocalInterfaceName}, ${service.fullyQualifiedServiceRemoteInterfaceName}
+ implements#if ($service.viewTypeLocal) ${service.fullyQualifiedServiceLocalInterfaceName}#if ($service.viewTypeRemote),#end#end#if ($service.viewTypeRemote) ${service.fullyQualifiedServiceRemoteInterfaceName}#end
+
{
// ------ Session Context Injection ------
@@ -96,14 +120,16 @@
#* *##set ($reference = $dependency.targetElement)
#* *##if ($reference.destinationTypeQueue)
#* *##if (!$queueConnectionFactoryDefined)
- @javax.annotation.Resource(name = "ConnectionFactory")
+## NOTE: CHANGE TO USE mappedName
+ @javax.annotation.Resource(name = "ConnectionFactory", type = javax.jms.QueueConnectionFactory.class)
protected javax.jms.QueueConnectionFactory queueFactory;
#* *##set ($queueConnectionFactoryDefined = true)
#* *##end
#* *##elseif ($reference.destinationTypeTopic)
#* *##if (!$topicConnectionFactoryDefined)
- @javax.annotation.Resource(name = "ConnectionFactory")
+## NOTE: CHANGE TO USE mappedName
+ @javax.annotation.Resource(name = "ConnectionFactory", type = javax.jms.TopicConnectionFactory.class)
protected javax.jms.TopicConnectionFactory topicFactory;
#* *##set ($topicConnectionFactoryDefined = true)
@@ -112,7 +138,8 @@
/**
* Inject ${reference.destinationType}
*/
- @javax.annotation.Resource(name = "${reference.destination}")
+ @javax.annotation.Resource(name = "${reference.destination}", type = #if ($reference.destinationTypeQueue)javax.jms.Queue.class#elseif ($reference.destinationTypeTopic)javax.jms.Topic.class#end)
+ ## NOTE: CHANGE TO USE mappedName
protected #if ($reference.destinationTypeQueue)javax.jms.Queue#elseif ($reference.destinationTypeTopic)javax.jms.Topic#end $stringUtils.uncapitalize(${reference.name});
#**##end
#end
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:09:17
|
User: vancek
Date: 06/01/16 19:09:10
Modified: andromda-ejb3/src/main/resources/templates/ejb3
persistence.xml.vsl
Log:
added extra jdbc and transaction related hibernate properties
Revision Changes Path
1.2 +22 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/persistence.xml.vsl
Index: persistence.xml.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/persistence.xml.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- persistence.xml.vsl 4 Jan 2006 06:09:33 -0000 1.1
+++ persistence.xml.vsl 17 Jan 2006 03:09:10 -0000 1.2
@@ -15,17 +15,38 @@
<property name="hibernate.hbm2ddl.auto" value="${hibernateHbm2DDLAuto}"/>
#end
#if ($stringUtils.isNotBlank($hibernateShowSql))
- <property name="show_sql" value="${hibernateShowSql}"/>
+ <property name="hibernate.show_sql" value="${hibernateShowSql}"/>
#end
#if ($stringUtils.isNotBlank($hibernateDialect))
<property name="hibernate.dialect" value="${hibernateDialect}"/>
#end
+#if ($stringUtils.isNotBlank($hibernateMaxFetchDepth))
+ <property name="hibernate.max_fetch_depth">$hibernateMaxFetchDepth</property>
+#end
+#if ($stringUtils.isNotBlank($hibernateJdbcFetchSize))
+ <property name="hibernate.jdbc.fetch_size">$hibernateJdbcFetchSize</property>
+#end
+#if ($stringUtils.isNotBlank($hibernateJdbcBatchSize))
+ <property name="hibernate.jdbc.batch_size">$hibernateJdbcBatchSize</property>
+#end
+#if ($stringUtils.isNotBlank($hibernateJdbcUseScrollableResultSet))
+ <property name="hibernate.jdbc.use_scrollable_resultset">$hibernateJdbcUseScrollableResultSet</property>
+#end
+#if ($stringUtils.isNotBlank($hibernateJdbcUseStreamsForBinary))
+ <property name="hibernate.jdbc.use_streams_for_binary">$hibernateJdbcUseStreamsForBinary</property>
+#end
#if ($stringUtils.isNotBlank($hibernateCacheProvider))
<property name="hibernate.cache.provider_class" value="${hibernateCacheProvider}"/>
#end
#if ($stringUtils.isNotBlank($hibernateTreecacheMbeanObject))
<property name="hibernate.treecache.mbean.object_name" value="${hibernateTreecacheMbeanObject}"/>
#end
+#if ($stringUtils.isNotBlank($hibernateTransactionFlushBeforeCompletion))
+ <property name="hibernate.transaction.flush_before_completion" value="${hibernateTransactionFlushBeforeCompletion}"/>
+#end
+#if ($stringUtils.isNotBlank($hibernateTransactionAutoCloseSession))
+ <property name="hibernate.transaction.auto_close_session" value="${hibernateTransactionAutoCloseSession}"/>
+#end
</properties>
</entity-manager>
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:08:25
|
User: vancek
Date: 06/01/16 19:08:18
Modified: andromda-ejb3/src/main/resources/templates/ejb3
MessageDrivenListener.vsl MessageDrivenBeanImpl.vsl
MessageDrivenBean.vsl
Log:
added generatedFile template variable for file name creation used in cartridge.xml
Revision Changes Path
1.2 +1 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl
Index: MessageDrivenListener.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- MessageDrivenListener.vsl 6 Jan 2006 13:51:12 -0000 1.1
+++ MessageDrivenListener.vsl 17 Jan 2006 03:08:17 -0000 1.2
@@ -2,6 +2,7 @@
#if ($stringUtils.isNotBlank($mdb.packageName))
package $mdb.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($mdb.fullyQualifiedMessageDrivenListenerName,'.','/')}.java")
/**
* Callback Listener for Message Driven bean ${mdb.fullyQualifiedMessageDrivenName}
1.2 +1 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBeanImpl.vsl
Index: MessageDrivenBeanImpl.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBeanImpl.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- MessageDrivenBeanImpl.vsl 6 Jan 2006 13:51:12 -0000 1.1
+++ MessageDrivenBeanImpl.vsl 17 Jan 2006 03:08:17 -0000 1.2
@@ -2,6 +2,7 @@
#if ($stringUtils.isNotBlank($mdb.packageName))
package $mdb.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($mdb.fullyQualifiedMessageDrivenImplementationName,'.','/')}.java")
/**
* @see ${mdb.fullyQualifiedMessageDrivenName}
1.3 +1 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl
Index: MessageDrivenBean.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- MessageDrivenBean.vsl 10 Jan 2006 08:09:11 -0000 1.2
+++ MessageDrivenBean.vsl 17 Jan 2006 03:08:17 -0000 1.3
@@ -3,6 +3,7 @@
#if ($stringUtils.isNotBlank($mdb.packageName))
package $mdb.packageName;
#end
+#set ($generatedFile = "${stringUtils.replace($mdb.fullyQualifiedMessageDrivenName,'.','/')}.java")
/**
* Autogenerated JMS message driven EJB class for the ${mdb.messageDrivenName} bean.
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:06:49
|
User: vancek
Date: 06/01/16 19:06:44
Modified: andromda-ejb3/src/main/resources/templates/ejb3
EntityListener.vsl
Log:
changed entity parameter to callbacks to fully qualified name
Revision Changes Path
1.2 +8 -8 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityListener.vsl
Index: EntityListener.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityListener.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- EntityListener.vsl 28 Dec 2005 00:32:55 -0000 1.1
+++ EntityListener.vsl 17 Jan 2006 03:06:43 -0000 1.2
@@ -2,7 +2,7 @@
#if ($stringUtils.isNotBlank($entity.packageName))
package $entity.packageName;
#end
-
+#set ($generatedFile = "${stringUtils.replace($entity.fullyQualifiedEntityListenerName,'.','/')}.java")
/**
* Callback Listener for Entity POJO EJB ${entity.fullyQualifiedName}
@@ -19,42 +19,42 @@
}
@javax.persistence.PrePersist
- public void prePersist(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void prePersist(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// pre persist implementation
}
@javax.persistence.PostPersist
- public void postPersist(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void postPersist(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// post persist implementation
}
@javax.persistence.PreRemove
- public void preRemove(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void preRemove(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// pre remove implementation
}
@javax.persistence.PostRemove
- public void postRemove(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void postRemove(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// post remove implementation
}
@javax.persistence.PreUpdate
- public void preUpdate(${entity.name} ${stringUtils.uncapitalize(${entity.name})}) {
+ public void preUpdate(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})}) {
// pre update implementation
}
@javax.persistence.PostUpdate
- public void postUpdate(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void postUpdate(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// post update implementation
}
@javax.persistence.PostLoad
- public void postLoad(${entity.name} ${stringUtils.uncapitalize(${entity.name})})
+ public void postLoad(${entity.fullyQualifiedEntityName} ${stringUtils.uncapitalize(${entity.name})})
{
// post load implementation
}
|
|
From: Vance K. <va...@us...> - 2006-01-17 03:06:11
|
User: vancek
Date: 06/01/16 19:05:58
Added: andromda-ejb3/src/main/resources/templates/ejb3
jboss.xml.vsl ejb-jar.xml.vsl Interceptor.vsl
Log:
initial revision
Revision Changes Path
1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/jboss.xml.vsl
Index: jboss.xml.vsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<enterprise-beans>
#foreach ($service in $services)
<session>
<ejb-name>$service.serviceName</ejb-name>
<jndi-name>#if ($service.jndiNameRemote)${service.jndiNameRemote}#else${service.fullyQualifiedServiceRemoteInterfaceName}#end</jndi-name>
<local-jndi-name>#if ($service.jndiNameLocal)${service.jndiNameLocal}#else${service.fullyQualifiedServiceLocalInterfaceName}#end</local-jndi-name>
</session>
#end
</enterprise-beans>
</jboss>
1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/ejb-jar.xml.vsl
Index: ejb-jar.xml.vsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description><![CDATA[No Description.]]></description>
<display-name>Generated by AndroMDA EJB3 Cartridge</display-name>
<enterprise-beans>
#foreach ($service in $services)
<session>
<description>
<![CDATA[
$service.getDocumentation(" ", 64, false)
]]>
</description>
<ejb-name>$service.serviceName</ejb-name>
<remote>${service.fullyQualifiedServiceRemoteInterfaceName}</remote>
<local>${service.fullyQualifiedServiceLocalInterfaceName}</local>
<ejb-class>${service.fullyQualifiedServiceImplementationName}</ejb-class>
<session-type>${service.type}</session-type>
<transaction-type>Container</transaction-type>
</session>
#end
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</ejb-jar>
1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Interceptor.vsl
Index: Interceptor.vsl
===================================================================
// license-header java merge-point
#if ($stringUtils.isNotBlank($interceptor.packageName))
package $interceptor.packageName;
#end
#set ($generatedFile = "${stringUtils.replace($interceptor.fullyQualifiedInterceptorName,'.','/')}.java")
/**
* Interceptor class
*/
public class ${interceptor.interceptorName}
{
/**
* Default interceptor execution method
*
* @param ctx the invocation context
* @return
*/
@javax.ejb.AroundInvoke
public Object execute(javax.ejb.InvocationContext ctx)
throws Exception
{
// Add implementation
try
{
return ctx.proceed();
}
catch (Exception e)
{
throw e;
}
}
}
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:18:59
|
User: vancek Date: 06/01/10 00:18:53 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added serviceDelegateName attribute to EJB3SessionFacade, throwsClause to EJB3SessionOperationFacade and EJB3MessageDrivenFacade Revision Changes Path 1.3 +100 -112 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
|
From: Vance K. <va...@us...> - 2006-01-10 08:16:41
|
User: vancek
Date: 06/01/10 00:16:32
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3SessionOperationFacadeLogicImpl.java
Log:
added getThrowsClause
Revision Changes Path
1.4 +35 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java
Index: EJB3SessionOperationFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- EJB3SessionOperationFacadeLogicImpl.java 6 Jan 2006 14:01:11 -0000 1.3
+++ EJB3SessionOperationFacadeLogicImpl.java 10 Jan 2006 08:16:32 -0000 1.4
@@ -169,4 +169,39 @@
return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_FLUSH_MODE);
}
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleGetThrowsClause()
+ */
+ protected String handleGetThrowsClause()
+ {
+ StringBuffer throwsClause = null;
+ if (this.isExceptionsPresent())
+ {
+ throwsClause = new StringBuffer(this.getExceptionList());
+ }
+ if (throwsClause != null)
+ {
+ throwsClause.insert(0, "throws ");
+ }
+ return throwsClause != null ? throwsClause.toString() : null;
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleGetThrowsClause(java.lang.String)
+ */
+ protected String handleGetThrowsClause(String initialExceptions)
+ {
+ final StringBuffer throwsClause = new StringBuffer(initialExceptions);
+ if (this.getThrowsClause() != null)
+ {
+ throwsClause.insert(0, ", ");
+ throwsClause.insert(0, this.getThrowsClause());
+ }
+ else
+ {
+ throwsClause.insert(0, "throws ");
+ }
+ return throwsClause.toString();
+ }
+
}
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:15:40
|
User: vancek
Date: 06/01/10 00:15:32
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3SessionFacadeLogicImpl.java
Log:
added getServiceDelegateName and getFullyQualifiedServiceDelegateName getters
Revision Changes Path
1.4 +31 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java
Index: EJB3SessionFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- EJB3SessionFacadeLogicImpl.java 6 Jan 2006 14:00:32 -0000 1.3
+++ EJB3SessionFacadeLogicImpl.java 10 Jan 2006 08:15:32 -0000 1.4
@@ -50,6 +50,11 @@
*/
private static final String SERVICE_IMPLEMENTATION_NAME_PATTERN = "serviceImplementationNamePattern";
+ /**
+ * The property which stores the pattern defining the service bean delegate class name.
+ */
+ private static final String SERVICE_DELEGATE_NAME_PATTERN = "serviceDelegateNamePattern";
+
// ---------------- constructor -------------------------------
@@ -304,6 +309,20 @@
new Object[] {StringUtils.trimToEmpty(this.getName())});
}
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetServiceDelegateName()
+ */
+ protected String handleGetServiceDelegateName()
+ {
+ String serviceDelegateNamePattern =
+ (String)this.getConfiguredProperty(SERVICE_DELEGATE_NAME_PATTERN);
+
+ return MessageFormat.format(
+ serviceDelegateNamePattern,
+ new Object[] {StringUtils.trimToEmpty(this.getName())});
+ }
+
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetFullyQualifiedServiceName()
*/
@@ -362,6 +381,18 @@
null);
}
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetFullyQualifiedServiceDelegateName()
+ */
+ protected String handleGetFullyQualifiedServiceDelegateName()
+ {
+ return EJB3MetafacadeUtils.getFullyQualifiedName(
+ this.getPackageName(),
+ this.getServiceDelegateName(),
+ null);
+ }
+
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetPersistenceContextUnitName()
*/
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:14:18
|
User: vancek
Date: 06/01/10 00:14:12
Modified: andromda-ejb3/src/main/resources/META-INF/andromda
namespace.xml metafacades.xml
Log:
added service delegate and locator related properties
Revision Changes Path
1.5 +25 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml
Index: namespace.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- namespace.xml 6 Jan 2006 13:53:27 -0000 1.4
+++ namespace.xml 10 Jan 2006 08:14:12 -0000 1.5
@@ -18,6 +18,12 @@
<documentation>
Defines the locations to which output is generated.
</documentation>
+ <property name="services">
+ <documentation>
+ The location to which all service classes (including the service locator(s))
+ will be generated.
+ </documentation>
+ </property>
<property name="entity-beans">
<documentation>
The directory to which Entity POJOs are generated.
@@ -199,6 +205,13 @@
bean listener class name.
</documentation>
</property>
+ <property name="serviceDelegateNamePattern">
+ <default>{0}Delegate</default>
+ <documentation>
+ The pattern to use when constructing the service
+ bean delegate class name.
+ </documentation>
+ </property>
<property name="messageDrivenNamePattern">
<default>{0}MDBBean</default>
<documentation>
@@ -485,6 +498,18 @@
tagged value.
</documentation>
</property>
+ <property name="serviceLocatorName">
+ <default>ServiceLocator</default>
+ <documentation>
+ The name to give the service locator class.
+ </documentation>
+ </property>
+ <property name="ejb3TypesPackage">
+ <default>org.andromda.ejb3</default>
+ <documentation>
+ The package to which extra types are generated (i.e. ServiceLocator).
+ </documentation>
+ </property>
</propertyGroup>
</properties>
</namespace>
\ No newline at end of file
1.4 +1 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml
Index: metafacades.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- metafacades.xml 6 Jan 2006 13:52:43 -0000 1.3
+++ metafacades.xml 10 Jan 2006 08:14:12 -0000 1.4
@@ -98,6 +98,7 @@
<property reference="serviceRemoteInterfaceName" />
<property reference="serviceImplementationNamePattern" />
<property reference="serviceListenerNamePattern" />
+ <property reference="serviceDelegateNamePattern" />
</metafacade>
<metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3SessionAttributeFacadeLogicImpl">
<mapping>
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:12:26
|
User: vancek
Date: 06/01/10 00:12:20
Modified: andromda-ejb3/src/main/resources/META-INF/andromda
cartridge.xml
Log:
added ServiceDelegate and ServiceLocator templates
Revision Changes Path
1.5 +28 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml
Index: cartridge.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- cartridge.xml 6 Jan 2006 13:51:54 -0000 1.4
+++ cartridge.xml 10 Jan 2006 08:12:20 -0000 1.5
@@ -16,6 +16,8 @@
<property reference="hibernateShowSql"/>
<property reference="hibernateCacheProvider"/>
<property reference="hibernateTreecacheMbeanObject"/>
+ <property reference="serviceLocatorName"/>
+ <property reference="ejb3TypesPackage"/>
<!-- Entity Bean Templates -->
@@ -134,6 +136,32 @@
</modelElements>
</template>
+ <template
+ path="templates/ejb3/ServiceDelegate.vsl"
+ outputPattern="$generatedFile"
+ outlet="services"
+ overwrite="true">
+ <modelElements variable="service">
+ <modelElement>
+ <type name="org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade"/>
+ </modelElement>
+ </modelElements>
+ </template>
+
+ <template
+ path="templates/ejb3/ServiceLocator.vsl"
+ outputPattern="$generatedFile"
+ outlet="services"
+ overwrite="true"
+ outputToSingleFile="true"
+ outputOnEmptyElements="false">
+ <modelElements>
+ <modelElement variable="services">
+ <type name="org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade"/>
+ </modelElement>
+ </modelElements>
+ </template>
+
<!-- Message Driven Bean Templates -->
<template
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:11:18
|
User: vancek
Date: 06/01/10 00:11:09
Modified: andromda-ejb3/src/main/resources/templates/ejb3
SessionBean.vsl SessionBeanImpl.vsl
Log:
use throwsClause for business operations
Revision Changes Path
1.4 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl
Index: SessionBean.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- SessionBean.vsl 6 Jan 2006 13:49:34 -0000 1.3
+++ SessionBean.vsl 10 Jan 2006 08:11:09 -0000 1.4
@@ -253,7 +253,7 @@
#* *##end
#* *##set ($returnType = $operation.returnType.fullyQualifiedName)
#* *##if ($operation.exceptionsPresent)
- $visibility abstract $returnType $operation.signature throws $operation.exceptionList;
+ $visibility abstract $returnType $operation.signature $operation.throwsClause;
#* *##else
$visibility abstract $returnType $operation.signature;
#* *##end
1.4 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl
Index: SessionBeanImpl.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- SessionBeanImpl.vsl 6 Jan 2006 13:50:35 -0000 1.3
+++ SessionBeanImpl.vsl 10 Jan 2006 08:11:09 -0000 1.4
@@ -58,7 +58,7 @@
*/
$visibility $returnType $signature
#* *##if ($operation.exceptionsPresent)
- throws $operation.exceptionList
+ $operation.throwsClause
#* *##end
{
//TODO: put your implementation here.
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:10:06
|
User: vancek
Date: 06/01/10 00:09:59
Added: andromda-ejb3/src/main/resources/templates/ejb3
ServiceDelegate.vsl ServiceLocator.vsl
Log:
initial revision
Revision Changes Path
1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/ServiceDelegate.vsl
Index: ServiceDelegate.vsl
===================================================================
// license-header java merge-point
#if ($stringUtils.isNotBlank($service.packageName))
package $service.packageName;
#end
#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceDelegateName,'.','/')}.java")
/**
* Web service delegator for {@link $service.fullyQualifiedServiceName}.
*
* @see $service.fullyQualifiedServiceName
*/
public class $service.serviceDelegateName
{
/**
* Environment properties
*/
private java.util.Properties env = null;
/**
* Default constructor
*/
public ${service.serviceDelegateName}()
{
// Null implementation
}
/**
* Constructor setting the envirinment properties.
*
* @param env
*/
public ${service.serviceDelegateName}(java.util.Properties env)
{
this.env = env;
}
/**
* Gets an instance of {@link $service.fullyQualifiedServiceRemoteInterfaceName}
*/
private final ${service.fullyQualifiedServiceRemoteInterfaceName} get${service.name}()
throws javax.naming.NamingException
{
return ${ejb3TypesPackage}.ServiceLocator.getInstance().get${service.name}(env);
}
#foreach ($operation in $service.businessOperations)
/**
* @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)}
*/
$operation.visibility $operation.returnType.fullyQualifiedName $operation.signature
#**##if ($operation.exceptionsPresent)
$operation.throwsClause
#**##end
{
try
{
#**##if (!$operation.returnTypePresent)
get${service.name}().${operation.name}(${operation.argumentNames});
#**##else
return get${service.name}().${operation.name}(${operation.argumentNames});
#**##end
}
#**##if (!$operation.exceptionsPresent)
catch (Exception ex)
#**##else
catch (javax.naming.NamingException ex)
#**##end
{
#**##if ($operation.exceptionsPresent)
#* *##foreach ($exception in $operation.exceptions)
#* *##if ($velocityCount == 1)
throw new ${exception.fullyQualifiedName}(ex);
#* *##end
#* *##end
#**##else
ex.printStackTrace();
#**##end
}
}
#end
/**
* Close down service delegate resources
*/
public void close()
{
${ejb3TypesPackage}.ServiceLocator.getInstance().shutdown();
}
}
1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/ServiceLocator.vsl
Index: ServiceLocator.vsl
===================================================================
// license-header java merge-point
#set ($generatedFile = "${serviceLocatorName}.java")
#if($stringUtils.isNotEmpty($ejb3TypesPackage))
package $ejb3TypesPackage;
#**##set ($generatedFile = "${stringUtils.replace($ejb3TypesPackage,'.','/')}/${generatedFile}")
#end
/**
* Locates and provides all available application services.
*/
public class $serviceLocatorName
{
/**
* The shared instance of this ${serviceLocatorName}.
*/
private static ${serviceLocatorName} instance;
/**
* The Context to lookup the service beans.
*/
protected javax.naming.InitialContext context = null;
/**
* Private constructor
*/
private ${serviceLocatorName}()
{
// shouldn't be instantiated
}
/**
* Gets the instance of this Class. Create it if doesn't already exit, otherwise
* return the current instance.
*
* @return the shared service locator instance.
*/
public final static $serviceLocatorName getInstance()
{
if (instance == null)
{
instance = new ${serviceLocatorName}();
}
return instance;
}
/**
* Gets the InitialContext.
*
* @param env the Context environment properties.
* @return the javax.naming.InitialContext.
* @throws javax.naming.NamingException failure to create InitialContext
*/
protected synchronized javax.naming.InitialContext getContext(java.util.Properties env)
throws javax.naming.NamingException
{
if (this.context == null)
{
this.context = new javax.naming.InitialContext(env);
}
return this.context;
}
/**
* Instantiate a new InitialContext using the properties table.
*
* @param env passed to the InitialContext constructor.
* @return the javax.naming.InitialContext.
* @throws javax.naming.NamingException failure to create InitialContext
*/
protected synchronized javax.naming.InitialContext newContext(java.util.Properties env)
throws javax.naming.NamingException
{
this.context = new javax.naming.InitialContext(env);
return this.context;
}
/**
* Shuts down the ServiceLocator and releases any used resources.
*/
public synchronized void shutdown()
{
if (this.context != null)
{
try
{
this.context.close();
}
catch (javax.naming.NamingException ne)
{
// ignore
}
finally
{
this.context = null;
}
}
}
#foreach ($service in $services)
/**
* Gets an instance of {@link $service.fullyQualifiedServiceRemoteName}.
*
* @param env the Context environment properties. Null represents no properties.
* @throws javax.naming.NamingException failure to lookup remote service interface.
*/
public final $service.fullyQualifiedServiceRemoteInterfaceName get${service.name}(java.util.Properties env)
throws javax.naming.NamingException
{
return (${service.fullyQualifiedServiceRemoteInterfaceName})
getContext(env).lookup(${service.fullyQualifiedServiceRemoteInterfaceName}.class.getName());
}
#end
/**
* Gets an instance of the given service.
*
* @param serviceName lookup this service from the context.
* @throws javax.naming.NamingException failure to lookup remote service interface.
*/
public final Object getService(String serviceName)
throws javax.naming.NamingException
{
return getService(serviceName, null);
}
/**
* Gets an instance of the given service.
*
* @param serviceName lookup this service from the context.
* @param env the Context environment properties. Null represents no properties.
* @throws javax.naming.NamingException failure to lookup remote service interface.
*/
public final Object getService(String serviceName, java.util.Properties env)
throws javax.naming.NamingException
{
return getContext(env).lookup(serviceName);
}
}
|
|
From: Vance K. <va...@us...> - 2006-01-10 08:09:18
|
User: vancek
Date: 06/01/10 00:09:12
Modified: andromda-ejb3/src/main/resources/templates/ejb3
MessageDrivenBean.vsl
Log:
added CallbackListener annotation
Revision Changes Path
1.2 +1 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl
Index: MessageDrivenBean.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- MessageDrivenBean.vsl 6 Jan 2006 13:51:12 -0000 1.1
+++ MessageDrivenBean.vsl 10 Jan 2006 08:09:11 -0000 1.2
@@ -27,6 +27,7 @@
#end
}
)
+@javax.ejb.CallbackListener(${mdb.fullyQualifiedMessageDrivenListenerName}.class)
#if ($mdb.transactionManagement)
@javax.ejb.TransactionManagement(javax.ejb.TransactionManagementType.${mdb.transactionManagement})
#end
|
|
From: Vance K. <va...@us...> - 2006-01-06 14:01:32
|
User: vancek
Date: 06/01/06 06:01:11
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3SessionOperationFacadeLogicImpl.java
Log:
added isDenyAll and getFlushMode methods
Revision Changes Path
1.3 +22 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java
Index: EJB3SessionOperationFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3SessionOperationFacadeLogicImpl.java 3 Jan 2006 01:44:07 -0000 1.2
+++ EJB3SessionOperationFacadeLogicImpl.java 6 Jan 2006 14:01:11 -0000 1.3
@@ -147,4 +147,26 @@
return permitAll;
}
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsDenyAll()
+ */
+ protected boolean handleIsDenyAll()
+ {
+ boolean denyAll = false;
+ String denyAllStr = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_SECURITY_DENY_ALL);
+ if (StringUtils.isNotBlank(denyAllStr))
+ {
+ denyAll = BooleanUtils.toBoolean(denyAllStr);
+ }
+ return denyAll;
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleGetFlushMode()
+ */
+ protected String handleGetFlushMode()
+ {
+ return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_FLUSH_MODE);
+ }
+
}
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-06 14:00:43
|
User: vancek
Date: 06/01/06 06:00:33
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3SessionFacadeLogicImpl.java
Log:
added extra transaction and security related methods. added getMessageDrivenReferences method.
Revision Changes Path
1.3 +106 -12 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java
Index: EJB3SessionFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3SessionFacadeLogicImpl.java 3 Jan 2006 01:43:43 -0000 1.2
+++ EJB3SessionFacadeLogicImpl.java 6 Jan 2006 14:00:32 -0000 1.3
@@ -212,17 +212,8 @@
*/
protected java.lang.String handleGetTransactionType()
{
- String transactionType = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE);
- if (StringUtils.isNotBlank(transactionType))
- {
- transactionType = EJB3MetafacadeUtils.convertTransactionType(transactionType);
- }
- else
- {
- transactionType = transactionType =
- String.valueOf(this.getConfiguredProperty(EJB3Globals.TRANSACTION_TYPE));
- }
- return transactionType;
+ return EJB3MetafacadeUtils.getTransactionType(this,
+ String.valueOf(this.getConfiguredProperty(EJB3Globals.TRANSACTION_TYPE)));
}
/**
@@ -429,7 +420,10 @@
* @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#
* handleGetAttributesAsList(java.util.Collection, boolean, boolean)
*/
- protected String handleGetAttributesAsList(Collection attributes, boolean includeTypes, boolean includeNames)
+ protected String handleGetAttributesAsList(
+ Collection attributes,
+ boolean includeTypes,
+ boolean includeNames)
{
if (!includeNames && !includeTypes || attributes == null)
{
@@ -523,6 +517,20 @@
}
/**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleIsDenyAll()
+ */
+ protected boolean handleIsDenyAll()
+ {
+ boolean denyAll = false;
+ String denyAllStr = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_SECURITY_DENY_ALL);
+ if (StringUtils.isNotBlank(denyAllStr))
+ {
+ denyAll = BooleanUtils.toBoolean(denyAllStr);
+ }
+ return denyAll;
+ }
+
+ /**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetSecurityDomain()
*/
protected String handleGetSecurityDomain()
@@ -536,4 +544,90 @@
return securityDomain;
}
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetRunAs()
+ */
+ protected String handleGetRunAs()
+ {
+ return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_SECURITY_RUN_AS);
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetTransactionManagement()
+ */
+ protected String handleGetTransactionManagement()
+ {
+ return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_MANAGEMENT);
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleIsTransactionManagementBean()
+ */
+ protected boolean handleIsTransactionManagementBean()
+ {
+ return StringUtils.equalsIgnoreCase(getTransactionManagement(), EJB3Globals.TRANSACTION_MANAGEMENT_BEAN);
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetResourceUserTransactionReferences()
+ */
+ protected Collection handleGetResourceUserTransactionReferences()
+ {
+ Collection references = this.getSourceDependencies();
+ CollectionUtils.filter(references, new Predicate()
+ {
+ public boolean evaluate(Object object)
+ {
+ DependencyFacade dependency = (DependencyFacade)object;
+ ModelElementFacade targetElement = dependency.getTargetElement();
+ return (targetElement != null
+ && EJB3SessionFacade.class.isAssignableFrom(targetElement.getClass())
+ && dependency.hasStereotype(EJB3Profile.STEREOTYPE_RESOURCE_REF)
+ && targetElement.hasStereotype(EJB3Profile.STEREOTYPE_USER_TRANSACTION));
+ }
+ });
+ return references;
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetResourceDataSourceReferences()
+ */
+ protected Collection handleGetResourceDataSourceReferences()
+ {
+ Collection references = this.getSourceDependencies();
+ CollectionUtils.filter(references, new Predicate()
+ {
+ public boolean evaluate(Object object)
+ {
+ DependencyFacade dependency = (DependencyFacade)object;
+ ModelElementFacade targetElement = dependency.getTargetElement();
+ return (targetElement != null
+ && EJB3SessionFacade.class.isAssignableFrom(targetElement.getClass())
+ && dependency.hasStereotype(EJB3Profile.STEREOTYPE_RESOURCE_REF)
+ && targetElement.hasStereotype(EJB3Profile.STEREOTYPE_DATA_SOURCE));
+ }
+ });
+ return references;
+ }
+
+ /**
+ * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetMessageDrivenReferences()
+ */
+ protected Collection handleGetMessageDrivenReferences()
+ {
+ Collection references = this.getSourceDependencies();
+ CollectionUtils.filter(references, new Predicate()
+ {
+ public boolean evaluate(Object object)
+ {
+ DependencyFacade dependency = (DependencyFacade)object;
+ ModelElementFacade targetElement = dependency.getTargetElement();
+ return (targetElement != null
+ && dependency.hasStereotype(EJB3Profile.STEREOTYPE_MESSAGE_DRIVEN_REF)
+ && targetElement.hasStereotype(EJB3Profile.STEREOTYPE_MESSAGE_DRIVEN));
+ }
+ });
+ return references;
+ }
+
}
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:58:41
|
User: vancek
Date: 06/01/06 05:58:18
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3OperationFacadeLogicImpl.java
Log:
removed getTransactionType method
Revision Changes Path
1.3 +0 -18 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3OperationFacadeLogicImpl.java
Index: EJB3OperationFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3OperationFacadeLogicImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3OperationFacadeLogicImpl.java 3 Jan 2006 01:40:54 -0000 1.2
+++ EJB3OperationFacadeLogicImpl.java 6 Jan 2006 13:58:18 -0000 1.3
@@ -25,24 +25,6 @@
// ---------------- methods -------------------------------
/**
- * @see org.andromda.cartridges.ejb3.metafacades.EJB3OperationFacade#getTransactionType()
- */
- protected java.lang.String handleGetTransactionType()
- {
- String transType = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true);
- if (StringUtils.isNotBlank(transType))
- {
- transType = EJB3MetafacadeUtils.convertTransactionType(transType);
- }
- else
- {
- transType = StringUtils.trimToEmpty(
- ObjectUtils.toString(this.getConfiguredProperty(EJB3Globals.TRANSACTION_TYPE)));
- }
- return transType;
- }
-
- /**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3OperationFacade#isBusinessOperation()
*/
protected boolean handleIsBusinessOperation()
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:58:01
|
User: vancek
Date: 06/01/06 05:57:39
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3MetafacadeUtils.java
Log:
added getTransactionType used by ClassifierFacades
Revision Changes Path
1.3 +70 -41 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MetafacadeUtils.java
Index: EJB3MetafacadeUtils.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MetafacadeUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3MetafacadeUtils.java 3 Jan 2006 01:39:53 -0000 1.2
+++ EJB3MetafacadeUtils.java 6 Jan 2006 13:57:39 -0000 1.3
@@ -213,8 +213,75 @@
}
/**
- * Gets all constants for the specified <code>classifier</code>. If <code>follow</code> is true, then a search up
- * the inheritance hierachy will be performed and all super type constants will also be retrieved.
+ * Returns the transaction type for the specified <code>classifier</code>.
+ *
+ * @param classifier the classifier from which to retrieve the transaction type.
+ * @param defaultTransactionType the default transaction type if no tagged value is specified.
+ * @return the transaction type as a String.
+ */
+ static String getTransactionType(ClassifierFacade classifier, String defaultTransactionType)
+ {
+ final String methodName = "EJBMetafacadeUtils.getTransactionType";
+ ExceptionUtils.checkNull(methodName, "classifer", classifier);
+
+ String transactionType = (String)classifier.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE);
+ if (StringUtils.isNotBlank(transactionType))
+ {
+ transactionType = convertTransactionType(transactionType);
+ }
+ else
+ {
+ transactionType = defaultTransactionType;
+ }
+ return transactionType;
+ }
+
+ /**
+ * Convert the transaction type from lower casing to upper casing.
+ * This maintains reusable tagged value enumeration from EJB
+ * implementation.
+ *
+ * @param transType
+ * @return
+ */
+ static String convertTransactionType(String transType)
+ {
+ final String methodName = "EJBMetafacadeUtils.convertTransactionType";
+ ExceptionUtils.checkNull(methodName, "transType", transType);
+
+ String type = null;
+ if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_MANDATORY))
+ {
+ type = "MANDATORY";
+ }
+ else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_NEVER))
+ {
+ type = "NEVER";
+ }
+ else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_NOT_SUPPORTED))
+ {
+ transType = "NOT_SUPPORTED";
+ }
+ else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_REQUIRED))
+ {
+ type = "REQUIRED";
+ }
+ else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_REQUIRES_NEW))
+ {
+ type = "REQUIRES_NEW";
+ }
+ else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_SUPPORTS))
+ {
+ type = "SUPPORTS";
+ }
+ return type;
+ }
+
+ /**
+ * Gets all constants for the specified <code>classifier</code>.
+ * If <code>follow</code> is true, then a search up
+ * the inheritance hierachy will be performed and all super
+ * type constants will also be retrieved.
*
* @param classifier the classifier from which to retrieve the constants
* @param follow true/false on whether or not to 'follow' the inheritance hierarchy when retrieving the
@@ -225,7 +292,7 @@
ClassifierFacade classifier,
boolean follow)
{
- final String methodName = "EJBMetafacadeUtils.getEnvironmentEntries";
+ final String methodName = "EJBMetafacadeUtils.getConstants";
ExceptionUtils.checkNull(methodName, "classifer", classifier);
Collection attributes = classifier.getStaticAttributes();
@@ -287,42 +354,4 @@
fullyQualifiedName.append(StringUtils.trimToEmpty(suffix));
return fullyQualifiedName.toString();
}
-
- /**
- * Convert the transaction type from lower casing to upper casing.
- * This maintains reusable tagged value enumeration from EJB
- * implementation.
- *
- * @param transType
- * @return
- */
- static String convertTransactionType(String transType)
- {
- String type = null;
- if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_MANDATORY))
- {
- type = "MANDATORY";
- }
- else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_NEVER))
- {
- type = "NEVER";
- }
- else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_NOT_SUPPORTED))
- {
- transType = "NOT_SUPPORTED";
- }
- else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_REQUIRED))
- {
- type = "REQUIRED";
- }
- else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_REQUIRES_NEW))
- {
- type = "REQUIRES_NEW";
- }
- else if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_SUPPORTS))
- {
- type = "SUPPORTS";
- }
- return type;
- }
}
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:57:15
|
User: vancek
Date: 06/01/06 05:56:35
Added: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3MessageDrivenFacadeLogicImpl.java
Log:
initial revision
Revision Changes Path
1.1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MessageDrivenFacadeLogicImpl.java
Index: EJB3MessageDrivenFacadeLogicImpl.java
===================================================================
package org.andromda.cartridges.ejb3.metafacades;
import java.text.MessageFormat;
import java.util.Collection;
import java.util.Iterator;
import org.andromda.cartridges.ejb3.EJB3Globals;
import org.andromda.cartridges.ejb3.EJB3Profile;
import org.andromda.metafacades.uml.AttributeFacade;
import org.andromda.metafacades.uml.DependencyFacade;
import org.andromda.metafacades.uml.ModelElementFacade;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.apache.commons.lang.StringUtils;
/**
* MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade.
*
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade
*/
public class EJB3MessageDrivenFacadeLogicImpl
extends EJB3MessageDrivenFacadeLogic
{
/**
* The property which stores the default destination type
*/
public static final String MDB_DESTINATION_TYPE = "messageDrivenDestinationType";
/**
* The property which stores the pattern defining the JMS message driven bean name.
*/
public static final String MESSAGE_DRIVEN_NAME_PATTERN = "messageDrivenNamePattern";
/**
* The property which stores the pattern defining the JMS message driven bean listener callback name.
*/
private static final String MESSAGE_DRIVEN_LISTENER_NAME_PATTERN = "messageDrivenListenerNamePattern";
/**
* The property which stores the pattern defining the JMS message driven bean implementation name.
*/
private static final String MESSAGE_DRIVEN_IMPLEMENTATION_NAME_PATTERN = "messageDrivenImplementationNamePattern";
// ---------------- constructor -------------------------------
public EJB3MessageDrivenFacadeLogicImpl (Object metaObject, String context)
{
super (metaObject, context);
}
// ---------------- methods -------------------------------
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getAcknowledgeMode()
*/
protected java.lang.String handleGetAcknowledgeMode()
{
return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_MDB_ACKNOWLEDGE_MODE);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getDestination()
*/
protected java.lang.String handleGetDestination()
{
String destination = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_MDB_DESTINATION);
if (StringUtils.isBlank(destination))
{
destination = (getDestinationType().equalsIgnoreCase(EJB3Globals.MDB_DESTINATION_TYPE_TOPIC) ?
"topic/" : "queue/") + getMessageDrivenName();
}
return destination;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getDestinationType()
*/
protected java.lang.String handleGetDestinationType()
{
String destinationType = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_MDB_DESTINATION_TYPE);
if (StringUtils.isBlank(destinationType))
{
destinationType = (String)this.getConfiguredProperty(MDB_DESTINATION_TYPE);
}
return destinationType;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getFullyQualifiedMessageDrivenImplementationName()
*/
protected java.lang.String handleGetFullyQualifiedMessageDrivenImplementationName()
{
return EJB3MetafacadeUtils.getFullyQualifiedName(
this.getPackageName(),
this.getMessageDrivenImplementationName(),
null);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getFullyQualifiedMessageDrivenListenerName()
*/
protected java.lang.String handleGetFullyQualifiedMessageDrivenListenerName()
{
return EJB3MetafacadeUtils.getFullyQualifiedName(
this.getPackageName(),
this.getMessageDrivenListenerName(),
null);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getFullyQualifiedMessageDrivenName()
*/
protected java.lang.String handleGetFullyQualifiedMessageDrivenName()
{
return EJB3MetafacadeUtils.getFullyQualifiedName(
this.getPackageName(),
this.getMessageDrivenName(),
null);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getMessageDrivenImplementationName()
*/
protected java.lang.String handleGetMessageDrivenImplementationName()
{
String messageDrivenImplNamePattern =
(String)this.getConfiguredProperty(MESSAGE_DRIVEN_IMPLEMENTATION_NAME_PATTERN);
return MessageFormat.format(
messageDrivenImplNamePattern,
new Object[] {StringUtils.trimToEmpty(this.getName())});
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getMessageDrivenListenerName()
*/
protected java.lang.String handleGetMessageDrivenListenerName()
{
String messageDrivenListenerNamePattern =
(String)this.getConfiguredProperty(MESSAGE_DRIVEN_LISTENER_NAME_PATTERN);
return MessageFormat.format(
messageDrivenListenerNamePattern,
new Object[] {StringUtils.trimToEmpty(this.getName())});
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getMessageDrivenName()
*/
protected java.lang.String handleGetMessageDrivenName()
{
String messageDrivenNamePattern =
(String)this.getConfiguredProperty(MESSAGE_DRIVEN_NAME_PATTERN);
return MessageFormat.format(
messageDrivenNamePattern,
new Object[] {StringUtils.trimToEmpty(this.getName())});
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getMessageSelector()
*/
protected java.lang.String handleGetMessageSelector()
{
return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_MDB_SELECTOR);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getRunAs()
*/
protected java.lang.String handleGetRunAs()
{
return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_SECURITY_RUN_AS);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getSubscriptionDurability()
*/
protected java.lang.String handleGetSubscriptionDurability()
{
String durability = null;
if (StringUtils.equalsIgnoreCase(getDestinationType(), EJB3Globals.MDB_DESTINATION_TYPE_TOPIC))
{
durability = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_MDB_DURABILITY);
}
return durability;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getTransactionManagement()
*/
protected java.lang.String handleGetTransactionManagement()
{
return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_MANAGEMENT);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#isTransactionManagementBean()
*/
protected boolean handleIsTransactionManagementBean()
{
return StringUtils.equalsIgnoreCase(getTransactionManagement(), EJB3Globals.TRANSACTION_MANAGEMENT_BEAN);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getTransactionType()
*/
protected java.lang.String handleGetTransactionType()
{
return EJB3MetafacadeUtils.getTransactionType(this,
String.valueOf(this.getConfiguredProperty(EJB3Globals.TRANSACTION_TYPE)));
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#
* getAttributesAsList(java.util.Collection, boolean, boolean)
*/
protected java.lang.String handleGetAttributesAsList(
java.util.Collection attributes,
boolean includeTypes,
boolean includeNames)
{
if (!includeNames && !includeTypes || attributes == null)
{
return "";
}
StringBuffer sb = new StringBuffer();
String separator = "";
for (final Iterator it = attributes.iterator(); it.hasNext();)
{
AttributeFacade attr = (AttributeFacade)it.next();
sb.append(separator);
separator = ", ";
if (includeTypes)
{
sb.append(attr.getType().getFullyQualifiedName());
sb.append(" ");
}
if (includeNames)
{
sb.append(attr.getName());
}
}
return sb.toString();
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade#getConstants(boolean)
*/
protected java.util.Collection handleGetConstants(boolean follow)
{
return EJB3MetafacadeUtils.getConstants(this, follow);
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacadeLogic#getServiceReferences()
*/
public Collection getServiceReferences()
{
Collection references = super.getServiceReferences();
CollectionUtils.filter(references, new Predicate()
{
public boolean evaluate(Object object)
{
ModelElementFacade targetElement = ((DependencyFacade)object).getTargetElement();
return targetElement.hasStereotype(EJB3Profile.STEREOTYPE_SERVICE);
}
});
return references;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacadeLogic#handleIsDestinationTypeQueue()
*/
protected boolean handleIsDestinationTypeQueue()
{
boolean typeQueue = false;
if (StringUtils.equalsIgnoreCase(this.getDestinationType(), EJB3Globals.MDB_DESTINATION_TYPE_QUEUE))
{
typeQueue = true;
}
return typeQueue;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacadeLogic#handleIsDestinationTypeTopic()
*/
protected boolean handleIsDestinationTypeTopic()
{
boolean typeTopic = false;
if (StringUtils.equalsIgnoreCase(this.getDestinationType(), EJB3Globals.MDB_DESTINATION_TYPE_TOPIC))
{
typeTopic = true;
}
return typeTopic;
}
}
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:56:43
|
User: vancek
Date: 06/01/06 05:56:17
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3EntityAttributeFacadeLogicImpl.java
EJB3EntityFacadeLogicImpl.java
Log:
removed getTransacionType method
Revision Changes Path
1.3 +0 -8 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java
Index: EJB3EntityAttributeFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3EntityAttributeFacadeLogicImpl.java 3 Jan 2006 01:36:31 -0000 1.2
+++ EJB3EntityAttributeFacadeLogicImpl.java 6 Jan 2006 13:56:17 -0000 1.3
@@ -28,14 +28,6 @@
// --------------- methods ---------------------
/**
- * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacade#getTransactionType()
- */
- protected java.lang.String handleGetTransactionType()
- {
- return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true);
- }
-
- /**
* @see org.andromda.metafacades.uml.AttributeFacade#getGetterName()
*/
public String getGetterName()
1.3 +0 -14 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java
Index: EJB3EntityFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3EntityFacadeLogicImpl.java 3 Jan 2006 01:38:01 -0000 1.2
+++ EJB3EntityFacadeLogicImpl.java 6 Jan 2006 13:56:17 -0000 1.3
@@ -323,20 +323,6 @@
}
/**
- * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacade#getTransactionType()
- */
- protected java.lang.String handleGetTransactionType()
- {
- String transactionType = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE);
- if (StringUtils.isBlank(transactionType))
- {
- transactionType = transactionType =
- String.valueOf(this.getConfiguredProperty(EJB3Globals.TRANSACTION_TYPE));
- }
- return transactionType;
- }
-
- /**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacade#getCreateMethods(boolean)
*/
protected java.util.Collection handleGetCreateMethods(boolean follow)
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:55:30
|
User: vancek
Date: 06/01/06 05:55:19
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades
EJB3AssociationFacadeLogicImpl.java
Log:
removed getTransactionType method
Revision Changes Path
1.2 +0 -8 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationFacadeLogicImpl.java
Index: EJB3AssociationFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationFacadeLogicImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- EJB3AssociationFacadeLogicImpl.java 28 Dec 2005 00:32:55 -0000 1.1
+++ EJB3AssociationFacadeLogicImpl.java 6 Jan 2006 13:55:19 -0000 1.2
@@ -22,14 +22,6 @@
// --------------- methods ---------------------
/**
- * @see org.andromda.cartridges.ejb3.metafacades.EJB3AssociationFacade#getTransactionType()
- */
- protected java.lang.String handleGetTransactionType()
- {
- return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE);
- }
-
- /**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3AssociationFacadeLogic#handleGetTableName()
*/
public String getTableName()
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:54:34
|
User: vancek
Date: 06/01/06 05:54:28
Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3
EJB3Profile.java EJB3Globals.java
Log:
added MDB related constants
Revision Changes Path
1.3 +116 -16 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java
Index: EJB3Profile.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3Profile.java 3 Jan 2006 01:32:12 -0000 1.2
+++ EJB3Profile.java 6 Jan 2006 13:54:28 -0000 1.3
@@ -20,6 +20,21 @@
/* ----------------- Stereotypes -------------------- */
/**
+ * Specifies the entity bean stereotype.
+ */
+ public static final String STEREOTYPE_ENTITY = profile.get("ENTITY");
+
+ /**
+ * Specifies the service bean stereotype.
+ */
+ public static final String STEREOTYPE_SERVICE = profile.get("SERVICE");
+
+ /**
+ * Specifies the JMS message driven bean stereotype.
+ */
+ public static final String STEREOTYPE_MESSAGE_DRIVEN = profile.get("MESSAGE_DRIVEN");
+
+ /**
* Specifies the create method stereotype - used in entity POJO
* and session bean.
*/
@@ -55,6 +70,26 @@
*/
public static final String STEREOTYPE_PERSISTENCE_CONTEXT = profile.get("PERSISTENCE_CONTEXT");
+ /**
+ * Represents a reference to a resource ie UserTransaction or DataSource.
+ */
+ public static final String STEREOTYPE_RESOURCE_REF = profile.get("RESOURCE_REF");
+
+ /**
+ * Represents a reference to a JMS message driven bean.
+ */
+ public static final String STEREOTYPE_MESSAGE_DRIVEN_REF = profile.get("MESSAGE_DRIVEN_REF");
+
+ /**
+ * Represents a class used to inject a javax.transaction.UserTransaction as a resource.
+ */
+ public static final String STEREOTYPE_USER_TRANSACTION = profile.get("USER_TRANSACTION");
+
+ /**
+ * Represents a class used to inject a javax.sql.DataSource as a resource.
+ */
+ public static final String STEREOTYPE_DATA_SOURCE = profile.get("DATA_SOURCE");
+
/* ----------------- Tagged Values -------------------- */
/**
@@ -68,7 +103,8 @@
public static final String TAGGEDVALUE_EJB_QUERY = "@andromda.ejb.query";
/**
- * The tagged value indicating the view type for the class or operation.
+ * The tagged value indicating the view type for the
+ * class or operation.
*/
public static final String TAGGEDVALUE_EJB_VIEWTYPE = "@andromda.ejb.viewType";
@@ -78,6 +114,13 @@
public static final String TAGGEDVALUE_EJB_TRANSACTION_TYPE = "@andromda.ejb.transaction.type";
/**
+ * The tagged value indicating the transaction demarcation
+ * strategy. This only applies at the class level of a
+ * session bean.
+ */
+ public static final String TAGGEDVALUE_EJB_TRANSACTION_MANAGEMENT = "@andromda.ejb.transaction.management";
+
+ /**
*
*/
public static final String TAGGEDVALUE_EJB_NO_SYNTHETIC_CREATE_METHOD = "@andromda.ejb.noSyntheticCreateMethod";
@@ -89,7 +132,8 @@
"@andromda.persistence.finder.temporal.type";
/**
- * The tagged value indicating the finder result type (First or Max).
+ * The tagged value indicating the finder result type
+ * (First or Max).
*/
public static final String TAGGEDVALUE_PERSISTENCE_FINDER_PARAMETER_RESULT_TYPE =
"@andromda.persistence.finder.result.type";
@@ -170,14 +214,15 @@
public static final String TAGGEDVALUE_PERSISTENCE_COLUMN_NULLABLE = "@andromda.persistence.column.nullable";
/**
- * The tagged value that indicates the order by logic on the Many side of the
- * One-to-Many and Many-to-Many relationships.
+ * The tagged value that indicates the order by logic on the
+ * Many side of the One-to-Many and Many-to-Many relationships.
*/
public static final String TAGGEDVALUE_PERSISTENCE_ORDERBY = "@andromda.persistence.orderBy";
/**
- * The tagged value indicating the underlying relationship may be NULL. If set to false,
- * non-null relationship must always exist.
+ * The tagged value indicating the underlying relationship may
+ * be NULL. If set to false, non-null relationship must always
+ * exist.
*/
public static final String TAGGEDVALUE_PERSISTENCE_OPTIONAL = profile.get("ATTRIBUTE_PERSISTENCE_OPTIONAL");
@@ -200,72 +245,127 @@
public static final String TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_TYPE = profile.get("ENTITY_DISCRIMINATOR_TYPE");
/**
- * The tagged value indicating that the row is an entity of the annotated entity type.
+ * The tagged value indicating that the row is an entity of
+ * the annotated entity type.
*/
public static final String TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_VALUE =
profile.get("ENTITY_DISCRIMINATOR_VALUE");
/**
- * The tagged value indicating the name of the column used for the discriminator
+ * The tagged value indicating the name of the column used
+ * for the discriminator
*/
public static final String TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_COLUMN =
profile.get("ENTITY_DISCRIMINATOR_COLUMN");
/**
- * The tagged value representing the SQL used in generation of DDL for the discriminator column
+ * The tagged value representing the SQL used in generation
+ * of DDL for the discriminator column
*/
public static final String TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_COLUMN_DEFINITION =
profile.get("ENTITY_DISCRIMINATOR_COLUMN_DEFINITION");
/**
- * The tagged value representing the column length for the String discriminator column type.
+ * The tagged value representing the column length for the
+ * String discriminator column type.
*/
public static final String TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_COLUMN_LENGTH =
profile.get("ENTITY_DISCRIMINATOR_COLUMN_LENGTH");
/**
- * The tagged value representing the access type for the entity class
+ * The tagged value representing the access type for the
+ * entity class
*/
public static final String TAGGEDVALUE_PERSISTENCE_ACCESS_TYPE = profile.get("ENTITY_ACCESS_TYPE");
/**
- * The tagged value representing whether this entity is an embeddable superclass
+ * The tagged value representing whether this entity is an
+ * embeddable superclass
*/
public static final String TAGGEDVALUE_PERSISTENCE_EMBEDDABLE_SUPERCLASS =
profile.get("ENTITY_EMBEDDABLE_SUPERCLASS");
/**
- * The tagged value representing the persistence context unit name (EntityManager)
+ * The tagged value representing the persistence context
+ * unit name (EntityManager)
*/
public static final String TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_UNIT_NAME =
profile.get("SERVICE_PERSISTENCE_CONTEXT_UNIT_NAME");
/**
- * The tagged value representing the persistence context transaction/extended type
+ * The tagged value representing the persistence context
+ * transaction/extended type
*/
public static final String TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_TYPE =
profile.get("SERVICE_PERSISTENCE_CONTEXT_TYPE");
/**
+ * The tagged value representing the flush mode on bean operation.
+ */
+ public static final String TAGGEDVALUE_EJB_PERSISTENCE_FLUSH_MODE = profile.get("SERVICE_PERSISTENCE_FLUSH_MODE");
+
+ /**
* The tagged value representing the session EJB type (Stateless or Stateful)
*/
public static final String TAGGEDVALUE_EJB_SESSION_TYPE = profile.get("SERVICE_TYPE");
/**
* The tagged value representing the comma separated list of security roles
- * permitted to execute operations in a session bean.
+ * permitted to execute operations in the bean.
*/
public static final String TAGGEDVALUE_EJB_SECURITY_ROLES_ALLOWED = profile.get("SECURITY_ROLES_ALLOWED");
/**
* The tagged value representing whether to permit all roles to execute
- * operations in a session bean.
+ * operations in the bean.
*/
public static final String TAGGEDVALUE_EJB_SECURITY_PERMIT_ALL = profile.get("SECURITY_PERMIT_ALL");
/**
+ * The tagged value representing whether to deny all roles access rights
+ * to execute operations in the bean.
+ */
+ public static final String TAGGEDVALUE_EJB_SECURITY_DENY_ALL = profile.get("SECURITY_DENY_ALL");
+
+ /**
* The tagged value representing the security domain to sepecify at
* the session bean class level.
*/
public static final String TAGGEDVALUE_EJB_SECURITY_DOMAIN = profile.get("SECURITY_DOMAIN");
+
+ /**
+ * The tagged value representing the run-as identity the bean will
+ * use when making calls.
+ */
+ public static final String TAGGEDVALUE_EJB_SECURITY_RUN_AS = profile.get("SECURITY_RUN_AS");
+
+ /**
+ * The tagged value representing the JMS message driven bean
+ * acknowledge mode.
+ */
+ public static final String TAGGEDVALUE_EJB_MDB_ACKNOWLEDGE_MODE = profile.get("MDB_ACKNOWLEDGE_MODE");
+
+ /**
+ * The tagged value representing the JMS message driven bean
+ * destination JNDI name.
+ */
+ public static final String TAGGEDVALUE_EJB_MDB_DESTINATION = profile.get("MDB_DESTINATION");
+
+ /**
+ * The tagged value representing the JMS message driven bean
+ * destination type.
+ */
+ public static final String TAGGEDVALUE_EJB_MDB_DESTINATION_TYPE = profile.get("MDB_DESTINATION_TYPE");
+
+ /**
+ * The tagged value representing the JMS message driven bean
+ * selector logic.
+ */
+ public static final String TAGGEDVALUE_EJB_MDB_SELECTOR = profile.get("MDB_SELECTOR");
+
+ /**
+ * The tagged value representing the JMS message driven bean
+ * topic subscription durability mode.
+ */
+ public static final String TAGGEDVALUE_EJB_MDB_DURABILITY = profile.get("MDB_SUBSCRIPTION_DURABILITY");
}
\ No newline at end of file
1.3 +22 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Globals.java
Index: EJB3Globals.java
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Globals.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- EJB3Globals.java 3 Jan 2006 01:15:54 -0000 1.2
+++ EJB3Globals.java 6 Jan 2006 13:54:28 -0000 1.3
@@ -211,4 +211,26 @@
* Represents the default security domain
*/
public static final String SECURITY_DOMAIN = "securityDomain";
+
+ /**
+ * Represents the bean managed transaction demarcation
+ */
+ public static final String TRANSACTION_MANAGEMENT_BEAN = "bean";
+
+ /**
+ * Represents the container managed transaction demarcation
+ */
+ public static final String TRANSACTION_MANAGEMENT_CONTAINER = "container";
+
+ /**
+ * Represents the fully qualified topic destination type for the
+ * JMS message driven bean
+ */
+ public static final String MDB_DESTINATION_TYPE_TOPIC = "javax.jms.Topic";
+
+ /**
+ * Represents the fully qualified queue destination type for the
+ * JMS message driven bean
+ */
+ public static final String MDB_DESTINATION_TYPE_QUEUE = "javax.jms.Queue";
}
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:53:35
|
User: vancek
Date: 06/01/06 05:53:27
Modified: andromda-ejb3/src/main/resources/META-INF/andromda
namespace.xml profile.xml
Log:
added MDB property elements
Revision Changes Path
1.4 +49 -3 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml
Index: namespace.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- namespace.xml 4 Jan 2006 06:12:19 -0000 1.3
+++ namespace.xml 6 Jan 2006 13:53:27 -0000 1.4
@@ -47,6 +47,18 @@
files are generated.
</documentation>
</property>
+ <property name="message-driven-beans">
+ <documentation>
+ The directory to which Message Driven Bean files
+ are generated.
+ </documentation>
+ </property>
+ <property name="message-driven-impls">
+ <documentation>
+ The directory to which Message Driven Bean
+ implementation files are generated.
+ </documentation>
+ </property>
</propertyGroup>
<propertyGroup name="JDBC">
<property name="entityManagerName" required="false">
@@ -162,14 +174,14 @@
<property name="serviceLocalInterfaceNamePattern">
<default>{0}Local</default>
<documentation>
- The pattern to use when constructing a service
+ The pattern to use when constructing the service
bean local interface name.
</documentation>
</property>
<property name="serviceRemoteInterfaceName">
<default>{0}Remote</default>
<documentation>
- The pattern to use when constructing a service
+ The pattern to use when constructing the service
bean remote interface name.
</documentation>
</property>
@@ -183,10 +195,31 @@
<property name="serviceListenerNamePattern">
<default>{0}Listener</default>
<documentation>
- The pattern to use when constructing an service
+ The pattern to use when constructing the service
+ bean listener class name.
+ </documentation>
+ </property>
+ <property name="messageDrivenNamePattern">
+ <default>{0}MDBBean</default>
+ <documentation>
+ The pattern to use when construction the JMS message driven
+ bean class name.
+ </documentation>
+ </property>
+ <property name="messageDrivenListenerNamePattern">
+ <default>{0}Listener</default>
+ <documentation>
+ The pattern to use when constucting the JMS message driven
bean listener class name.
</documentation>
</property>
+ <property name="messageDrivenImplementationNamePattern">
+ <default>{0}MDBBeanImpl</default>
+ <documentation>
+ The pattern to use when constructing the JMS message driven
+ bean implementation class name.
+ </documentation>
+ </property>
<property name="jndiNamePrefix" required="false">
<documentation>
The prefix to give to the EJB JNDI names (this
@@ -195,6 +228,19 @@
</documentation>
</property>
</propertyGroup>
+ <propertyGroup name="MDB Properties">
+ <property name="messageDrivenDestinationType">
+ <default>javax.jms.Queue</default>
+ <documentation>
+ The default destination type for a JMS message
+ driven bean. Possible values are:
+ <ul>
+ <li>javax.jms.Queue</li>
+ <li>javax.jms.Topic</li>
+ </ul>
+ </documentation>
+ </property>
+ </propertyGroup>
<propertyGroup name="Other Properties">
<property name="persistenceContainerName">
<default>jboss</default>
1.3 +164 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml
Index: profile.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- profile.xml 3 Jan 2006 01:13:53 -0000 1.2
+++ profile.xml 6 Jan 2006 13:53:27 -0000 1.3
@@ -23,6 +23,14 @@
<value>Service</value>
<appliedOnElement>class</appliedOnElement>
</element>
+ <element name="MESSAGE_DRIVEN">
+ <documentation>
+ Produces a JMS Message Driven EJB facade that
+ received messages.
+ </documentation>
+ <value>MessageDriven</value>
+ <appliedOnElement>class</appliedOnElement>
+ </element>
<element name="VERSION">
<documentation>
Identifies an attribute as an version property
@@ -97,6 +105,53 @@
A dependency going into a Service
</appliedOnElement>
</element>
+ <element name="RESOURCE_REF">
+ <documentation>
+ Used to reference a resource, like a
+ DataSource from a service bean.
+ </documentation>
+ <value>ResourceRef</value>
+ <appliedOnElement>
+ A dependency going into a class having
+ a stereotype of UserTransaction or DataSource,
+ out of a Service.
+ </appliedOnElement>
+ </element>
+ <element name="MESSAGE_DRIVEN_REF">
+ <documentation>
+ Used to reference a JMS message driven
+ bean with stereotype MessageDriven.
+ This is used to inject the Queue,
+ QueueConnectionFactory or TopicConnectionFactory
+ resources.
+ </documentation>
+ <value>MessageDrivenRef</value>
+ <appliedOnElement>
+ A dependency going into a class
+ having a stereotype of MessageDriven,
+ out of a Service.
+ </appliedOnElement>
+ </element>
+ <element name="USER_TRANSACTION">
+ <documentation>
+ Used to inject a javax.transaction.UserTransaction
+ resource.
+ </documentation>
+ <value>UserTransaction</value>
+ <appliedOnElement>
+ class
+ </appliedOnElement>
+ </element>
+ <element name="DATA_SOURCE">
+ <documentation>
+ Used to inject a javax.sql.DataSource
+ resource.
+ </documentation>
+ <value>DataSource</value>
+ <appliedOnElement>
+ class
+ </appliedOnElement>
+ </element>
<element name="VALUE_REF">
<documentation>
Used to generate an association between an entity
@@ -368,6 +423,25 @@
<value>TRANSACTION</value>
</allowedValues>
</element>
+ <element name="SERVICE_PERSISTENCE_FLUSH_MODE">
+ <documentation>
+ Used on session bean operations to set
+ the flush mode that determines when the
+ changes to the changes to the database
+ are applied in a transation.
+ </documentation>
+ <value>
+ @andromda.ejb.persistence.flush.mode
+ </value>
+ <appliedOnElement>
+ Service operation
+ </appliedOnElement>
+ <allowedValues>
+ <value>AUTO</value>
+ <value>COMMIT</value>
+ <value>NEVER</value>
+ </allowedValues>
+ </element>
<element name="SECURITY_ROLES_ALLOWED">
<documentation>
Specifies the comma separated list of security
@@ -387,7 +461,7 @@
<element name="SECURITY_PERMIT_ALL">
<documentation>
Specifies whether to permit all roles to
- execute the opertions in a session bean.
+ execute the opertions in the bean.
This can be set on the session bean or on
individual operations.
If set on the session bean, all operations will
@@ -407,6 +481,42 @@
<value>false</value>
</allowedValues>
</element>
+ <element name="SECURITY_DENY_ALL">
+ <documentation>
+ Specifies whether to deny all roles to
+ execute the opertions in the bean.
+ This can be set on the session bean or on
+ individual operations.
+ If set on the session bean, all operations will
+ inherit this behaviour.
+ The deny all tagged value will override
+ the roles allowed. If both are set, only the
+ deny all tagged value is rendered.
+ </documentation>
+ <value>
+ @andromda.ejb.security.denyAll
+ </value>
+ <appliedOnElement>
+ Service and service operation
+ </appliedOnElement>
+ <allowedValues>
+ <value>true</value>
+ <value>false</value>
+ </allowedValues>
+ </element>
+ <element name="SECURITY_RUN_AS">
+ <documentation>
+ Specifies the run-as identity that the
+ bean will use when making calls. It does
+ not affect the identity of the method callers.
+ </documentation>
+ <value>
+ @andromda.ejb.security.runAs
+ </value>
+ <appliedOnElement>
+ Session bean
+ </appliedOnElement>
+ </element>
<element name="SECURITY_DOMAIN">
<documentation>
Specifies the security domain for
@@ -498,6 +608,59 @@
<value>@andromda.persistence.column.length</value>
<appliedOnElement>Entity attribute</appliedOnElement>
</element>
+ <element name="MDB_ACKNOWLEDGE_MODE">
+ <documentation>
+ Represents the acknowledge mode for the JMS message
+ driven bean. Only needs to be specified if
+ DUPS_OK_ACKNOWLEDGE mode is required. The default
+ mode is AUTO_ACKNOWLEDGE.
+ </documentation>
+ <value>@andromda.ejb.mdb.acknowledge.mode</value>
+ <appliedOnElement>Message Driven Bean</appliedOnElement>
+ <allowedValues>
+ <value default="true">AUTO_ACKNOWLEDGE</value>
+ <value>DUPS_OK_ACKNOWLEDGE</value>
+ </allowedValues>
+ </element>
+ <element name="MDB_DESTINATION">
+ <documentation>
+ Represents the destination queue or topic name
+ this JMS message driven bean is associated with.
+ </documentation>
+ <value>@andromda.ejb.mdb.destination</value>
+ <appliedOnElement>Message Driven Bean</appliedOnElement>
+ </element>
+ <element name="MDB_DESTINATION_TYPE">
+ <documentation>
+ Represents the destination type of the JMS message
+ driven bean. If not specified, it is assumed to
+ be a Queue.
+ </documentation>
+ <value>@andromda.ejb.mdb.destination.type</value>
+ <appliedOnElement>Message Driven Bean</appliedOnElement>
+ <allowedValues>
+ <value default="true">javax.jms.Queue</value>
+ <value>javax.jms.Topic</value>
+ </allowedValues>
+ </element>
+ <element name="MDB_SELECTOR">
+ <documentation>
+ Represents the JMS message selector logic used
+ when determining the messages that a JMS message
+ driven bean is to receive.
+ </documentation>
+ <value>@andromda.ejb.mdb.selector</value>
+ <appliedOnElement>Message Driven Bean</appliedOnElement>
+ </element>
+ <element name="MDB_SUBSCRIPTION_DURABILITY">
+ <documentation>
+ Represents the JMS message driven bean subscription
+ durability mode. Queues are always durable. The
+ durability only needs to be specified on topics.
+ By default, topics are non-durable.
+ </documentation>
+ <value>@andromda.ejb.mdb.subscription.durability</value>
+ </element>
</elementGroup>
</elements>
</profile>
\ No newline at end of file
|
|
From: Vance K. <va...@us...> - 2006-01-06 13:52:59
|
User: vancek
Date: 06/01/06 05:52:44
Modified: andromda-ejb3/src/main/resources/META-INF/andromda
metafacades.xml
Log:
added MDB metafacade element
Revision Changes Path
1.3 +11 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml
Index: metafacades.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- metafacades.xml 3 Jan 2006 01:10:24 -0000 1.2
+++ metafacades.xml 6 Jan 2006 13:52:43 -0000 1.3
@@ -14,7 +14,7 @@
<property reference="serviceViewType" />
<property reference="persistenceContainerName" />
<property reference="securityDomain" />
- <!-- Entity POJO EJB Metafacades -->
+ <!-- Entity EJB Metafacades -->
<metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3OperationFacadeLogicImpl">
<mapping>
<context>
@@ -106,4 +106,14 @@
</context>
</mapping>
</metafacade>
+ <!-- Message Driven EJB Metafacades -->
+ <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacadeLogicImpl" contextRoot="true">
+ <mapping>
+ <stereotype>MESSAGE_DRIVEN</stereotype>
+ </mapping>
+ <property reference="messageDrivenNamePattern" />
+ <property reference="messageDrivenImplementationNamePattern" />
+ <property reference="messageDrivenListenerNamePattern" />
+ <property reference="messageDrivenDestinationType" />
+ </metafacade>
</metafacades>
\ No newline at end of file
|