Class PModeRepository
- java.lang.Object
-
- org.wso2.carbon.mediation.connector.pmode.PModeRepository
-
- All Implemented Interfaces:
org.apache.commons.vfs2.FileListener
public class PModeRepository extends Object implements org.apache.commons.vfs2.FileListener
PMode repository implementation which will store current PModes. This will work as file listener as well. So adding and editing PModes will get automatically synced with this in memory repository.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fileChanged(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
void
fileCreated(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
void
fileDeleted(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
PMode
findPModeFromAgreement(String agreement)
API method to get PMode using agreementRefstatic PModeRepository
getInstance()
This will return the PModeRepository instance
-
-
-
Method Detail
-
getInstance
public static PModeRepository getInstance() throws org.apache.axis2.AxisFault
This will return the PModeRepository instance- Throws:
org.apache.axis2.AxisFault
-
findPModeFromAgreement
public PMode findPModeFromAgreement(String agreement)
API method to get PMode using agreementRef- Parameters:
agreement
- PMode Agreement- Returns:
- pMode PMode object
-
fileCreated
public void fileCreated(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent) throws Exception
- Specified by:
fileCreated
in interfaceorg.apache.commons.vfs2.FileListener
- Throws:
Exception
-
fileDeleted
public void fileDeleted(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent) throws Exception
- Specified by:
fileDeleted
in interfaceorg.apache.commons.vfs2.FileListener
- Throws:
Exception
-
-