Package org.javlo.component.core
Class ComponentFactory
- java.lang.Object
-
- org.javlo.component.core.ComponentFactory
-
public class ComponentFactory extends Object
- Author:
- pvanderm
-
-
Field Summary
Fields Modifier and Type Field Description static String
loadErrorMessage
protected static Logger
logger
create a static logger.
-
Method Summary
-
-
-
Method Detail
-
cleanComponentList
public static final void cleanComponentList(javax.servlet.ServletContext application, GlobalContext globalContext)
-
getComponents
public static List<IContentVisualComponent> getComponents(ContentContext ctx, MenuElement page) throws Exception
return request scope component (add template component)- Parameters:
request
-- Returns:
- list of application component + template components
- Throws:
Exception
-
updateComponentsLogLevel
public static final void updateComponentsLogLevel(javax.servlet.ServletContext application, Level level) throws Exception
- Throws:
Exception
-
getDynamicComponents
public static DynamicComponent getDynamicComponents(ContentContext ctx, String type) throws Exception
- Throws:
Exception
-
getAllDynamicComponents
public static List<DynamicComponent> getAllDynamicComponents(ContentContext ctx) throws Exception
- Throws:
Exception
-
getComponents
public static Map<String,IContentVisualComponent> getComponents(javax.servlet.ServletContext application) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getComponents
public static IContentVisualComponent[] getComponents(ContentContext ctx) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getComponents
public static IContentVisualComponent[] getComponents(ContentContext ctx, GlobalContext globalContext) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getDefaultComponents
public static IContentVisualComponent[] getDefaultComponents(javax.servlet.ServletContext application) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getComponentWithType
public static IContentVisualComponent getComponentWithType(ContentContext ctx, MenuElement page, String type)
-
getComponentWithType
public static IContentVisualComponent getComponentWithType(ContentContext ctx, String type)
-
createComponent
public static IContentVisualComponent createComponent(ContentContext ctx, ComponentBean bean, MenuElement inPage, IContentVisualComponent previous, IContentVisualComponent next) throws Exception
- Throws:
Exception
-
CreateComponent
public static AbstractVisualComponent CreateComponent(ContentContext ctx, ComponentBean bean, MenuElement inPage, IContentVisualComponent previous, IContentVisualComponent next) throws Exception
- Throws:
Exception
-
getContentByType
public static List<ComponentBean> getContentByType(ContentContext ctx, String type) throws Exception
- Throws:
Exception
-
createUnlinkedComponentFromMap
public static IContentVisualComponent createUnlinkedComponentFromMap(ContentContext ctx, Map<String,Object> data) throws Exception
create component from map, map is created from IRestComponent- Parameters:
data
-- Returns:
- Throws:
Exception
-
getAllComponentsFromContext
public static List<IContentVisualComponent> getAllComponentsFromContext(ContentContext ctx) throws Exception
- Throws:
Exception
-
getGlobalContextComponent
public static List<IContentVisualComponent> getGlobalContextComponent(ContentContext ctx, Template template) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getGlobalContextComponent
public static List<IContentVisualComponent> getGlobalContextComponent(ContentContext ctx, int complexityLevel) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getGlobalContextComponent
public static List<IContentVisualComponent> getGlobalContextComponent(ContentContext ctx, int complexityLevel, Template template) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
-
getComponentForDisplay
public static List<Edit.ComponentWrapper> getComponentForDisplay(ContentContext ctx, boolean sort) throws Exception
- Throws:
Exception
-
main
public static void main(String[] args)
-
-