bean.getPreDestroy().add(new LifecycleCallback(method.get()));
}
}
if (bean instanceof Invokable) {
final Invokable invokable = (Invokable) bean;
/*
* @AroundInvoke
*/
if (apply(override, invokable.getAroundInvoke())) {
for (final Annotated<Method> method : sortMethods(annotationFinder.findMetaAnnotatedMethods(javax.interceptor.AroundInvoke.class))) {
invokable.getAroundInvoke().add(new AroundInvoke(method.get()));
}
}
/*
* @AroundTimeout
*/
if (apply(override, invokable.getAroundInvoke())) {
for (final Annotated<Method> method : sortMethods(annotationFinder.findMetaAnnotatedMethods(javax.interceptor.AroundTimeout.class))) {
invokable.getAroundTimeout().add(new AroundTimeout(method.get()));
}
}
}
/*