public <T extends ServiceInfo> T configureService(Class<? extends T> type) throws OpenEJBException { return configureService((Service)null, type); }
private void buildAppServices(final AppModule appModule, final AppInfo appInfo) throws OpenEJBException { final Collection<Service> services = appModule.getServices(); for (final Service service : services) { final ServiceInfo info = this.configFactory.configureService(service, ServiceInfo.class); appInfo.services.add(info); } }
public void createExternalContext(final JndiProvider service) throws OpenEJBException { final JndiContextInfo jndiContextInfo = factory.configureService(service, JndiContextInfo.class); assembler.createExternalContext(jndiContextInfo); } }
public void createSecurityService(final SecurityService service) throws OpenEJBException { final SecurityServiceInfo serviceInfo = factory.configureService(service, SecurityServiceInfo.class); assembler.createSecurityService(serviceInfo); }
public void createSecurityService(final SecurityService service) throws OpenEJBException { final SecurityServiceInfo serviceInfo = factory.configureService(service, SecurityServiceInfo.class); assembler.createSecurityService(serviceInfo); }
public void createContainer(final Container service) throws OpenEJBException { final ContainerInfo serviceInfo = factory.configureService(service, ContainerInfo.class); assembler.createContainer(serviceInfo); }
public void createExternalContext(final JndiProvider service) throws OpenEJBException { final JndiContextInfo jndiContextInfo = factory.configureService(service, JndiContextInfo.class); assembler.createExternalContext(jndiContextInfo); } }
public void createTransactionManager(final TransactionManager service) throws OpenEJBException { final TransactionServiceInfo serviceInfo = factory.configureService(service, TransactionServiceInfo.class); assembler.createTransactionManager(serviceInfo); }
public void createResource(final Resource service) throws OpenEJBException { final ResourceInfo serviceInfo = factory.configureService(service, ResourceInfo.class); assembler.createResource(serviceInfo); }
public void createContainer(final Container service) throws OpenEJBException { final ContainerInfo serviceInfo = factory.configureService(service, ContainerInfo.class); assembler.createContainer(serviceInfo); }
public void createService(final Service service) throws OpenEJBException { final ServiceInfo serviceInfo = factory.configureService(service, ServiceInfo.class); assembler.createService(serviceInfo); }
private void buildAppServices(final AppModule appModule, final AppInfo appInfo) throws OpenEJBException { final Collection<Service> services = appModule.getServices(); for (final Service service : services) { final ServiceInfo info = this.configFactory.configureService(service, ServiceInfo.class); appInfo.services.add(info); } }
public Container createContainer(Class<? extends ContainerInfo> type, String serviceId, Properties declaredProperties, String providerId) throws OpenEJBException { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { ContainerInfo containerInfo = configurationFactory.configureService(type, serviceId, declaredProperties, providerId, "Container"); assembler.createContainer(containerInfo); Container container = assembler.getContainerSystem().getContainer(serviceId); return container; } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
private void addContainerInfos(Configuration configuration, ContainerSystemInfo containerSystem, ConfigurationFactory configurationFactory) throws OpenEJBException { LinkedHashSet<GBeanData> containerDatas = configuration.findGBeanDatas(Collections.singleton(new AbstractNameQuery(EjbContainer.class.getName()))); for (GBeanData containerData : containerDatas) { String id = EjbContainer.getId(containerData.getAbstractName()); Class<? extends ContainerInfo> infoClass = EjbContainer.getInfoType(containerData.getGBeanInfo().getClassName()); Properties declaredProperties = new Properties(); String providerId = null; ContainerInfo containerInfo = configurationFactory.configureService(infoClass, id, declaredProperties, providerId, "Container"); containerSystem.containers.add(containerInfo); } }
private String autoCreateResource(final String type, final Properties required, final String beanName) throws OpenEJBException { final String resourceId; resourceId = ServiceUtils.getServiceProviderId(type, required); if (resourceId == null) { throw new OpenEJBException("No provider available for resource-ref '" + resourceId + "' of type '" + type + "' for '" + beanName + "'."); } final ResourceInfo resourceInfo = configFactory.configureService(resourceId, ResourceInfo.class); logAutoCreateResource(resourceInfo, type, beanName); return installResource(beanName, resourceInfo); }
private String autoCreateResource(final String type, final Properties required, final String beanName) throws OpenEJBException { final String resourceId; resourceId = ServiceUtils.getServiceProviderId(type, required); if (resourceId == null) { throw new OpenEJBException("No provider available for resource-ref id with type '" + type + "' for '" + beanName + "'."); } final ResourceInfo resourceInfo = configFactory.configureService(resourceId, ResourceInfo.class); logAutoCreateResource(resourceInfo, type, beanName); return installResource(beanName, resourceInfo); }
private String autoCreateResource(String type, Properties required, String beanName) throws OpenEJBException { String resourceId; resourceId = ServiceUtils.getServiceProviderId(type, required); if (resourceId == null) { throw new OpenEJBException("No provider available for resource-ref '" + resourceId + "' of type '" + type + "' for '" + beanName + "'."); } ResourceInfo resourceInfo = configFactory.configureService(resourceId, ResourceInfo.class); logAutoCreateResource(resourceInfo, type, beanName); return installResource(beanName, resourceInfo); }
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); }
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); }
public ContainerInfo createContainerInfo(Container container) throws OpenEJBException { Class<? extends ContainerInfo> infoClass = getContainerInfoType(container.getType()); if (infoClass == null) { throw new OpenEJBException(messages.format("unrecognizedContainerType", container.getType())); } ContainerInfo info = configureService(container, infoClass); return info; }