← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20294: Added @component to FileResourceSchemaDescriptor

 

------------------------------------------------------------
revno: 20294
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-09-22 15:29:05 +0200
message:
  Added @component to FileResourceSchemaDescriptor
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/FileResourceSchemaDescriptor.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/FileResourceSchemaDescriptor.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/FileResourceSchemaDescriptor.java	2015-09-22 13:25:37 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/FileResourceSchemaDescriptor.java	2015-09-22 13:29:05 +0000
@@ -33,10 +33,12 @@
 import org.hisp.dhis.schema.SchemaDescriptor;
 import org.hisp.dhis.security.Authority;
 import org.hisp.dhis.security.AuthorityType;
+import org.springframework.stereotype.Component;
 
 /**
  * @author Halvdan Hoem Grelland
  */
+@Component
 public class FileResourceSchemaDescriptor
     implements SchemaDescriptor
 {
@@ -46,7 +48,8 @@
 
     public static final String API_ENDPOINT = "/" + PLURAL;
 
-    @Override public Schema getSchema()
+    @Override 
+    public Schema getSchema()
     {
         Schema schema = new Schema( FileResource.class, SINGULAR, PLURAL );
         schema.setRelativeApiEndpoint( API_ENDPOINT );