Class ManageableAdvice<E>
- java.lang.Object
-
- com.alpha.mongodb.entitymanager.proxy.advice.AbstractDelegatedAdvice<Manageable,E>
-
- com.alpha.mongodb.entitymanager.proxy.advice.ManageableAdvice<E>
-
- Type Parameters:
E
- Entity Type
- All Implemented Interfaces:
DelegatedAdvice<Manageable>
,org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
public class ManageableAdvice<E> extends AbstractDelegatedAdvice<Manageable,E>
Manageable Advice that implementsManageable.isManaged()
andManageable.detach()
methods.- Author:
- Shashank Sharma
-
-
Constructor Summary
Constructors Constructor Description ManageableAdvice(E entity, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate, String collectionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
detach()
Class<? extends Manageable>
getAdvisedClass()
Method[]
getAdvisedMethods()
Object
invoke(org.aopalliance.intercept.MethodInvocation invocation)
-
Methods inherited from class com.alpha.mongodb.entitymanager.proxy.advice.AbstractDelegatedAdvice
validateEntity
-
-
-
-
Method Detail
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
- Throws:
Throwable
-
detach
protected void detach()
- Overrides:
detach
in classAbstractDelegatedAdvice<Manageable,E>
-
getAdvisedMethods
public Method[] getAdvisedMethods()
-
getAdvisedClass
public Class<? extends Manageable> getAdvisedClass()
-
-