
com.github.thorbenkuck.netcom2.annotations.rmi.SingletonRemoteObject Maven / Gradle / Ivy
The newest version!
package com.github.thorbenkuck.netcom2.annotations.rmi;
import java.lang.annotation.*;
/**
* This will signal to the RemoteObjectFactory, that the InvocationHandler
* for this Type should be reused instead of newly created upon every request.
*
* Since the instantiation of the InvocationHandler is lazy by default, there is no need to declare a lazy instantiation
*
* Any Class annotated with this Annotation will therefore be instantiated only once, but kept stored!
* This means, that even if you clear an local instance, the created Class will be present in the RemoteObjectFactory!
*
* By design, every instantiation is lazy. You do not need to declare it and you cannot change this behaviour.
*
* @version 1.0
* @since 1.0
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface SingletonRemoteObject {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy