@Override public String getJndiViewInstanceValue() { final ClassLoader cl = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(objectFactoryClassInstance.getClass().getClassLoader()); return String.valueOf(getReference().getInstance()); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(cl); } } });
@Override public String getInstanceClassName() { final ClassLoader cl = SecurityActions.getContextClassLoader(); try { SecurityActions.setContextClassLoader(objectFactoryClassInstance.getClass().getClassLoader()); final Object value = getReference().getInstance(); return value != null ? value.getClass().getName() : ContextListManagedReferenceFactory.DEFAULT_INSTANCE_CLASS_NAME; } finally { SecurityActions.setContextClassLoader(cl); } }
@Override public String getJndiViewInstanceValue() { final ClassLoader cl = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(objectFactoryClassInstance.getClass().getClassLoader()); return String.valueOf(getReference().getInstance()); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(cl); } } });
@Override public String getJndiViewInstanceValue() { final ClassLoader cl = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(objectFactoryClassInstance.getClass().getClassLoader()); return String.valueOf(getReference().getInstance()); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(cl); } } });
@Override public String getJndiViewInstanceValue() { final ClassLoader cl = SecurityActions.getContextClassLoader(); try { SecurityActions.setContextClassLoader(objectFactoryClassInstance.getClass().getClassLoader()); return String.valueOf(getReference().getInstance()); } finally { SecurityActions.setContextClassLoader(cl); } } });