protected JBossEJBContainerBase(final Map<?, ?> properties, final MCServer server) { this(properties, server, ClassPathEjbJarScanner.getEjbJars()); }
/** * Determines if there is at least one .class in the given file * with an EJB component-defining annotation (Stateless, Stateful, * Singleton, MessageDriven) * @param file * @return * @deprecated Use a real implementation scanner */ @Deprecated private static boolean containsEjbComponentClass(final VirtualFile file) { return containsEjbComponentClass(file, file); }
if (isEjbJar(classPathEntry))
/** * Creates a new instance using the specified properties and deployment modules * * @param properties Properties used in constructing the {@link EJBContainer}. If null, * a new, empty {@link Map} will be allocated * @param modules Modules to deploy into the {@link EJBContainer}. A null argument here * signals that the ClassPath should be searched for EJB Modules as defined by {@link EJBContainer#createEJBContainer()} * and EJB 3.1 22.2.1. */ public JBossEmbeddedContainerStartupParams(Map<?, ?> properties, String[] modules) { // Precondition checks and adjustments if (properties == null) { properties = new HashMap<Object, Object>(0); } if (modules == null) { if (log.isDebugEnabled()) { log.debug("No modules explicitly passed in; scanning ClassPath for EJBs"); } modules = ClassPathEjbJarScanner.getEjbJars(); } // Defensive copy and set final Map<?, ?> copy = new HashMap<Object, Object>(properties); this.properties = Collections.unmodifiableMap(copy); final String[] copyModules = copy(modules); this.modules = copyModules; }
final boolean foundInChild = containsEjbComponentClass(root, child); if (foundInChild)
String candidates[] = ClassPathEjbJarScanner.getEjbJars(); deployments = new File[candidates.length]; for(int i = 0; i < candidates.length; i++)