| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static enum | |
| private static class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ManagedConcurrentWeakHashMap | |
| private static final DefaultInstanceManager. | |
| protected final ClassLoader | |
| protected final ClassLoader | |
| private final Context | |
| private static final boolean | |
| protected final boolean | |
| private final Map | |
| private static final boolean | |
| private final Map | |
| private final Map | |
| protected final boolean | |
| private final Set | |
| protected static final StringManager | sm
The string manager for this package. |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultInstanceManager(Context context, Map<String, Map<String, String>> injectionMap, Context catalinaContext, ClassLoader containerClassLoader)
|
| Modifier and Type | Method and Description |
|---|---|
| private Map | |
| public void | backgroundProcess()
Overrides default org. Called by the component using the InstanceManager periodically to perform any regular maintenance that might be required. |
| private void | |
| public void | |
| private static Method | findLifecycleCallback(Method currentMethod, String methodNameFromXml, Method method, Class<? extends Annotation> annotation)
|
| private static Method | |
| private static Method | |
| protected int | |
| private static Field | |
| private static Method | |
| protected Class | |
| protected Class | |
| private static void | |
| protected static void | |
| protected static void | |
| public Object | |
| public Object | |
| public Object | newInstance(final String className, final ClassLoader classLoader)
Implements org.
|
| public void | |
| private Object | |
| private static String | |
| protected void | populateAnnotationsCache(Class<?>
clazz to populate annotations for clazz, Map<String, String> map of injections for this class from xml deployment descriptor injections)Make sure that the annotations cache has been populated for the provided class. |
| protected void | postConstruct(Object
object to call postconstruct methods on instance, final Class<?> (super) class to examine for postConstruct annotation. clazz)Call postConstruct method on the specified instance recursively from deepest superclass to actual class. |
| protected void | preDestroy(Object
object to call preDestroy methods on instance, final Class<?> (super) class to examine for preDestroy annotation. clazz)Call preDestroy method on the specified instance recursively from deepest superclass to actual class. |
| protected void | processAnnotations(Object
instance to inject into instance, Map<String, String> map of injections for this class from xml deployment descriptor injections)Inject resources in specified instance. |
| annotationCache | back to summary |
|---|---|
| private final ManagedConcurrentWeakHashMap<Class<?>, DefaultInstanceManager. | |
| ANNOTATIONS_EMPTY | back to summary |
|---|---|
| private static final DefaultInstanceManager. | |
| classLoader | back to summary |
|---|---|
| protected final ClassLoader classLoader | |
| containerClassLoader | back to summary |
|---|---|
| protected final ClassLoader containerClassLoader | |
| context | back to summary |
|---|---|
| private final Context context | |
| EJB_PRESENT | back to summary |
|---|---|
| private static final boolean EJB_PRESENT | |
| ignoreAnnotations | back to summary |
|---|---|
| protected final boolean ignoreAnnotations | |
| injectionMap | back to summary |
|---|---|
| private final Map<String, Map<String, String>> injectionMap | |
| JPA_PRESENT | back to summary |
|---|---|
| private static final boolean JPA_PRESENT | |
| postConstructMethods | back to summary |
|---|---|
| private final Map<String, String> postConstructMethods | |
| preDestroyMethods | back to summary |
|---|---|
| private final Map<String, String> preDestroyMethods | |
| privileged | back to summary |
|---|---|
| protected final boolean privileged | |
| restrictedClasses | back to summary |
|---|---|
| private final Set<String> restrictedClasses | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm The string manager for this package. | |
| WS_PRESENT | back to summary |
|---|---|
| private static final boolean WS_PRESENT | |
| DefaultInstanceManager | back to summary |
|---|---|
| public DefaultInstanceManager(Context context, Map<String, Map<String, String>> injectionMap, Context catalinaContext, ClassLoader containerClassLoader) | |
| assembleInjectionsFromClassHierarchy | back to summary |
|---|---|
| private Map | |
| backgroundProcess | back to summary |
|---|---|
| public void backgroundProcess() Overrides default org. Doc from org. 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.
| |
| checkAccess | back to summary |
|---|---|
| private void checkAccess(Class<?> clazz) | |
| destroyInstance | back to summary |
|---|---|
| public void destroyInstance(Object instance) throws IllegalAccessException, InvocationTargetException Implements org.
| |
| findLifecycleCallback | back to summary |
|---|---|
| private static Method findLifecycleCallback(Method currentMethod, String methodNameFromXml, Method method, Class<? extends Annotation> annotation) | |
| findPostConstruct | back to summary |
|---|---|
| private static Method findPostConstruct(Method currentPostConstruct, String postConstructFromXml, Method method) | |
| findPreDestroy | back to summary |
|---|---|
| private static Method findPreDestroy(Method currentPreDestroy, String preDestroyFromXml, Method method) | |
| getAnnotationCacheSize | back to summary |
|---|---|
| protected int getAnnotationCacheSize() Makes cache size available to unit tests.
| |
| getField | back to summary |
|---|---|
| private static Field getField(final Class<?> clazz, final DefaultInstanceManager. | |
| getMethod | back to summary |
|---|---|
| private static Method getMethod(final Class<?> clazz, final DefaultInstanceManager. | |
| loadClass | back to summary |
|---|---|
| protected Class | |
| loadClassMaybePrivileged | back to summary |
|---|---|
| protected Class | |
| loadProperties | back to summary |
|---|---|
| private static void loadProperties(Set<String> classNames, String resourceName, String messageKey, Log log) | |
| lookupFieldResource | back to summary |
|---|---|
| protected static void lookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz) throws NamingException, IllegalAccessException Inject resources in specified field.
| |
| lookupMethodResource | back to summary |
|---|---|
| protected static void lookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz) throws NamingException, IllegalAccessException, InvocationTargetException Inject resources in specified method.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, IllegalArgumentException, NoSuchMethodException, SecurityException Implements org.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, IllegalArgumentException, NoSuchMethodException, SecurityException Implements org.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance(final String className, final ClassLoader classLoader) throws IllegalAccessException, NamingException, InvocationTargetException, InstantiationException, ClassNotFoundException, IllegalArgumentException, NoSuchMethodException, SecurityException Implements org.
| |
| newInstance | back to summary |
|---|---|
| public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException Implements org.
| |
| newInstance | back to summary |
|---|---|
| private Object newInstance(Object instance, Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException | |
| normalize | back to summary |
|---|---|
| private static String normalize(String jndiName) | |
| populateAnnotationsCache | back to summary |
|---|---|
| protected void populateAnnotationsCache(Class<?> clazz, Map<String, String> injections) throws IllegalAccessException, InvocationTargetException, NamingException Make sure that the annotations cache has been populated for the provided class.
| |
| postConstruct | back to summary |
|---|---|
| protected void postConstruct(Object instance, final Class<?> clazz) throws IllegalAccessException, InvocationTargetException Call postConstruct method on the specified instance recursively from deepest superclass to actual class.
| |
| preDestroy | back to summary |
|---|---|
| protected void preDestroy(Object instance, final Class<?> clazz) throws IllegalAccessException, InvocationTargetException Call preDestroy method on the specified instance recursively from deepest superclass to actual class.
| |
| processAnnotations | back to summary |
|---|---|
| protected void processAnnotations(Object instance, Map<String, String> injections) throws IllegalAccessException, InvocationTargetException, NamingException Inject resources in specified instance.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final Class | |
| private final DefaultInstanceManager. |
| Access | Constructor and Description |
|---|---|
| pack-priv | AnnotationCacheEntry(String accessibleObjectName, Class<?>[] paramTypes, String name, DefaultInstanceManager.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Class | |
| public DefaultInstanceManager. |
| accessibleObjectName | back to summary |
|---|---|
| private final String accessibleObjectName | |
| name | back to summary |
|---|---|
| private final String name | |
| paramTypes | back to summary |
|---|---|
| private final Class<?>[] paramTypes | |
| type | back to summary |
|---|---|
| private final DefaultInstanceManager. | |
| AnnotationCacheEntry | back to summary |
|---|---|
| pack-priv AnnotationCacheEntry(String accessibleObjectName, Class<?>[] paramTypes, String name, DefaultInstanceManager. | |
| getAccessibleObjectName | back to summary |
|---|---|
| public String getAccessibleObjectName() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getParamTypes | back to summary |
|---|---|
| public Class | |
| getType | back to summary |
|---|---|
| public DefaultInstanceManager. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultInstanceManager. | |
| public static final DefaultInstanceManager. | |
| public static final DefaultInstanceManager. | |
| public static final DefaultInstanceManager. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultInstanceManager. | |
| public static DefaultInstanceManager. |
| FIELD | back to summary |
|---|---|
| public static final DefaultInstanceManager. | |
| POST_CONSTRUCT | back to summary |
|---|---|
| public static final DefaultInstanceManager. | |
| PRE_DESTROY | back to summary |
|---|---|
| public static final DefaultInstanceManager. | |
| SETTER | back to summary |
|---|---|
| public static final DefaultInstanceManager. | |
| AnnotationCacheEntryType | back to summary |
|---|---|
| private AnnotationCacheEntryType() | |
| valueOf | back to summary |
|---|---|
| public static DefaultInstanceManager. | |
| values | back to summary |
|---|---|
| public static DefaultInstanceManager. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final DefaultInstanceManager. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Field |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| entry | back to summary |
|---|---|
| private final DefaultInstanceManager. | |
| PrivilegedGetField | back to summary |
|---|---|
| pack-priv PrivilegedGetField(Class<?> clazz, DefaultInstanceManager. | |
| run | back to summary |
|---|---|
| public Field run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final DefaultInstanceManager. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Method |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| entry | back to summary |
|---|---|
| private final DefaultInstanceManager. | |
| PrivilegedGetMethod | back to summary |
|---|---|
| pack-priv PrivilegedGetMethod(Class<?> clazz, DefaultInstanceManager. | |
| run | back to summary |
|---|---|
| public Method run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Class |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| className | back to summary |
|---|---|
| private final String className | |
| PrivilegedLoadClass | back to summary |
|---|---|
| pack-priv PrivilegedLoadClass(String className, ClassLoader classLoader) | |
| run | back to summary |
|---|---|
| public Class Implements java. Doc from java. Performs the computation. This method will be called by
| |