Package org.jboss.managed.plugins.factory

Examples of org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory


    * Validate that the template factory honors the MetaMappings for ObjectName
    */
   public void testReflectionOfObjectName()
      throws Exception
   {
      DeploymentTemplateInfoFactory factory = new DeploymentTemplateInfoFactory();
      DeploymentTemplateInfo info = factory.createTemplateInfo(ObjectNameBean.class, "testReflectionOfObjectName", "testReflectionOfObjectName");
      log.info(info);
      assertEquals("testReflectionOfObjectName", info.getName());
      assertEquals("testReflectionOfObjectName", info.getDescription());
      Map<String, ManagedProperty> props = info.getProperties();
      ManagedProperty nameAsString = props.get("nameAsString");
View Full Code Here


   {
      ManagementObjectExplicit explicit = new ManagementObjectExplicit();
      explicit.setProperty1("value1-orig");
      ManagedObject managedObject = super.initManagedObject(explicit);

      DeploymentTemplateInfoFactory factory = new DeploymentTemplateInfoFactory();
      DeploymentTemplateInfo info1 = factory.createTemplateInfo(managedObject, "testExplicit", "testExplicit");
      log.info(info1);
      assertEquals("testExplicit", info1.getName());
      assertEquals("testExplicit", info1.getDescription());
      assertTrue("property1 is in template info", info1.getProperties().containsKey("property1"));
      ManagedProperty property1 = managedObject.getProperty("property1");
View Full Code Here

TOP

Related Classes of org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory

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.