@Test void hasComponent() throws Exception { EmbeddableComponentManager ecm = new EmbeddableComponentManager(); DefaultComponentDescriptor<Role> d1 = new DefaultComponentDescriptor<>(); d1.setRoleType(Role.class); d1.setRoleHint("default"); ecm.registerComponent(d1); assertTrue(ecm.hasComponent(Role.class)); assertTrue(ecm.hasComponent(Role.class, "default")); }
@Override public boolean hasComponent(Type role) { return hasComponent(role, null); }
EmbeddableComponentManager implements NamespacedComponentManager, Disposable { @Override public boolean hasComponent(Type role) { return hasComponent(role, null); } }
EmbeddableComponentManager implements NamespacedComponentManager, Disposable { @Override public boolean hasComponent(Type role) { return hasComponent(role, null); } EmbeddableComponentManager();  EmbeddableComponentManager(String namespace); }
EmbeddableComponentManager implements NamespacedComponentManager, Disposable { @Override public boolean hasComponent(Type role) { return hasComponent(role, null); } EmbeddableComponentManager();  EmbeddableComponentManager(String namespace); @Override String getNamespace(); void initialize(ClassLoader classLoader); @Override boolean hasComponent(Type role); @Override boolean hasComponent(Type roleType, String roleHint); @Override T getInstance(Type roleType); @Override T getInstance(Type roleType, String roleHint); @Override List<T> getInstanceList(Type role); @Override @SuppressWarnings("unchecked") Map<String, T> getInstanceMap(Type roleType); @Override @SuppressWarnings("unchecked") ComponentDescriptor<T> getComponentDescriptor(Type role, String hint); @Override @SuppressWarnings("unchecked") List<ComponentDescriptor<T>> getComponentDescriptorList(Type role); @Override ComponentEventManager getComponentEventManager(); @Override void setComponentEventManager(ComponentEventManager eventManager); @Override ComponentManager getParent(); @Override void setParent(ComponentManager parentComponentManager); @Override void registerComponent(ComponentDescriptor<T> componentDescriptor); @Override void registerComponent(ComponentDescriptor<T> componentDescriptor, T componentInstance); @Override void unregisterComponent(Type role, String hint); @Override void unregisterComponent(ComponentDescriptor<?> componentDescriptor); @Override void release(Object component); @Override void dispose(); @Override @Deprecated List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> role); }
EmbeddableComponentManager implements NamespacedComponentManager, Disposable { @Override public boolean hasComponent(Type role) { return hasComponent(role, null); } EmbeddableComponentManager();  EmbeddableComponentManager(String namespace); @Override String getNamespace(); void initialize(ClassLoader classLoader); @Override boolean hasComponent(Type role); @Override boolean hasComponent(Type roleType, String roleHint); @Override T getInstance(Type roleType); @Override T getInstance(Type roleType, String roleHint); @Override List<T> getInstanceList(Type role); @Override @SuppressWarnings("unchecked") Map<String, T> getInstanceMap(Type roleType); @Override @SuppressWarnings("unchecked") ComponentDescriptor<T> getComponentDescriptor(Type role, String hint); @Override @SuppressWarnings("unchecked") List<ComponentDescriptor<T>> getComponentDescriptorList(Type role); @Override ComponentEventManager getComponentEventManager(); @Override void setComponentEventManager(ComponentEventManager eventManager); @Override ComponentManager getParent(); @Override void setParent(ComponentManager parentComponentManager); @Override void registerComponent(ComponentDescriptor<T> componentDescriptor); @Override void registerComponent(ComponentDescriptor<T> componentDescriptor, T componentInstance); @Override void unregisterComponent(Type role, String hint); @Override void unregisterComponent(ComponentDescriptor<?> componentDescriptor); @Override void release(Object component); @Override void dispose(); @Override @Deprecated List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> role);  }