Package org.jboss.system.server.profileservice.persistence

Examples of org.jboss.system.server.profileservice.persistence.ManagedObjectPersistencePlugin


      ServiceDeployment deployment = parseJbossServiceXml("profileservice/persistence/jboss-service.xml");
     
      // Manually create a persistence view
      List<ServiceMetaData> services = deployment.getServices();
      List<PersistedComponent> components = new ArrayList<PersistedComponent>();
      ManagedObjectPersistencePlugin plugin = getPersistenceFactory().getPersistencePlugin();
      for(ServiceMetaData md : deployment.getServices())
      {
         // Bypass the ServiceMetaDataICF...
         ManagedObject mo = getMOF().initManagedObject(md, null);
         PersistedManagedObject persisted = plugin.createPersistedManagedObject(mo);
        
         // Fix the names, as we don't use the ServiceMetaDataICF
         String name = md.getObjectName().getCanonicalName();
         persisted.setName(name);
         persisted.setOriginalName(name);
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.persistence.ManagedObjectPersistencePlugin

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.