Codota Logo
DefaultServiceDescription.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.logicbus.models.servant.DefaultServiceDescription
constructor

Best Java code snippets using com.logicbus.models.servant.DefaultServiceDescription.<init> (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: anylogic/alogic

DefaultServiceDescription sd = new DefaultServiceDescription(id);
origin: anylogic/alogic

String id = name.substring(start + 1, end);
Path childPath = _path.append(id);
DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
sd.setModule(servant);
sd.setName(id);
origin: anylogic/alogic

/**
 * 从XML节点中提取服务描述信息
 * @param _path 父节点路径
 * @param root XML节点
 * @return 服务描述信息
 */
protected ServiceDescription toServiceDescription(Path _path,Element root){
  String id = root.getAttribute("id");
  if (id == null){
    return null;
  }
  
  Path childPath = _path.append(id);
  
  DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
  sd.fromXML(root);
  sd.setPath(childPath.getPath());
  
  return sd;
}

origin: anylogic/alogic

  private void serviceFound(Element element,ServantCatalogNodeImpl node, String src,Class<?> bootstrap) {
    //从xml文件名中获取服务id
    int end = src.lastIndexOf('.');
    int start = src.lastIndexOf('/');
    String id = src.substring(start + 1, end);
    
    Path childPath = node.getPath().append(id);
    DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
    sd.setModule(servant);
    sd.setName(id);
    sd.setNote(id);
    sd.setPath(childPath.getPath());
    String visible = element.getAttribute("visible");
    sd.setVisible(StringUtils.isNotEmpty(visible)?visible:"public");
    String log = element.getAttribute("log");
    sd.setLogType(StringUtils.isNotEmpty(log)?log:"brief");
    sd.getProperties().SetValue("script", src);
    sd.getProperties().SetValue("bootstrap", bootstrap.getName());
    node.addService(sd.getServiceID(), sd);
  }
}
origin: anylogic/alogic

protected ServiceDescription toServiceDescription(Path _path,Element root){
  String id = root.getAttribute("id");
  if (id == null){
    return null;
  }
  
  Path childPath = _path.append(id);
  
  DefaultServiceDescription sd = new DefaultServiceDescription(childPath.getId());
  sd.fromXML(root);
  
  //保存module
  String module = sd.getModule();
  Properties p = sd.getProperties();
  p.SetValue("servant.impl", module);
  sd.setModule(servant);
  sd.setPath(childPath.getPath());        
  return sd;
}
com.logicbus.models.servantDefaultServiceDescription<init>

Javadoc

constructor

Popular methods of DefaultServiceDescription

  • getProperties
    获取参数变量集
  • setModule
    设置服务实现代码
  • setPath
    设置服务路径
  • fromXML
  • getModule
    获得服务实现模块
  • getServiceID
    获得服务ID
  • setLogType
    设置日志类型
  • setName
    设置服务名称
  • setNote
    设置服务说明
  • setVisible
    设置服务的可见性
  • getAcGroup
  • getLogType
    获取日志类型
  • getAcGroup,
  • getLogType,
  • getName,
  • getNote,
  • getPath,
  • getPrivilege,
  • getVisible,
  • guard,
  • parseLogType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • Menu (java.awt)
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now