Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYARA-3215 Small Weld deployment optimisation #3370

Merged
merged 2 commits into from
Nov 8, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016-2017] [Payara Foundation and/or its affiliates]
// Portions Copyright [2016-2018] [Payara Foundation and/or its affiliates]

package org.glassfish.weld;

Expand All @@ -61,14 +61,12 @@
import javax.enterprise.inject.spi.InjectionTarget;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.jar.JarFile;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand All @@ -84,7 +82,7 @@
*/
public class BeanDeploymentArchiveImpl implements BeanDeploymentArchive {

private Logger logger = Logger.getLogger(BeanDeploymentArchiveImpl.class.getName());
private static final Logger logger = Logger.getLogger(BeanDeploymentArchiveImpl.class.getName());

private ReadableArchive archive;
private String id;
Expand Down Expand Up @@ -319,6 +317,18 @@ public String getFriendlyId() {
return this.friendlyId;
}

@Override
public Collection<String> getKnownClasses() {
return moduleClassNames;
}

@Override
public Collection<Class<?>> getLoadedBeanClasses() {
return beanClasses;
}



//A graphical representation of the BDA hierarchy to aid in debugging
//and to provide a better representation of how Weld treats the deployed
//archive.
Expand Down