public class NoAnnotationLifecyleProvider extends Object implements LifecycleProvider2
Constructor and Description |
---|
NoAnnotationLifecyleProvider() |
Modifier and Type | Method and Description |
---|---|
void |
destroyInstance(Object o)
Take whatever steps are needed to shut down the object, including calling a preDestroy method.
|
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.
|
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
LifecycleProvider
destroyInstance
in interface LifecycleProvider
o
- object to shut down.IllegalAccessException
InvocationTargetException
public Object newInstance(String className) throws InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException
LifecycleProvider2
newInstance
in interface LifecycleProvider
newInstance
in interface LifecycleProvider2
className
- name of the class of the desired objectInstantiationException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
public void postConstruct(Object o) throws IllegalAccessException, InvocationTargetException
LifecycleProvider2
postConstruct
in interface LifecycleProvider2
o
- object to initializeIllegalAccessException
InvocationTargetException
Copyright © 2020 The Apache Software Foundation. All rights reserved.