public interface CompatibilityComponentManager
ComponentManager
class.Modifier and Type | Method and Description |
---|---|
<T> ComponentDescriptor<T> |
getComponentDescriptor(Class<T> role,
String hint)
Deprecated.
since 4.0M1 use
#getComponentDescriptor(Type, String) instead |
<T> boolean |
hasComponent(Class<T> role)
Deprecated.
since 4.0M1 use
#hasComponent(Type) instead |
<T> boolean |
hasComponent(Class<T> role,
String hint)
Deprecated.
since 4.0M1 use
#hasComponent(Type, String) instead |
<T> T |
lookup(Class<T> role)
Deprecated.
since 4.0M1 use
#getInstance(java.lang.reflect.Type) instead |
<T> T |
lookup(Class<T> role,
String hint)
Deprecated.
since 4.0M1 use
#getInstance(java.lang.reflect.Type, String) instead |
<T> List<T> |
lookupList(Class<T> role)
Deprecated.
since 4.0M1 use
#getInstanceList(java.lang.reflect.Type) instead |
<T> Map<String,T> |
lookupMap(Class<T> role)
Deprecated.
since 4.0M1 use
#getInstanceMap(java.lang.reflect.Type) instead |
<T> void |
unregisterComponent(Class<T> role,
String hint)
Deprecated.
since 4.0M1 use
#unregisterComponent(Type, String) instead |
@Deprecated <T> T lookup(Class<T> role) throws ComponentLookupException
#getInstance(java.lang.reflect.Type)
insteadT
- the component role typerole
- the class (aka role) that the component implementsComponentLookupException
- in case the component cannot be found@Deprecated <T> T lookup(Class<T> role, String hint) throws ComponentLookupException
#getInstance(java.lang.reflect.Type, String)
insteadT
- the component role typerole
- the class (aka role) that the component implementshint
- the hint that differentiates a component implementation from another one (each component is
registered with a hint; the "default" hint being the default)ComponentLookupException
- in case the component cannot be found@Deprecated <T> List<T> lookupList(Class<T> role) throws ComponentLookupException
#getInstanceList(java.lang.reflect.Type)
insteadT
- the type of the components rolerole
- the class of the components roleComponentLookupException
- if any error happen during component search@Deprecated <T> Map<String,T> lookupMap(Class<T> role) throws ComponentLookupException
#getInstanceMap(java.lang.reflect.Type)
insteadMap
with role hint as key.T
- the type of the components rolerole
- the class of the components roleComponentLookupException
- if any error happen during component search@Deprecated <T> boolean hasComponent(Class<T> role)
#hasComponent(Type)
insteadT
- the component role typerole
- the class (aka role) that the component implements@Deprecated <T> boolean hasComponent(Class<T> role, String hint)
#hasComponent(Type, String)
insteadT
- the component role typerole
- the class (aka role) that the component implementshint
- the hint that differentiates a component implementation from another one (each component is
registered with a hint; the "default" hint being the default)@Deprecated <T> void unregisterComponent(Class<T> role, String hint)
#unregisterComponent(Type, String)
insteadT
- the component role typerole
- the role identifying the componenthint
- the hint identifying the component@Deprecated <T> ComponentDescriptor<T> getComponentDescriptor(Class<T> role, String hint)
#getComponentDescriptor(Type, String)
insteadT
- the component role typerole
- the role identifying the componenthint
- the hint identifying the componentCopyright © 2004–2019 XWiki. All rights reserved.