com.github.dynamicextensionsalfresco.policy.DescriptiveJavaBehaviour.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.policy
import org.alfresco.repo.policy.Behaviour
import org.alfresco.repo.policy.JavaBehaviour
import java.lang.reflect.Method
/**
* Simplify toString to method signature
*
* @author Laurent Van der Linden
*/
class DescriptiveJavaBehaviour(instance: Any?, private val methodReference: Method, frequency: Behaviour.NotificationFrequency?)
: JavaBehaviour(instance, methodReference.name, frequency) {
override fun toString(): String {
return methodReference.declaringClass.name + "." + methodReference.name
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy