Package com.composum.sling.core.bean
Interface SlingBeanFactory
-
public interface SlingBeanFactory
a factory service interface to produce a bean (model)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull SlingBean
createBean(@NotNull BeanContext context, @NotNull org.apache.sling.api.resource.Resource resource, @NotNull Class<? extends SlingBean> type)
-
-
-
Method Detail
-
createBean
@NotNull @NotNull SlingBean createBean(@NotNull @NotNull BeanContext context, @NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull Class<? extends SlingBean> type) throws InstantiationException
- Returns:
- a new bean (model) for the given resource an the requested type
- Throws:
InstantiationException
-
-