Package org.jboss.test.cluster.cache.aop

Examples of org.jboss.test.cluster.cache.aop.Person


   /**
    * @ejb.interface-method
    */
   public void addLanguage(String key, Object language)
   {
      Person person = ((Person) getPerson(key));
      List languages = person.getLanguages();
      if (languages == null) {
         person.setLanguages(new ArrayList());
         languages = person.getLanguages();
      }
      languages.add(language);
   }
View Full Code Here


   /**
    * @ejb.interface-method
    */
   public void addSkill(String key, String skill)
   {
      Person person = ((Person) getPerson(key));
      Set skills = person.getSkills();
      if (skills == null) {
         person.setSkills(new HashSet());
         skills = person.getSkills();
      }
      skills.add(skill);
   }
View Full Code Here

   /**
    * @ejb.interface-method
    */
   public void removeSkill(String key, String skill)
   {
      Person person = ((Person) getPerson(key));
      Set skills = person.getSkills();
      if (skills != null) {
         skills.remove(skill);
      }
   }
View Full Code Here

    * @ejb.interface-method
    */
   public Object testSerialization()
   {
      try {
         Person p = new Person();
         /*
         if (!(p instanceof Externalizable)) {
        throw new RuntimeException("p not Externalizable");
         }
         */
         p.setName("Harald Gliebe");
         Address address = new Address();
         address.setCity("Mannheim");
         p.setAddress(address);
         cache.attach("/person/harald", p);
         return (Person) cache.find("/person/harald");
      } catch (Throwable t) {
         throw new RuntimeException(t);
      }
View Full Code Here

TOP

Related Classes of org.jboss.test.cluster.cache.aop.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.