Class AbstractComponentFactory

    • Field Detail

      • log

        protected static final org.infinispan.util.logging.Log log
    • Constructor Detail

      • AbstractComponentFactory

        public AbstractComponentFactory()
    • Method Detail

      • construct

        public Object construct​(String name)
        Specified by:
        construct in interface ComponentFactory
        Returns:
        Either a component instance or a ComponentAlias pointing to another component.
      • construct

        @Deprecated
        public <T> T construct​(Class<T> componentType)
        Deprecated.
        Since 9.4, please override ComponentFactory.construct(String) instead.
        Constructs a component.
        Parameters:
        componentType - type of component
        Returns:
        a component
      • assertTypeConstructable

        protected void assertTypeConstructable​(Class<?> requestedType,
                                               Class<?>... ableToConstruct)