Author: nbelaevski
Date: 2009-07-02 12:48:00 -0400 (Thu, 02 Jul 2009)
New Revision: 14773
Modified:
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceHandlerImpl.java
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceImpl.java
Log:
Resources: ResourceImpl - added name initialization in ctor
Modified:
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceHandlerImpl.java
===================================================================
---
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceHandlerImpl.java 2009-07-02
16:14:22 UTC (rev 14772)
+++
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceHandlerImpl.java 2009-07-02
16:48:00 UTC (rev 14773)
@@ -201,6 +201,8 @@
Class<?> resourceClass = Class.forName(resourceName, true,
contextClassLoader);
if (Resource.class.isAssignableFrom(resourceClass)) {
resource = (Resource) resourceClass.newInstance();
+
+ //TODO remove this?
resource.setResourceName(resourceName);
}
} catch (ClassNotFoundException e1) {
Modified:
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceImpl.java
===================================================================
---
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceImpl.java 2009-07-02
16:14:22 UTC (rev 14772)
+++
branches/jsf2.0/framework/impl/src/main/java/org/richfaces/resource/ResourceImpl.java 2009-07-02
16:48:00 UTC (rev 14773)
@@ -57,6 +57,12 @@
private boolean useLocalLastModified = false;
+ public ResourceImpl() {
+ super();
+
+ this.setResourceName(getClass().getName());
+ }
+
/**
* @param resourceContext current {@link ResourceContext}
* @return Returns the contentLength.
Show replies by date