/* Copyright 2008 Nahuel Foronda/AsFusion Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Y ou may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s oftware distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License Author: Nahuel Foronda, Principal Architect nahuel at asfusion dot com @ignore */ package com.fourD.core { [DefaultProperty("properties")] /** * BaseAction is the base class for all the IActions that have Properties */ public class InstancePropertyInjector { private var _instance:*; public function get instance():* { return _instance; } public function set instance(value:*):void { _instance = value; } private var _properties:Properties; public function get properties():Properties { return _properties; } public function set properties(value:Properties):void { _properties = value; } public function run():void { if(properties) { properties.injectProperties(instance); } } } }