org.drools.guvnor.server.contenthandler
Class PropertiesHandler

java.lang.Object
  extended by org.drools.guvnor.server.contenthandler.ContentHandler
      extended by org.drools.guvnor.server.contenthandler.PropertiesHandler

public class PropertiesHandler
extends ContentHandler

Handle *.properties file as a content for rule asset instead of a binary attachment


Constructor Summary
PropertiesHandler()
           
 
Method Summary
 void retrieveAssetContent(RuleAsset asset, AssetItem item)
          When loading asset content.
 void storeAssetContent(RuleAsset asset, AssetItem repoAsset)
          For storing the asset content back into the repo node (any changes).
 
Methods inherited from class org.drools.guvnor.server.contenthandler.ContentHandler
isRuleAsset, parentNameFromCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesHandler

public PropertiesHandler()
Method Detail

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


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.