Tabnine Logo
BeanEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
BeanEntry
in
org.eclipse.sisu

Best Java code snippets using org.eclipse.sisu.BeanEntry (Showing top 20 results out of 315)

origin: org.eclipse.sisu/org.eclipse.sisu.plexus

public T getValue()
{
  return bean.getValue();
}
origin: org.eclipse.sisu/org.eclipse.sisu.plexus

public Class<T> getImplementationClass()
{
  return bean.getImplementationClass();
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

  public void remove( final BeanEntry<javax.inject.Named, Item> bean, final NamedItemWatcher watcher )
    throws Exception
  {
    assertEquals( watcher.items.remove( bean.getKey().value() ), bean.getValue() );
  }
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

public void add( final BeanEntry<Named, Bean> entry, final RankedSequence<String> names )
{
  names.insert( entry.getKey().value(), entry.getRank() );
}
origin: com.atlassian.org.eclipse.sisu/org.eclipse.sisu.inject

public K getKey()
{
  return entry.getKey();
}
origin: io.takari.siesta/siesta-server

@Override
public void addComponent(final BeanEntry<?, ?> entry) throws Exception {
 Class<?> type = entry.getImplementationClass();
 if (isResource(type)) {
  getDispatcher().getRegistry().addResourceFactory(new SisuResourceFactory(entry));
  String path = resourcePath(type);
  if (path == null) {
   log.warn("Found resource implementation missing @Path: {}", type.getName());
  }
  else {
   log.debug("Added resource: {} with path: {}", type.getName(), path);
  }
 }
 else {
  // TODO: Doesn't seem to be a late-biding/factory here so we create the object early
  getDispatcher().getProviderFactory().register(entry.getValue());
  log.debug("Added component: {}", type.getName());
 }
}
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

PlexusComponentListResource resource = new PlexusComponentListResource();
String hint = entry.getKey().value();
String description = entry.getDescription();
origin: com.atlassian.org.eclipse.sisu/org.eclipse.sisu.inject

public Provider<V> getValue()
{
  return entry.getProvider();
}
origin: org.eclipse.sisu/org.eclipse.sisu.plexus

public String getDescription()
{
  return bean.getDescription();
}
origin: org.eclipse.sisu/org.eclipse.sisu.plexus

public String getKey()
{
  return bean.getKey().value();
}
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

String hint = entry.getKey().value();
String description = entry.getDescription();
origin: org.sonatype.nexus/nexus-commands

@Override
protected Action createNewAction(final Session session) {
 Action action = beanEntry.getProvider().get(); // create new instance each time
 if (action instanceof SessionAware) {
  ((SessionAware) action).setSession(session);
 }
 return action;
}
origin: org.sonatype.nexus/nexus-base

@Override
public void add(BeanEntry<Named, WebResource> entry, WebResourceServiceImpl watcher) throws Exception {
 watcher.addResource(entry.getValue());
}
origin: org.sonatype.nexus/nexus-base

public void add(final BeanEntry<Named, Metric> entry, final MetricRegistry registry) throws Exception {
 log.debug("Registering: {}", entry);
 registry.register(entry.getKey().value(), entry.getValue());
}
origin: org.sonatype.nexus/nexus-security

 @Override
 public void remove(BeanEntry<Named, Filter> entry, DynamicFilterChainManager manager) {
  manager.getFilters().remove(entry.getKey().value());
 }
}
origin: io.takari.siesta/siesta-server

@Override
public Class<?> getScannableClass() {
 return entry.getImplementationClass();
}
origin: org.sonatype.sisu.siesta/siesta-server

 public Object getInstance() {
  return entry.getValue();
 }
};
origin: org.sonatype.nexus/nexus-security

@Override
public void add(BeanEntry<Named, Filter> entry, DynamicFilterChainManager manager) {
 manager.addFilter(entry.getKey().value(), entry.getValue(), true);
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

  public void remove( final BeanEntry<Named, Bean> entry, final RankedSequence<String> names )
  {
    assertTrue( names.remove( entry.getKey().value() ) );
  }
}
origin: org.sonatype.nexus.plugins/nexus-extdirect-plugin

 @Nullable
 @Override
 public Class<?> apply(final BeanEntry<Annotation, DirectComponent> input) {
  Class<DirectComponent> implementationClass = input.getImplementationClass();
  log.debug("Registering Ext.Direct component '{}'", implementationClass);
  return implementationClass;
 }
})
org.eclipse.sisuBeanEntry

Javadoc

Map Entry that maps a JSR330 @ Qualifier annotation to a bean implementation.

Most used methods

  • getValue
    Returns the associated instance of the bean; returns same instance for each call.
  • getImplementationClass
    Attempts to find the implementation type without creating the bean instance.
  • getKey
    Returns the @ Qualifier annotation associated with this particular bean.
  • getDescription
    Returns a human-readable description of the bean; see @ Description.
  • getProvider
    Returns the underlying Provider; may support creation of multiple instances.
  • equals
  • getRank
    Returns the bean's rank; higher ranked beans override lower ranked beans.
  • hashCode

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm plugins
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