类 AbstractComponentRegistry<E extends Component,C>
- java.lang.Object
-
- cn.sliew.milky.registry.AbstractRegistry<E,C>
-
- cn.sliew.milky.component.AbstractComponentRegistry<E,C>
-
- 所有已实现的接口:
ComponentLookupService,ComponentRegistry<E,C>,Registry<E,C>,Iterable<E>
public abstract class AbstractComponentRegistry<E extends Component,C> extends AbstractRegistry<E,C> implements ComponentRegistry<E,C>
component base implemention.
-
-
字段概要
-
从类继承的字段 cn.sliew.milky.registry.AbstractRegistry
configurations, entries, listeners
-
-
构造器概要
构造器 构造器 说明 AbstractComponentRegistry()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanexists(Component component)booleanexists(String name)Set<String>lookup(AttributeKey key)Set<String>lookup(Tag tag)Set<String>lookup(Class componentType)Optional<E>lookup(String name)-
从类继承的方法 cn.sliew.milky.registry.AbstractRegistry
addConfiguration, computeIfAbsent, exist, find, getConfiguration, iterator, registerListener, remove, replace
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
从接口继承的方法 cn.sliew.milky.registry.Registry
addConfiguration, exist, find, getConfiguration, getDefaultConfig, registerListener, remove, replace
-
-
-
-
方法详细资料
-
lookup
public Optional<E> lookup(String name)
- 指定者:
lookup在接口中ComponentLookupService- 参数:
name- component unique name- 返回:
- Component indentified by unique name
-
lookup
public Set<String> lookup(Class componentType)
- 指定者:
lookup在接口中ComponentLookupService- 参数:
componentType- component class- 返回:
- all component names by component type
-
lookup
public Set<String> lookup(Tag tag)
- 指定者:
lookup在接口中ComponentLookupService- 参数:
tag- the tag- 返回:
- all component by specified tag
-
lookup
public Set<String> lookup(AttributeKey key)
- 指定者:
lookup在接口中ComponentLookupService- 参数:
key- the attribute- 返回:
- all component by specified attribute
-
exists
public boolean exists(String name)
- 指定者:
exists在接口中ComponentLookupService- 参数:
name- component unique name- 返回:
- true if component indentified by unique name exists, otherwise false
-
exists
public boolean exists(Component component)
- 指定者:
exists在接口中ComponentLookupService- 返回:
- true if component exists, otherwise false
-
-