public T getValue() { return bean.getValue(); }
public Class<T> getImplementationClass() { return bean.getImplementationClass(); }
public K getKey() { return entry.getKey(); }
@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()); } }
PlexusComponentListResource resource = new PlexusComponentListResource(); String hint = entry.getKey().value(); String description = entry.getDescription();
public Provider<V> getValue() { return entry.getProvider(); }
public String getDescription() { return bean.getDescription(); }
public String getKey() { return bean.getKey().value(); }
String hint = entry.getKey().value(); String description = entry.getDescription();
@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; }
@Override public void add(BeanEntry<Named, WebResource> entry, WebResourceServiceImpl watcher) throws Exception { watcher.addResource(entry.getValue()); }
@Override public void remove(BeanEntry<Named, Filter> entry, DynamicFilterChainManager manager) { manager.getFilters().remove(entry.getKey().value()); } }
@Override public Class<?> getScannableClass() { return entry.getImplementationClass(); }
public Object getInstance() { return entry.getValue(); } };
public void remove( final BeanEntry<Named, Bean> entry, final RankedSequence<String> names ) { assertTrue( names.remove( entry.getKey().value() ) ); } }
@Nullable @Override public Class<?> apply(final BeanEntry<Annotation, DirectComponent> input) { Class<DirectComponent> implementationClass = input.getImplementationClass(); log.debug("Registering Ext.Direct component '{}'", implementationClass); return implementationClass; } })