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 StringTYPE_COMPONENTSstatic StringTYPE_MODULESstatic StringTYPE_TEMPLATES
-
Constructor Summary
Constructors Constructor Description LocalResourceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static LocalResourceFactorygetInstance(GlobalContext globalContext)IRemoteResourcegetLocalResource(ContentContext ctx, String id)IRemoteResourcegetLocalResource(ContentContext ctx, String name, String type)static IRemoteResourcegetRemoteBean(IContentVisualComponent comp, Locale locale)RemoteResourceListgetResources(ContentContext ctx)RemoteResourceListgetResourcesForProxy(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:
getResourcesin classAbstractResourceFactory
-
getResourcesForProxy
public RemoteResourceList getResourcesForProxy(ContentContext ctx, String type, String category) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
-
clear
public void clear()
-
-