@Test public void testUsePropertiesProviderWhenCreatingAContainer() throws Exception { final ConfigurationFactory configurationFactory = new ConfigurationFactory(); final Container container = new Container(); container.setPropertiesProvider(MyPropertiesProvider.class.getName()); container.setCtype("STATELESS"); final ContainerInfo containerInfo = configurationFactory.createContainerInfo(container); assertEquals("newproperty", containerInfo.properties.getProperty("test")); }
public ContainerInfo createContainerInfo(final Container container) throws OpenEJBException { final Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } return configureService(container, infoClass); }
ConfigurationFactory implements OpenEjbConfigurationFactory { public ContainerInfo createContainerInfo(final Container container) throws OpenEJBException { final Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } return configureService(container, infoClass); } }
ConfigurationFactory implements OpenEjbConfigurationFactory { public ContainerInfo createContainerInfo(final Container container) throws OpenEJBException { final Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } return configureService(container, infoClass); } ConfigurationFactory();  ConfigurationFactory(final boolean offline);  ConfigurationFactory(final boolean offline, final DynamicDeployer preAutoConfigDeployer);  ConfigurationFactory(final boolean offline, final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline,
                                final DynamicDeployer preAutoConfigDeployer,
                                final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline, final Chain deployerChain, final OpenEjbConfiguration configuration); }
ConfigurationFactory implements OpenEjbConfigurationFactory { public ContainerInfo createContainerInfo(final Container container) throws OpenEJBException { final Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } return configureService(container, infoClass); } ConfigurationFactory();  ConfigurationFactory(final boolean offline);  ConfigurationFactory(final boolean offline, final DynamicDeployer preAutoConfigDeployer);  ConfigurationFactory(final boolean offline, final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline,
                                final DynamicDeployer preAutoConfigDeployer,
                                final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline, final Chain deployerChain, final OpenEjbConfiguration configuration); boolean isOffline(); static List<HandlerChainInfo> toHandlerChainInfo(final HandlerChains chains); @Override void init(final Properties props); OpenEjbConfiguration getOpenEjbConfiguration(final File configuartionFile); OpenEjbConfiguration getOpenEjbConfiguration(final Openejb providedConf); @Override OpenEjbConfiguration getOpenEjbConfiguration(); ArrayList<File> getModulesFromClassPath(final List<File> declaredApps, final ClassLoader classLoader); ContainerInfo createContainerInfo(final Container container); static void loadPropertiesDeclaredConfiguration(final Openejb openejb); static void fillOpenEjb(final Openejb openejb, final Properties sysProps); static Object toConfigDeclaration(final String id, final URI uri); AppInfo configureApplication(final File jarFile); AppInfo configureApplication(final ClassLoader classLoader, final String id, final List<File> jarFiles); @SuppressWarnings("unchecked") AppModule loadApplication(final ClassLoader classLoader, String id, final List<File> jarFiles); EjbJarInfo configureApplication(final EjbJar ejbJar); EjbJarInfo configureApplication(final EjbModule ejbModule); ClientInfo configureApplication(final ClientModule clientModule); ConnectorInfo configureApplication(final ConnectorModule connectorModule); WebAppInfo configureApplication(final WebModule webModule); AppInfo configureApplication(final AppModule appModule); T configureService(final Class<? extends T> type); T configureService(org.apache.openejb.config.Service service, final Class<? extends T> infoType); static URI[] resolveClasspath(final String rawstring); T configureService(final String id, final Class<? extends T> type); T configureService(final Class<? extends T> type, final String serviceId, final Properties declaredProperties, final String providerId, final String serviceType); List<String> getResourceIds(final String type, Properties required); static boolean isResourceType(final String service, final List<String> types, final String type); static List<ResourceInfo> sort(final List<ResourceInfo> infos, final String prefix); }
ConfigurationFactory implements OpenEjbConfigurationFactory { public ContainerInfo createContainerInfo(final Container container) throws OpenEJBException { final Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } return configureService(container, infoClass); } ConfigurationFactory();  ConfigurationFactory(final boolean offline);  ConfigurationFactory(final boolean offline, final DynamicDeployer preAutoConfigDeployer);  ConfigurationFactory(final boolean offline, final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline,
                                final DynamicDeployer preAutoConfigDeployer,
                                final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline, final Chain deployerChain, final OpenEjbConfiguration configuration); boolean isOffline(); static List<HandlerChainInfo> toHandlerChainInfo(final HandlerChains chains); @Override void init(final Properties props); OpenEjbConfiguration getOpenEjbConfiguration(final File configuartionFile); OpenEjbConfiguration getOpenEjbConfiguration(final Openejb providedConf); @Override OpenEjbConfiguration getOpenEjbConfiguration(); ArrayList<File> getModulesFromClassPath(final List<File> declaredApps, final ClassLoader classLoader); ContainerInfo createContainerInfo(final Container container); static void loadPropertiesDeclaredConfiguration(final Openejb openejb); static void fillOpenEjb(final Openejb openejb, final Properties sysProps); static Object toConfigDeclaration(final String id, final URI uri); AppInfo configureApplication(final File jarFile); AppInfo configureApplication(final ClassLoader classLoader, final String id, final List<File> jarFiles); @SuppressWarnings("unchecked") AppModule loadApplication(final ClassLoader classLoader, String id, final List<File> jarFiles); EjbJarInfo configureApplication(final EjbJar ejbJar); EjbJarInfo configureApplication(final EjbModule ejbModule); ClientInfo configureApplication(final ClientModule clientModule); ConnectorInfo configureApplication(final ConnectorModule connectorModule); WebAppInfo configureApplication(final WebModule webModule); AppInfo configureApplication(final AppModule appModule); T configureService(final Class<? extends T> type); T configureService(org.apache.openejb.config.Service service, final Class<? extends T> infoType); static URI[] resolveClasspath(final String rawstring); T configureService(final String id, final Class<? extends T> type); T configureService(final Class<? extends T> type, final String serviceId, final Properties declaredProperties, final String providerId, final String serviceType); List<String> getResourceIds(final String type, Properties required); static boolean isResourceType(final String service, final List<String> types, final String type); static List<ResourceInfo> sort(final List<ResourceInfo> infos, final String prefix); static final String OPENEJB_JDBC_DATASOURCE_CREATOR; static final String ADDITIONAL_DEPLOYMENTS; }