Examples of ByteArrayAsset


Examples of org.jboss.shrinkwrap.api.asset.ByteArrayAsset

import org.jboss.shrinkwrap.api.container.ManifestContainer;

public class ManifestUtil {
    public static <T extends Archive<T> & ManifestContainer<T>> T addEmptyBeansXml(T archive) {
        return archive.addAsManifestResource(
                new ByteArrayAsset("<beans/>".getBytes(Charsets.UTF_8)),
                ArchivePaths.create("META-INF/beans.xml"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.