cancel
Showing results for 
Search instead for 
Did you mean: 

How to Extend Alfresco Default Java Class ?

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Dear All,

I am new to Alfresco Explorer Java Class Changes. I know one class which I have to change for my Customization. I changed it but don't know how to put that class in extension class and for that which all extension environment files entries required ?

I know there are something called two types of extension of default java classes of Alfresco  : Clone and Extend the default class.

Please help me with the above mentioned issue.

Thanks!
-Nirvan
2 REPLIES 2

abhashree
Champ in-the-making
Champ in-the-making
Hi Nirvan,

As per my knowledge whenever there is a necessity of java code change for any customization then we have to change the codes in the source code package.

After chaging the codes then build  the source code package and deploy  the war  into the application server .
Then all the  changes will be reflected .

I don't think it is possible to change java class in other ways .

Thanks

Abhashree

mitpatoliya
Star Collaborator
Star Collaborator
You should always extend the out of box classes and then override only necessary APIs.
It is not good practice to touch core code.