public class NoInjectionAnnotationLifecycleProvider extends Object implements LifecycleProvider2
| Constructor and Description |
|---|
NoInjectionAnnotationLifecycleProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInstance(Object instance)
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 instance)
Call postConstruct method on the specified instance.
|
protected void |
processAnnotations(Object instance)
Inject resources in specified instance.
|
public NoInjectionAnnotationLifecycleProvider()
public Object newInstance(String className) throws InstantiationException, IllegalAccessException, NamingException, InvocationTargetException, ClassNotFoundException
LifecycleProvider2newInstance in interface LifecycleProvidernewInstance in interface LifecycleProvider2className - name of the class of the desired objectInstantiationExceptionIllegalAccessExceptionNamingExceptionInvocationTargetExceptionClassNotFoundExceptionpublic void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException
postConstruct in interface LifecycleProvider2instance - object to initializeIllegalAccessExceptionInvocationTargetExceptionpublic void destroyInstance(Object instance) throws IllegalAccessException, InvocationTargetException
LifecycleProviderdestroyInstance in interface LifecycleProviderinstance - object to shut down.IllegalAccessExceptionInvocationTargetExceptionprotected void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException
Copyright © 2025 The Apache Software Foundation. All rights reserved.