Package fr.imag.adele.apam.apform.impl

Examples of fr.imag.adele.apam.apform.impl.ApamInstanceManager


        @Override
        public Element getHandlerInfo() {
            Element root = super.getHandlerInfo();

            if (relationHandler.getInstanceManager() instanceof ApamInstanceManager) {
                ApamInstanceManager instance = relationHandler.getInstanceManager();
                for (RelationInjectionManager relation : instance.getInjections()) {
                    root.addElement(relation.getDescription());
                }
            }
            return root;
        }
View Full Code Here


    @Override
    public Element getHandlerInfo() {
      Element root = super.getHandlerInfo();

      if (propertyHandler.getInstanceManager() instanceof ApamInstanceManager) {
        ApamInstanceManager instance = (ApamInstanceManager) propertyHandler.getInstanceManager();
        for (PropertyDefinition definition : instance.getFactory().getDeclaration().getPropertyDefinitions()) {

          /*
           * Ignore non injected properties
           */
          if (definition.getField() == null && definition.getCallback() == null)
            continue;

          String name = definition.getName();
          String field = definition.getField();
          String method = definition.getCallback();
          String value = instance.getApamComponent() != null ? instance.getApamComponent().getProperty(name) : null;

          Element property = new Element("property", ApamComponentFactory.APAM_NAMESPACE);
         
          property.addAttribute(new Attribute("name",  ApamComponentFactory.APAM_NAMESPACE,  name));
          property.addAttribute(new Attribute("field", ApamComponentFactory.APAM_NAMESPACE, field != null ? field : ""));
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.apform.impl.ApamInstanceManager

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.