Package org.dmd.dmp.server.servlet.base.cache

Examples of org.dmd.dmp.server.servlet.base.cache.NameGeneratorIF


    DmwNamedObjectWrapper wrapper = (DmwNamedObjectWrapper) request.getNewObjectWrapped();
   
    if (wrapper.getObjectName() == null){
      // The object doesn't have a name, we'll try to generate one for it
      synchronized (nameGenerators) {
        NameGeneratorIF ng = nameGenerators.get(wrapper.getConstructionClassInfo());
        if (ng == null){
          // Not good, we don't have a name generator, so we can't proceed
          response = (CreateResponse) request.getErrorResponse();
          response.setResponseText("No name generator was available for objects of type: " + wrapper.getConstructionClassName());
        }
        else{
          ng.createNameForObject(wrapper);
        }
      }
    }
   
    // We attempt to resolve references in the object, this includes its class
View Full Code Here

TOP

Related Classes of org.dmd.dmp.server.servlet.base.cache.NameGeneratorIF

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.