Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.Icon$JAXB


          if (connector.getIcons().isEmpty()) {
            int smallIcons = connectorAnnotation.smallIcon().length;
            int largeIcons = connectorAnnotation.largeIcon().length;

            for (int i = 0; i < smallIcons && i < largeIcons; i++) {
              Icon icon = new Icon();
                        // locale can't be specified in the annotation and it is en by default
                        // so on other systems it doesn't work because Icon return the default locale
                        icon.setLang(Locale.getDefault().getLanguage());
              if (i < smallIcons) {
                icon.setSmallIcon(connectorAnnotation.smallIcon()[i]);
              }

              if (i < largeIcons) {
                icon.setLargeIcon(connectorAnnotation.largeIcon()[i]);
              }

              connector.getIcons().add(icon);
            }
          }
View Full Code Here


                    + ". Please redeploy the jar");
        }
        bean.ejbDeploymentId = d.getDeploymentId();
        bean.containerId = d.getContainerId();

        Icon icon = s.getIcon();
        bean.largeIcon = (icon == null) ? null : icon.getLargeIcon();
        bean.smallIcon = (icon == null) ? null : icon.getSmallIcon();
        bean.description = s.getDescription();
        bean.displayName = s.getDisplayName();
        bean.ejbClass = s.getEjbClass();
        bean.ejbName = s.getEjbName();
        bean.home = s.getHome();
View Full Code Here

                    + ". Please redeploy the jar");
        }
        bean.ejbDeploymentId = d.getDeploymentId();
        bean.containerId = d.getContainerId();

        Icon icon = mdb.getIcon();
        bean.largeIcon = (icon == null) ? null : icon.getLargeIcon();
        bean.smallIcon = (icon == null) ? null : icon.getSmallIcon();
        bean.description = mdb.getDescription();
        bean.displayName = mdb.getDisplayName();
        bean.ejbClass = mdb.getEjbClass();
        bean.ejbName = mdb.getEjbName();
        TransactionType txType = mdb.getTransactionType();
View Full Code Here

                    + ". Please redeploy the jar");
        }
        bean.ejbDeploymentId = d.getDeploymentId();
        bean.containerId = d.getContainerId();

        Icon icon = e.getIcon();
        bean.largeIcon = (icon == null) ? null : icon.getLargeIcon();
        bean.smallIcon = (icon == null) ? null : icon.getSmallIcon();
        bean.description = e.getDescription();
        bean.displayName = e.getDisplayName();
        bean.ejbClass = e.getEjbClass();
        bean.abstractSchemaName = e.getAbstractSchemaName();
        bean.ejbName = e.getEjbName();
View Full Code Here

    }

    public static WebApp unmarshal(final URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new WebApp$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final WebApp webApp, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new WebApp$JAXB(), webApp, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class WebXml {

    public static WebApp unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new WebApp$JAXB(), inputStream);
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class WebservicesXml {

    public static Webservices unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new Webservices$JAXB(), inputStream);
    }
View Full Code Here

    }

    public static Webservices unmarshal(final URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new Webservices$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final Webservices webservices, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new Webservices$JAXB(), webservices, new StreamResult(outputStream));
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.Icon$JAXB

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.