Interface InstanceManager
- All Known Implementing Classes:
DefaultInstanceManager
,SimpleInstanceManager
public interface InstanceManager
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Called by the component using the InstanceManager periodically to perform any regular maintenance that might be required.void
newInstance
(Class<?> clazz) void
newInstance
(String className) newInstance
(String fqcn, ClassLoader classLoader)
-
Method Details
-
newInstance
Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, IllegalArgumentException, NoSuchMethodException, SecurityException -
newInstance
Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, IllegalArgumentException, NoSuchMethodException, SecurityException -
newInstance
Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, IllegalArgumentException, NoSuchMethodException, SecurityException -
newInstance
void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException -
destroyInstance
-
backgroundProcess
default void backgroundProcess()Called by the component using the InstanceManager periodically to perform any regular maintenance that might be required. By default, this method is a NO-OP.
-