1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| /* */ package com.vidal.merlin.dateofkill;
/* */
/* */ import com.vidal.merlin.utils.dateofkill.DateOfKillException;
/* */ import com.vidal.merlin.utils.dateofkill.DateOfKillStatus;
/* */ import com.vidal.merlin.utils.productline.licencing.LicenceManager;
/* */ import com.vidal.merlin.utils.productline.licencing.LicenceManagerFactory;
/* */ import java.util.ResourceBundle;
/* */ import org.apache.commons.logging.Log;
/* */ import org.apache.commons.logging.LogFactory;
/* */ import org.aspectj.lang.NoAspectBoundException;
/* */ import org.aspectj.lang.ProceedingJoinPoint;
/* */ import org.aspectj.lang.annotation.Around;
/* */ import org.aspectj.lang.annotation.Aspect;
/* */ import org.springframework.stereotype.Component;
/* */
/* */ @Aspect
/* */ @Component("businessDateOfKillManager")
/* */ public class BusinessDateOfKillManager
/* */ {
/* 23 */ private static final Log LOG = LogFactory.getLog(BusinessDateOfKillManager.class);
/* 24 */ private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("com.vidal.merlin.dateofkill.DateOfKillManager");
/* */
/* */ static
/* */ {
/* */ try
/* */ {
/* 22 */ ajc$postClinit(); } catch (Throwable localThrowable) { ajc$initFailureCause = localThrowable;
/* */ }
/* */ }
/* */
/* */ @Around(value="bo() && target(callee)", argNames="pjp, callee")
/* */ public Object around(ProceedingJoinPoint pjp, Object callee)
/* */ throws Throwable
/* */ {
/* 32 */ ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().debug("Starting analysis of dateOfKill policy");
/* 33 */ DateOfKillStatus status = LicenceManagerFactory.getInstance().checkDateOfKillStatus();
/* 34 */ if (status == DateOfKillStatus.KO) {
/* 35 */ ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().info("Date of kill passed in Bo");
/* 36 */ throw new DateOfKillException(ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$BUNDLE().getString("dateOfKill.exception.msg"));
/* */ }
/* 38 */ ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().debug("Date of kill OK...");
/* 39 */ return pjp.proceed();
/* */ }
/* */
/* */ public static BusinessDateOfKillManager aspectOf()
/* */ {
/* 1 */ if (ajc$perSingletonInstance == null) throw new NoAspectBoundException("com.vidal.merlin.dateofkill.BusinessDateOfKillManager", ajc$initFailureCause); return ajc$perSingletonInstance; }
/* 1 */ public static boolean hasAspect() { return ajc$perSingletonInstance != null;
/* */ }
/* */ }
/* Location: C:\Documents and Settings\DELL\My Documents\Downloads\merlin-business.jar
* Qualified Name: com.vidal.merlin.dateofkill.BusinessDateOfKillManager
* JD-Core Version: 0.6.0
*/ |
Partager