public class SimpleInstanceManager extends Object implements InstanceManager
Constructor and Description |
---|
SimpleInstanceManager() |
Modifier and Type | Method and Description |
---|---|
void |
destroyInstance(Object o) |
Object |
newInstance(Class<?> clazz) |
void |
newInstance(Object o) |
Object |
newInstance(String className) |
Object |
newInstance(String fqcn,
ClassLoader classLoader) |
public Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, NoSuchMethodException
newInstance
in interface InstanceManager
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
NoSuchMethodException
public Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException
newInstance
in interface InstanceManager
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
ClassNotFoundException
NoSuchMethodException
public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException
newInstance
in interface InstanceManager
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
ClassNotFoundException
NoSuchMethodException
public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException
newInstance
in interface InstanceManager
IllegalAccessException
InvocationTargetException
NamingException
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
destroyInstance
in interface InstanceManager
IllegalAccessException
InvocationTargetException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.