protected JBossEJBContainerBase(final Map<?, ?> properties, final MCServer server) { this(properties, server, ClassPathEjbJarScanner.getEjbJars()); }
/** * 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; }
String candidates[] = ClassPathEjbJarScanner.getEjbJars(); deployments = new File[candidates.length]; for(int i = 0; i < candidates.length; i++)