Codota Logo
BeanManager.list
Code IndexAdd Codota to your IDE (free)

How to use
list
method
in
org.deephacks.tools4j.config.spi.BeanManager

Best Java code snippets using org.deephacks.tools4j.config.spi.BeanManager.list (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.deephacks.tools4j/tools4j-config-core

@Override
public List<Bean> list(String schemaName) {
  Preconditions.checkNotNull(schemaName);
  doLookup();
  Map<BeanId, Bean> beans = beanManager.list(schemaName);
  core.setSchema(schemaManager.getSchemas(), beans);
  return new ArrayList<>(beans.values());
}
origin: org.deephacks.tools4j/config-core

@Override
public List<Bean> list(String schemaName) {
  Preconditions.checkNotNull(schemaName);
  doLookup();
  Map<BeanId, Bean> beans = beanManager.list(schemaName);
  setSchema(schemaManager.getSchemas(), beans);
  return new ArrayList<Bean>(beans.values());
}
origin: org.deephacks.tools4j/config-core

@Override
public List<Bean> list(String schemaName, Collection<String> instanceIds) {
  Preconditions.checkNotNull(schemaName);
  if (instanceIds == null || instanceIds.isEmpty()) {
    return new ArrayList<Bean>();
  }
  doLookup();
  Map<BeanId, Bean> beans = beanManager.list(schemaName);
  Map<BeanId, Bean> result = new HashMap<BeanId, Bean>();
  for (String instanceId : instanceIds) {
    Bean b = beans.get(BeanId.create(instanceId, schemaName));
    result.put(b.getId(), b);
  }
  Map<String, Schema> schemas = schemaManager.getSchemas();
  setSchema(schemas, result);
  return new ArrayList<Bean>(result.values());
}
origin: org.deephacks.tools4j/tools4j-config-core

@Override
public List<Bean> list(String schemaName, Collection<String> instanceIds) {
  Preconditions.checkNotNull(schemaName);
  if (instanceIds == null || instanceIds.isEmpty()) {
    return new ArrayList<>();
  }
  doLookup();
  Map<BeanId, Bean> beans = beanManager.list(schemaName, instanceIds);
  Map<BeanId, Bean> result = new HashMap<>();
  for (String instanceId : instanceIds) {
    Bean b = beans.get(BeanId.create(instanceId, schemaName));
    result.put(b.getId(), b);
  }
  Map<String, Schema> schemas = schemaManager.getSchemas();
  core.setSchema(schemas, result);
  return new ArrayList<>(result.values());
}
origin: org.deephacks.tools4j/config-core

@Override
public <T> List<T> all(Class<T> clazz) {
  doLookup();
  Schema s = getSchema(clazz);
  Map<String, Schema> schemas = schemaManager.getSchemas();
  Map<BeanId, Bean> beans = beanManager.list(s.getName());
  setSchema(schemas, beans);
  for (Bean bean : beans.values()) {
    setSingletonReferences(bean, schemas);
  }
  return Lists.newArrayList(conversion.convert(beans.values(), clazz));
}
origin: org.deephacks.tools4j/tools4j-config-core

Map<BeanId, Bean> beans = new HashMap<>();
Map<String, Schema> schemas = schemaManager.getSchemas();
Map<BeanId, Bean> found = beanManager.list(s.getName());
org.deephacks.tools4j.config.spiBeanManagerlist

Javadoc

List all instances of a specific schema type.

Beans will have their basic properties initialized and all references traversed and fetched eagerly.

Popular methods of BeanManager

  • create
    Creates a new bean. If the bean have references to other beans, the bean manager make sure that refe
  • delete
    Delete a bean accoring to id. Delete operations are not cascading, which means that a bean's referen
  • getEager
    Get a specific instance of a particular schema type. Beans will have their basic properties initi
  • getBeanToValidate
    Bean Manager is responsible for fetching the beans that are to validated when changes are made to s
  • getLazy
    Get a specific instance of a particular schema type. Beans will have their basic properties and a
  • getSingleton
    Get a singleton instance for a particular schema.
  • merge
    Merges the provided properties with an already existing instance. Already persisted properties and b
  • set
    Replace (set) an existing bean instance with provided data. Already persisted properties and bean re
  • createSingleton
    Create a singleton instance. This method will return silently if the instance already exist. Bean Ma
  • newQuery

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Reference (javax.naming)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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