Examples of friendlyName()


Examples of com.abiquo.hypervisor.plugin.annotation.HypervisorMetadata.friendlyName()

                new Object[] {plugin.getClass().getName()});
            return Optional.absent();
        }

        // Hypervisor friendly name must be informed
        if (isNullOrEmpty(metadata.friendlyName()))
        {
            LOG.error("The friendly name of the plugin {} is null or empty. Ignoring this plugin",
                new Object[] {metadata.type()});
            return Optional.absent();
        }
View Full Code Here

Examples of com.abiquo.hypervisor.plugin.annotation.HypervisorMetadata.friendlyName()

                new Object[] {plugin.getClass().getName()});
            return Optional.absent();
        }

        // Computable friendly name must be informed
        if (metadata.friendlyName().length == 0)
        {
            LOG.error("The friendly name of the plugin {} is null or empty. Ignoring this plugin",
                new Object[] {metadata.type()});
            return Optional.absent();
        }
View Full Code Here

Examples of com.abiquo.hypervisor.plugin.annotation.HypervisorMetadata.friendlyName()

                new Object[] {plugin.getClass().getName()});
            return Optional.absent();
        }

        // Computable friendly name must be informed
        if (metadata.friendlyName().length == 0)
        {
            LOG.error("The friendly name of the plugin {} is null or empty. Ignoring this plugin",
                new Object[] {metadata.type()});
            return Optional.absent();
        }
View Full Code Here

Examples of com.zachsthings.libcomponents.ComponentInformation.friendlyName()

            AbstractComponent component = CommandBook.inst().getComponentManager().getComponent(componentName);
            if (component == null) {
                throw new CommandException("No such component: " + componentName);
            }
            final ComponentInformation info = component.getInformation();
            sender.sendMessage(ChatColor.YELLOW + info.friendlyName() + " - " + info.desc());
            if (info.authors().length > 0 && info.authors()[0].length() > 0) {
                sender.sendMessage(ChatColor.YELLOW + "Authors: " +
                        Arrays.toString(info.authors()).replaceAll("[(.*)]", "$1"));
            }
            Map<String, String> commands = component.getCommands();
View Full Code Here

Examples of org.broadleafcommerce.common.presentation.AdminPresentationClass.friendlyName()

                adminPresentationClass = parentClass.getAnnotation(AdminPresentationClass.class);
            } else {
                adminPresentationClass = targetClass.getAnnotation(AdminPresentationClass.class);
            }
            if (adminPresentationClass != null) {
                String friendlyName = adminPresentationClass.friendlyName();
                if (!StringUtils.isEmpty(friendlyName) && StringUtils.isEmpty(metadata.getOwningClassFriendlyName())) {
                    metadata.setOwningClassFriendlyName(friendlyName);
                }
            }
        }
View Full Code Here

Examples of org.broadleafcommerce.common.presentation.AdminPresentationClass.friendlyName()

    }

    protected void createClassTreeFromAnnotation(Class<?> clazz, ClassTree myTree) {
        AdminPresentationClass classPresentation = clazz.getAnnotation(AdminPresentationClass.class);
        if (classPresentation != null) {
            String friendlyName = classPresentation.friendlyName();
            if (!StringUtils.isEmpty(friendlyName)) {
                myTree.setFriendlyName(friendlyName);
            }
        }
    }
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.