org.drools.guvnor.server.contenthandler
Class ModelContentHandler
java.lang.Object
org.drools.guvnor.server.contenthandler.ContentHandler
org.drools.guvnor.server.contenthandler.ModelContentHandler
- All Implemented Interfaces:
- ICanHasAttachment
public class ModelContentHandler
- extends ContentHandler
- implements ICanHasAttachment
This is used for handling jar models for the rules.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelContentHandler
public ModelContentHandler()
retrieveAssetContent
public void retrieveAssetContent(RuleAsset asset,
AssetItem item)
throws com.google.gwt.user.client.rpc.SerializationException
- Description copied from class:
ContentHandler
- When loading asset content.
- Specified by:
retrieveAssetContent
in class ContentHandler
- Parameters:
asset
- The target.item
- The source.
- Throws:
com.google.gwt.user.client.rpc.SerializationException
storeAssetContent
public void storeAssetContent(RuleAsset asset,
AssetItem repoAsset)
throws com.google.gwt.user.client.rpc.SerializationException
- Description copied from class:
ContentHandler
- For storing the asset content back into the repo node (any changes).
- Specified by:
storeAssetContent
in class ContentHandler
- Throws:
com.google.gwt.user.client.rpc.SerializationException
onAttachmentAdded
public void onAttachmentAdded(AssetItem asset)
throws IOException
- This is called when a model jar is attached, it will peer into it, and
then automatically add imports if there aren't any already in the package
header configuration.
- Specified by:
onAttachmentAdded
in interface ICanHasAttachment
- Throws:
IOException
onAttachmentRemoved
public void onAttachmentRemoved(AssetItem item)
throws IOException
- Specified by:
onAttachmentRemoved
in interface ICanHasAttachment
- Throws:
IOException
convertPathToName
public static String convertPathToName(String name)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.