org.duracloud.duraservice.aop
Class ServiceAdvice

java.lang.Object
  extended by org.duracloud.duraservice.aop.ServiceAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered
Direct Known Subclasses:
GetAvailableServicesAdvice, GetDeployedAdvice, GetDeployedPropsAdvice, GetDeployedServicesAdvice, GetServiceAdvice, UndeployAdvice, UpdateConfigAdvice

public abstract class ServiceAdvice
extends java.lang.Object
implements org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered


Field Summary
protected static int DEPLOYMENT_ID_INDEX
           
protected static int SERVICE_ID_INDEX
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ServiceAdvice()
           
 
Method Summary
 void afterReturning(java.lang.Object returnObj, java.lang.reflect.Method method, java.lang.Object[] methodArgs, java.lang.Object targetObj)
           
protected  ServiceMessage createServiceMessage(java.lang.Object[] methodArgs)
           
protected  int getDeploymentId(java.lang.Object[] methodArgs)
           
 javax.jms.Destination getDestination()
           
 org.springframework.jms.core.JmsTemplate getJmsTemplate()
           
 int getOrder()
           
protected  int getServiceId(java.lang.Object[] methodArgs)
           
 void setDestination(javax.jms.Destination destination)
           
 void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
           
 void setOrder(int order)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_ID_INDEX

protected static final int SERVICE_ID_INDEX
See Also:
Constant Field Values

DEPLOYMENT_ID_INDEX

protected static final int DEPLOYMENT_ID_INDEX
See Also:
Constant Field Values
Constructor Detail

ServiceAdvice

public ServiceAdvice()
Method Detail

afterReturning

public void afterReturning(java.lang.Object returnObj,
                           java.lang.reflect.Method method,
                           java.lang.Object[] methodArgs,
                           java.lang.Object targetObj)
                    throws java.lang.Throwable
Specified by:
afterReturning in interface org.springframework.aop.AfterReturningAdvice
Throws:
java.lang.Throwable

createServiceMessage

protected ServiceMessage createServiceMessage(java.lang.Object[] methodArgs)

getServiceId

protected int getServiceId(java.lang.Object[] methodArgs)

getDeploymentId

protected int getDeploymentId(java.lang.Object[] methodArgs)

getDestination

public javax.jms.Destination getDestination()

setDestination

public void setDestination(javax.jms.Destination destination)

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

setOrder

public void setOrder(int order)

getJmsTemplate

public org.springframework.jms.core.JmsTemplate getJmsTemplate()

setJmsTemplate

public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)


Copyright © 2009-2011 DuraSpace. All Rights Reserved.