Package org.jboss.beans.metadata.plugins.policy

Examples of org.jboss.beans.metadata.plugins.policy.AbstractPolicyMetaData


   /** The interceptor */
   public static final PolicyScopeInterceptor INTERCEPTOR = new PolicyScopeInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData) parent;
      AbstractScopeMetaData scope = (AbstractScopeMetaData) child;
      policy.setScope(scope);
   }
View Full Code Here


   /** The interceptor */
   public static final PolicyAnnotationsInterceptor INTERCEPTOR = new PolicyAnnotationsInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData) parent;
      AbstractAnnotationMetaData annotation = (AbstractAnnotationMetaData) child;
      Set<AnnotationMetaData> annotations = policy.getAnnotations();
      if (annotations == null)
      {
         annotations = new HashSet<AnnotationMetaData>();
         policy.setAnnotations(annotations);
      }
      annotations.add(annotation);
   }
View Full Code Here

   /** The interceptor */
   public static final PolicyBindingInterceptor INTERCEPTOR = new PolicyBindingInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData) parent;
      AbstractBindingMetaData binding = (AbstractBindingMetaData) child;
      Set<BindingMetaData> bindings = policy.getBindings();
      if (bindings == null)
      {
         bindings = new HashSet<BindingMetaData>();
         policy.setBindings(bindings);
      }
      bindings.add(binding);
   }
View Full Code Here

/*    */ {
/* 41 */   public static final PolicyAnnotationsInterceptor INTERCEPTOR = new PolicyAnnotationsInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 45 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)parent;
/* 46 */     AbstractAnnotationMetaData annotation = (AbstractAnnotationMetaData)child;
/* 47 */     Set annotations = policy.getAnnotations();
/* 48 */     if (annotations == null)
/*    */     {
/* 50 */       annotations = new HashSet();
/* 51 */       policy.setAnnotations(annotations);
/*    */     }
/* 53 */     annotations.add(annotation);
/*    */   }
View Full Code Here

/*    */ {
/* 41 */   public static final PolicyBindingInterceptor INTERCEPTOR = new PolicyBindingInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 45 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)parent;
/* 46 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)child;
/* 47 */     Set bindings = policy.getBindings();
/* 48 */     if (bindings == null)
/*    */     {
/* 50 */       bindings = new HashSet();
/* 51 */       policy.setBindings(bindings);
/*    */     }
/* 53 */     bindings.add(binding);
/*    */   }
View Full Code Here

/*    */ {
/* 40 */   public static final PolicyHandler HANDLER = new PolicyHandler();
/*    */
/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 44 */     return new AbstractPolicyMetaData();
/*    */   }
View Full Code Here

/* 44 */     return new AbstractPolicyMetaData();
/*    */   }
/*    */
/*    */   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/*    */   {
/* 49 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)o;
/* 50 */     for (int i = 0; i < attrs.getLength(); i++)
/*    */     {
/* 52 */       String localName = attrs.getLocalName(i);
/* 53 */       if ("name".equals(localName))
/* 54 */         policy.setName(attrs.getValue(i));
/* 55 */       else if ("extends".equals(localName))
/* 56 */         policy.setExtends(attrs.getValue(i));
/*    */     }
/*    */   }
View Full Code Here

/*    */ {
/* 38 */   public static final PolicyScopeInterceptor INTERCEPTOR = new PolicyScopeInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 42 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)parent;
/* 43 */     AbstractScopeMetaData scope = (AbstractScopeMetaData)child;
/* 44 */     policy.setScope(scope);
/*    */   }
View Full Code Here

   /** The policy handler */
   public static final PolicyHandler HANDLER = new PolicyHandler();

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      return new AbstractPolicyMetaData();
   }
View Full Code Here

      return new AbstractPolicyMetaData();
   }

   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData)o;
      for (int i = 0; i < attrs.getLength(); ++i)
      {
         String localName = attrs.getLocalName(i);
         if ("name".equals(localName))
            policy.setName(attrs.getValue(i));
         else if ("extends".equals(localName))
            policy.setExtends(attrs.getValue(i));
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.plugins.policy.AbstractPolicyMetaData

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.