Package org.apache.aries.util

Examples of org.apache.aries.util.FragmentBuilder


                                       
                    BundleHelper.addDynamicImportPackage(persistenceBundle.getBundleId(), packageList.toString());
                } else {
                    LOG.debug("Generating JPA fragment for persistence bundle {}", persistenceBundle.getSymbolicName());
                   
                    FragmentBuilder builder = new FragmentBuilder(persistenceBundle, ".jpa.fragment", "JPA Fragment");                   
                    for (ExportPackage exportPackage : providerDescription.getExportPackage()) {
                        builder.addImports(exportPackage.getName() + providerConstraint);
                    }
                   
                    Bundle fragment;
                    try {
                        fragment = builder.install(containerContext);
                    } catch (IOException e) {
                        throw new RuntimeException("Error installing JPA fragment bundle", e);
                    } catch (BundleException e) {
                        throw new RuntimeException("Error installing JPA fragment bundle", e);
                    }
View Full Code Here

TOP

Related Classes of org.apache.aries.util.FragmentBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.