From: Vance K. <va...@us...> - 2006-03-02 10:32:40
|
User: vancek Date: 06/03/02 02:32:38 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3SessionOperationFacadeLogicImpl.java Log: implemented the lifecycle callback method checks Revision Changes Path 1.9 +40 -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.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- EJB3SessionOperationFacadeLogicImpl.java 6 Feb 2006 04:08:19 -0000 1.8 +++ EJB3SessionOperationFacadeLogicImpl.java 2 Mar 2006 10:32:36 -0000 1.9 @@ -377,4 +377,44 @@ } return excludeClass; } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsPostConstruct() + */ + protected boolean handleIsPostConstruct() + { + return this.hasStereotype(EJB3Profile.STEREOTYPE_POST_CONSTRUCT); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsPreDestroy() + */ + protected boolean handleIsPreDestroy() + { + return this.hasStereotype(EJB3Profile.STEREOTYPE_PRE_DESTROY); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsPostActivate() + */ + protected boolean handleIsPostActivate() + { + return this.hasStereotype(EJB3Profile.STEREOTYPE_POST_ACTIVATE); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsPrePassivate() + */ + protected boolean handleIsPrePassivate() + { + return this.hasStereotype(EJB3Profile.STEREOTYPE_PRE_PASSIVATE); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionOperationFacadeLogic#handleIsLifecycleCallback() + */ + protected boolean handleIsLifecycleCallback() + { + return this.isPostConstruct() || this.isPreDestroy() || this.isPostActivate() || this.isPrePassivate(); + } } \ No newline at end of file |