All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.policy.DescriptiveJavaBehaviour.kt Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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