public interface LifecycleProvider2 extends LifecycleProvider
Modifier and Type | Method and Description |
---|---|
Object |
newInstance(String className)
Create an object of the class with the supplied name, inject dependencies as appropriate.
|
void |
postConstruct(Object o)
Call a postConstruct method as appropriate.
|
destroyInstance
Object newInstance(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NamingException, InvocationTargetException
newInstance
in interface LifecycleProvider
className
- name of the class of the desired objectClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException
void postConstruct(Object o) throws IllegalAccessException, InvocationTargetException
o
- object to initializeIllegalAccessException
InvocationTargetException
Copyright © 2020 The Apache Software Foundation. All rights reserved.