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

How to use
getImplementationClass
method
in
org.eclipse.sisu.BeanEntry

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

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

public Class<T> getImplementationClass()
{
  return bean.getImplementationClass();
}
origin: io.takari.siesta/siesta-server

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

public BeanEntryCommand(final BeanLocator beanLocator, final BeanEntry<?, Action> beanEntry) {
 super(beanEntry.getImplementationClass());
 this.beanLocator = checkNotNull(beanLocator);
 this.beanEntry = checkNotNull(beanEntry);
}
origin: com.atlassian.sdk/ap3-api

public Set<Class<?>> getEntryTypes()
{
  if (entryTypes.size() < 1)
  {
    for (BeanEntry<ConfigurationEntry, Object> entry : entries)
    {
      Class<?> clazz = entry.getImplementationClass();
      entryTypes.add(clazz);
    }
  }
  return ImmutableSet.copyOf(entryTypes);
}
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;
 }
})
origin: org.sonatype.nexus/nexus-extdirect

 @Nullable
 @Override
 public Class<?> apply(final BeanEntry<Annotation, DirectComponent> input) {
  Class<DirectComponent> implementationClass = input.getImplementationClass();
  log.debug("Registering Ext.Direct component '{}'", implementationClass);
  return implementationClass;
 }
})
origin: org.sonatype.sisu.siesta/siesta-server

 private void findResources() {
  log.debug("Finding resources");

  for (BeanEntry<Annotation, Resource> entry : container.locate(Key.get(Resource.class))) {
   Class<?> type = entry.getImplementationClass();
   Path path = type.getAnnotation(Path.class);
   if (path != null) {
    log.debug("Adding resource: {} -> {}", path.value(), type);
    classes.add(type);
   }
  }

  log.debug("Found {} resources", classes.size());
 }
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

private void checkDefaultBinding( final Class<?> api, final Class<?> imp )
{
  final Annotation defaultName = Names.named( "default" );
  assertSame( imp, locator.locate( Key.get( api ) ).iterator().next().getImplementationClass() );
  assertSame( imp, locator.locate( Key.get( api, Named.class ) ).iterator().next().getImplementationClass() );
  assertSame( imp, locator.locate( Key.get( api, defaultName ) ).iterator().next().getImplementationClass() );
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

private void checkNamedBinding( final Class<?> api, final String name, final Class<?> imp )
{
  assertSame( imp,
        locator.locate( Key.get( api, Names.named( name ) ) ).iterator().next().getImplementationClass() );
}
origin: org.eclipse.sisu/org.eclipse.sisu.inject.tests

private void checkLegacyBinding( final Class<?> api, final Class<?> imp )
{
  assertSame( imp, locator.locate( Key.get( api, Legacy.class ) ).iterator().next().getImplementationClass() );
}
origin: org.sonatype.sisu.siesta/siesta-server

 private void findComponents() {
  log.debug("Finding components");

  for (BeanEntry<Annotation, Component> entry : container.locate(Key.get(Component.class))) {
   log.trace("Found: {}", entry);

   Class<?> type = entry.getImplementationClass();
   if (Resource.class.isAssignableFrom(type)) {
    // only add resources which are annotated with a path
    Path path = type.getAnnotation(Path.class);
    if (path != null) {
     log.debug("Adding resource: {} -> {}", path.value(), type);
     //noinspection unchecked
     resources.add((Class<Resource>) type);
    }
   }
   else {
    log.debug("Adding component: {}", type);
    components.add(type);
   }
  }

  classes.addAll(resources);
  classes.addAll(components);

  // TODO: Support singleton component discovery

  log.debug("Found {} components", classes.size());
 }
}
origin: org.sonatype.nexus/nexus-commands

@Override
public void add(final BeanEntry<Named, Action> beanEntry, final BundleContext bundleContext) throws Exception {
 Command command = beanEntry.getImplementationClass().getAnnotation(Command.class);
 if (command != null) {
  log.debug("Registering command: {}", beanEntry);
  sessionFactory.getRegistry().register(new BeanEntryCommand(beanLocator, beanEntry));
 }
 else {
  log.warn("Missing @Command annotation on action: {}", beanEntry);
 }
}
origin: org.sonatype.nexus/nexus-commands

 @Override
 public void remove(final BeanEntry<Named, Action> beanEntry, final BundleContext bundleContext) throws Exception {
  Command command = beanEntry.getImplementationClass().getAnnotation(Command.class);
  if (command != null) {
   log.debug("Unregistering command: {}", beanEntry);
   sessionFactory.getRegistry().unregister(new BeanEntryCommand(beanLocator, beanEntry));
  }
 }
}
origin: io.takari.siesta/siesta-server

 @Override
 public void removeComponent(final BeanEntry<?, ?> entry) throws Exception {
  Class<?> type = entry.getImplementationClass();
  if (isResource(type)) {
   getDispatcher().getRegistry().removeRegistrations(type);
   String path = resourcePath(type);
   log.debug("Removed resource: {} with path: {}", type.getName(), path);
  }
  else {
   ResteasyProviderFactory providerFactory = getDispatcher().getProviderFactory();
   if (providerFactory instanceof SisuResteasyProviderFactory) {
    ((SisuResteasyProviderFactory) providerFactory).removeRegistrations(type);
    log.debug("Removed component: {}", type.getName());
   }
   else {
    log.warn("Component removal not supported; Unable to remove component: {}", type.getName());
   }
  }
 }
}
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());
 }
}
org.eclipse.sisuBeanEntrygetImplementationClass

Javadoc

Attempts to find the implementation type without creating the bean instance.

Popular methods of BeanEntry

  • getValue
    Returns the associated instance of the bean; returns same instance for each call.
  • 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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Github Copilot alternatives
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