Class EmptyResource
- java.lang.Object
-
- org.pepstock.charba.client.resources.AbstractInjectableResource
-
- org.pepstock.charba.client.resources.EmptyResource
-
public final class EmptyResource extends AbstractInjectableResource
Default implementation for an empty resource to inject.
This could be helpful when you don't want to inject a library because are available from another framework.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description EmptyResource(String name)
Creates an empty injectable resource with empty content, using the argument as name.EmptyResource(Key key)
Creates an empty injectable resource with empty content, using the argument as name.
-
-
-
Constructor Detail
-
EmptyResource
public EmptyResource(String name)
Creates an empty injectable resource with empty content, using the argument as name.- Parameters:
name
- name of resource as string
-
EmptyResource
public EmptyResource(Key key)
Creates an empty injectable resource with empty content, using the argument as name.- Parameters:
key
- name of resource as key
-
-