Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.AdminObject


          List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
          for (Class<?> cls : classes) {
        AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
        Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

        AdminObject adminObject = null;
        for (AdminObject admObj : adminObjects) {
          if (admObj.getAdminObjectClass().equals(cls.getName())) {
            adminObject = admObj;
          }
        }

        if (adminObject == null) {
          for (Class iface : adminObjectInterfaces) {
            AdminObject newAdminObject = new AdminObject();
            newAdminObject.setAdminObjectClass(cls.getName());
            newAdminObject.setAdminObjectInterface(iface.getName());
            adminObjects.add(newAdminObject);
          }
        }
      }
View Full Code Here


                        throw new DeploymentException("Interface for admin object not specified properly: " + allInterfaces);
                    }
                    interfaces = allInterfaces.toArray(new Class[1]);
                }
                for (Class aoInterface : interfaces) {
                    AdminObject adminObject = getAdminObject(resourceAdapter, aoInterface);
                    if (adminObject.getAdminObjectClass() == null) {
                        adminObject.setAdminObjectClass(adminObjectClass.getName());
                    }
                    if (adminObjectClass.getName().equals(adminObject.getAdminObjectClass())) {
                        setConfigProperties(adminObject.getConfigProperty(), adminObjectClass);
                    }
                }
            }

            OutboundResourceAdapter outboundResourceAdapter = resourceAdapter.getOutboundResourceAdapter();
View Full Code Here

        for (AdminObject adminObject : resourceAdapter.getAdminObject()) {
            if (aoInterface.getName().equals(adminObject.getAdminObjectInterface())) {
                return adminObject;
            }
        }
        AdminObject adminObject = new AdminObject();
        adminObject.setAdminObjectInterface(aoInterface.getName());
        resourceAdapter.getAdminObject().add(adminObject);
        return adminObject;
    }
View Full Code Here

            final List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
            for (final Class<?> cls : classes) {
                final AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
                final Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

                AdminObject adminObject = null;
                for (final AdminObject admObj : adminObjects) {
                    if (admObj.getAdminObjectClass().equals(cls.getName())) {
                        adminObject = admObj;
                    }
                }

                if (adminObject == null) {
                    for (final Class iface : adminObjectInterfaces) {
                        final AdminObject newAdminObject = new AdminObject();
                        newAdminObject.setAdminObjectClass(cls.getName());
                        newAdminObject.setAdminObjectInterface(iface.getName());
                        adminObjects.add(newAdminObject);
                    }
                }
            }
View Full Code Here

          List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
          for (Class<?> cls : classes) {
        AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
        Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

        AdminObject adminObject = null;
        for (AdminObject admObj : adminObjects) {
          if (admObj.getAdminObjectClass().equals(cls.getName())) {
            adminObject = admObj;
          }
        }

        if (adminObject == null) {
          for (Class iface : adminObjectInterfaces) {
            AdminObject newAdminObject = new AdminObject();
            newAdminObject.setAdminObjectClass(cls.getName());
            newAdminObject.setAdminObjectInterface(iface.getName());
            adminObjects.add(newAdminObject);
          }
        }
      }
View Full Code Here

          List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
          for (Class<?> cls : classes) {
        AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
        Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

        AdminObject adminObject = null;
        for (AdminObject admObj : adminObjects) {
          if (admObj.getAdminObjectClass().equals(cls.getName())) {
            adminObject = admObj;
          }
        }

        if (adminObject == null) {
          for (Class iface : adminObjectInterfaces) {
            AdminObject newAdminObject = new AdminObject();
            newAdminObject.setAdminObjectClass(cls.getName());
            newAdminObject.setAdminObjectInterface(iface.getName());
            adminObjects.add(newAdminObject);
          }
        }
      }
View Full Code Here

            final List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
            for (final Class<?> cls : classes) {
                final AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
                final Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

                AdminObject adminObject = null;
                for (final AdminObject admObj : adminObjects) {
                    if (admObj.getAdminObjectClass().equals(cls.getName())) {
                        adminObject = admObj;
                    }
                }

                if (adminObject == null) {
                    for (final Class iface : adminObjectInterfaces) {
                        final AdminObject newAdminObject = new AdminObject();
                        newAdminObject.setAdminObjectClass(cls.getName());
                        newAdminObject.setAdminObjectInterface(iface.getName());
                        adminObjects.add(newAdminObject);
                    }
                }
            }
View Full Code Here

                        throw new DeploymentException("Interface for admin object not specified properly: " + allInterfaces);
                    }
                    interfaces = allInterfaces.toArray(new Class[1]);
                }
                for (Class aoInterface : interfaces) {
                    AdminObject adminObject = getAdminObject(resourceAdapter, aoInterface);
                    if (adminObject.getAdminObjectClass() == null) {
                        adminObject.setAdminObjectClass(adminObjectClass.getName());
                    }
                    if (adminObjectClass.getName().equals(adminObject.getAdminObjectClass())) {
                        setConfigProperties(adminObject.getConfigProperty(), adminObjectClass);
                    }
                }
            }

            OutboundResourceAdapter outboundResourceAdapter = resourceAdapter.getOutboundResourceAdapter();
View Full Code Here

        for (AdminObject adminObject : resourceAdapter.getAdminObject()) {
            if (aoInterface.getName().equals(adminObject.getAdminObjectInterface())) {
                return adminObject;
            }
        }
        AdminObject adminObject = new AdminObject();
        adminObject.setAdminObjectInterface(aoInterface.getName());
        resourceAdapter.getAdminObject().add(adminObject);
        return adminObject;
    }
View Full Code Here

            final List<AdminObject> adminObjects = connector.getResourceAdapter().getAdminObject();
            for (final Class<?> cls : classes) {
                final AdministeredObject administeredObjectAnnotation = cls.getAnnotation(AdministeredObject.class);
                final Class[] adminObjectInterfaces = administeredObjectAnnotation.adminObjectInterfaces();

                AdminObject adminObject = null;
                for (final AdminObject admObj : adminObjects) {
                    if (admObj.getAdminObjectClass().equals(cls.getName())) {
                        adminObject = admObj;
                    }
                }

                if (adminObject == null) {
                    for (final Class iface : adminObjectInterfaces) {
                        final AdminObject newAdminObject = new AdminObject();
                        newAdminObject.setAdminObjectClass(cls.getName());
                        newAdminObject.setAdminObjectInterface(iface.getName());
                        adminObjects.add(newAdminObject);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.AdminObject

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.