Package org.javlo.remote
Class LocalResourceFactory
- java.lang.Object
-
- org.javlo.remote.AbstractResourceFactory
-
- org.javlo.remote.LocalResourceFactory
-
public class LocalResourceFactory extends AbstractResourceFactory
access to the local version of remotable resources- Author:
- Patrick Vandermaesen
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_COMPONENTS
static String
TYPE_MODULES
static String
TYPE_TEMPLATES
-
Constructor Summary
Constructors Constructor Description LocalResourceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
static LocalResourceFactory
getInstance(GlobalContext globalContext)
IRemoteResource
getLocalResource(ContentContext ctx, String id)
IRemoteResource
getLocalResource(ContentContext ctx, String name, String type)
static IRemoteResource
getRemoteBean(IContentVisualComponent comp, Locale locale)
RemoteResourceList
getResources(ContentContext ctx)
RemoteResourceList
getResourcesForProxy(ContentContext ctx, String type, String category)
ArrayList<String>
getTypes()
-
Methods inherited from class org.javlo.remote.AbstractResourceFactory
getCategories, getTypes
-
-
-
-
Field Detail
-
TYPE_TEMPLATES
public static final String TYPE_TEMPLATES
- See Also:
- Constant Field Values
-
TYPE_COMPONENTS
public static final String TYPE_COMPONENTS
- See Also:
- Constant Field Values
-
TYPE_MODULES
public static final String TYPE_MODULES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static LocalResourceFactory getInstance(GlobalContext globalContext)
-
getRemoteBean
public static IRemoteResource getRemoteBean(IContentVisualComponent comp, Locale locale)
-
getLocalResource
public IRemoteResource getLocalResource(ContentContext ctx, String id)
-
getLocalResource
public IRemoteResource getLocalResource(ContentContext ctx, String name, String type)
-
getResources
public RemoteResourceList getResources(ContentContext ctx)
- Specified by:
getResources
in classAbstractResourceFactory
-
getResourcesForProxy
public RemoteResourceList getResourcesForProxy(ContentContext ctx, String type, String category) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
-
clear
public void clear()
-
-