ExtensionFunction.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * $HeadURL: $
  3. *
  4. * $Author: $
  5. * $Date: $
  6. * $Revision: $
  7. *
  8. *
  9. * This program is free software: you can redistribute it and/or modify it under
  10. * the terms of the GNU General Public License as published by the Free Software
  11. * Foundation, either version 3 of the License, or (at your option) any later
  12. * version.
  13. *
  14. * This program is distributed in the hope that it will be useful, but WITHOUT
  15. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License along with
  20. * this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. package com.l2jserver.gameserver.util;
  23. /**
  24. * This interface can be implemented by extensions to register simple functions with the DynamicExtension handler
  25. * It's in the responsibility of the extensions to interpret the get and set functions
  26. *
  27. * @version $Revision: $ $Date: $
  28. * @author Galun
  29. */
  30. public interface ExtensionFunction
  31. {
  32. /**
  33. * get an object identified with a name (should have a human readable output with toString())
  34. * @param name the name of an object or a result of a function
  35. * @return the object
  36. */
  37. public Object get(String name);
  38. /**
  39. * set the named object to the new value supplied in obj
  40. * @param name the name of the object
  41. * @param obj the new value
  42. */
  43. public void set(String name, Object obj);
  44. }