Tabnine Logo
de.tsl2.nano.core
Code IndexAdd Tabnine to your IDE (free)

How to use de.tsl2.nano.core

Best Java code snippets using de.tsl2.nano.core (Showing top 20 results out of 315)

origin: net.sf.tsl2nano/tsl2.nano.directaccess

/**
 * constructor
 * 
 * @param entityManager persistence entity manager
 */
public GenericLocalServiceBean(EntityManager entityManager) {
  this(entityManager, ENV.get("service.use.database.replication", false));
}
origin: net.sf.tsl2nano/tsl2.nano.directaccess

protected void initAntScriptFile() {
  /*
   * on first time, we copy the scripts like antscripts.xml
   * to the plugin-workspace. we do this to provide user changes on that files!
   */
  ENV.extractResource(ANTSCRIPTNAME);
  ENV.extractResource(ANTSCRIPTPROP);
}
origin: net.sf.tsl2nano/tsl2.nano.directaccess

/**
 * returns the full workspace path for the given file
 * 
 * @param file file name
 * @return path
 */
public static String getPath(String file) {
  return ENV.getConfigPath() + file;
}
origin: net.sf.tsl2nano/tsl2.nano.vnet

@SuppressWarnings("rawtypes")
public static Net create(String vnetFile) {
  try {
    return (Net) FileUtil.loadXml(FileUtil.getFile(vnetFile));
  } catch (Exception e) {
    ManagedException.forward(e);
    return null;
  }
}
 
origin: net.sf.tsl2nano/tsl2.nano.directaccess

private static void close(Connection con) {
  if (con != null) {
    try {
      con.close();
    } catch (SQLException e) {
      ManagedException.forward(e);
    }
  }
}
origin: net.sf.tsl2nano/tsl2.nano.directaccess

public static String getBackupPath(String file) {
  return ENV.getTempPath() + file;
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

/**
 * override this method, if you work on entity beans with generic ids. you should assign the parent object.
 * 
 * @param selectedSourceItems items to move to the destination list.
 */
public void moveToDest(Collection<T> selectedSourceItems) {
  assert sourceItems.containsAll(selectedSourceItems);
  if (!(sourceItems.removeAll(selectedSourceItems))) {
    throw new ManagedException("tsl2nano.unexpectederror", null);
  }
  destItems.addAll(selectedSourceItems);
}
origin: net.sf.tsl2nano/tsl2.nano.terminal

public static final String getHelp() {
  return ENV.translate("help", false);
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

      @Override
      public Object action() throws Exception {
        //TODO should we reset the whole application - closing all sessions?
        session.getApplication().reset();
//                ENV.get(BeanPresentationHelper.class).reset();
        return page("configuration refreshed");
      }
 
origin: net.sf.tsl2nano/tsl2.nano.descriptor

      @Override
      public Object action() throws Exception {
        session.getApplication().persist();
//                ENV.get(BeanPresentationHelper.class).reset();
        return page("configuration refreshed");
      }
 
origin: net.sf.tsl2nano/tsl2.nano.descriptor

public static String getFileName(String name) {
  return ENV.getTempPathRel() + "context-" + name + ".xml";
}
origin: net.sf.tsl2nano/tsl2.nano.vnet

/**
 * constructor
 */
public Net(String name) {
  this.name = name;
  elements = new TreeMap<String, Node<T, D>>();
  ENV.removeService(NotificationController.class);
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

@Override
public Object clone() {
  try {
    return super.clone();
  } catch (CloneNotSupportedException e) {
    ManagedException.forward(e);
    return null;
  }
}
origin: net.sf.tsl2nano/tsl2.nano.directaccess

public String evalSqlFileName(String name) {
  return ENV.getConfigPath() + name + ".sql";
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

private static boolean useExtraCollectorDefinition() {
  return ENV.get("collector.use.extra.definition", false);
}
origin: net.sf.tsl2nano/tsl2.nano.directaccess

public IAction<Collection<?>> runner() {
  if (runner == null) {
    String id = "scripttool.go";
    String lbl = ENV.translate(id, true);
    runner = new CommonAction(id, lbl, lbl) {
      @Override
      public Object action() throws Exception {
        FileUtil.save(SERIALIZED_SCRIPTOOL, ScriptTool.this);
        return selectedAction != null ? selectedAction.activate() : null;
      }
    };
  }
  return runner;
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

/**
 * default readaccessmethod if default constructor was invoked
 */
private static final Method UNDEFINEDMETHOD() {
  try {
    //get yourself
    return AttributeDefinition.class.getDeclaredMethod("UNDEFINEDMETHOD", new Class[0]);
  } catch (Exception e) {
    ManagedException.forward(e);
    return null;
  }
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

public static String getDefinitionDirectory() {
  return ENV.getConfigPath() + "presentation/";
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

/**
 * @return Returns the presentationHelper.
 */
public <PH extends BeanPresentationHelper<T>> PH getPresentationHelper() {
  if (presentationHelper == null) {
    presentationHelper = ENV.get(BeanPresentationHelper.class).createHelper(this);
  }
  return (PH) presentationHelper;
}
origin: net.sf.tsl2nano/tsl2.nano.descriptor

/**
 * getPresentation
 * 
 * @return
 */
@Override
public IPresentable getPresentation() {
  //TODO: create presentation helper through MultipleInheritanceProxy
  if (presentable == null) {
    presentable = ENV.get(BeanPresentationHelper.class).createPresentable(this);
  }
  return presentable;
}
de.tsl2.nano.core

Most used classes

  • Util
  • BeanClass
  • StringUtil
  • ENV
  • ManagedException
  • PrivateAccessor,
  • ListSet,
  • BeanAttribute,
  • XmlUtil,
  • ConcurrentUtil,
  • MapUtil,
  • Messages,
  • Message,
  • LogFactory,
  • EventController,
  • NumberUtil,
  • ITransformer,
  • NetworkClassLoader,
  • ClassFinder
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now