Examples of policy()


Examples of aQute.bnd.osgi.Descriptors.TypeRef.policy()

        LookupReference ref = refAnnotation.getAnnotation();
        ReferenceDef refdef = new ReferenceDef();
        refdef.name = ref.name();
        refdef.service = analyzer.getTypeRef((String) refAnnotation.get("service")).getFQN();
        refdef.cardinality = ref.cardinality();
        refdef.policy = ref.policy();
        refdef.policyOption = ref.policyOption();
        refdef.target = ref.target();
        refdef.scope = ref.scope();
        component.references.put(refdef.name, refdef);
      }
View Full Code Here

Examples of net.diegomaia.vraptor.saci.annotation.Roles.policy()

    }
    if (clazz.isAnnotationPresent(Roles.class)){
      Roles roles = clazz.getAnnotation(Roles.class);
      RolesRestriction rolesRestriction = new RolesRestriction();
      rolesRestriction.setRoles(this.getRoles(roles));
      rolesRestriction.setPolicy(roles.policy());
      restrictions.add(rolesRestriction);
    }
    return new RestrictionsWrapper(clazz.getAnnotation(InheritRestrictions.class), clazz.getAnnotation(OnAccessDenial.class), restrictions);
  }
View Full Code Here

Examples of net.diegomaia.vraptor.saci.annotation.Roles.policy()

    }
    if (method.isAnnotationPresent(Roles.class)){
      Roles roles = method.getAnnotation(Roles.class);
      RolesRestriction rolesRestriction = new RolesRestriction();
      rolesRestriction.setRoles(getRoles(roles));
      rolesRestriction.setPolicy(roles.policy());
      restrictions.add(rolesRestriction);
    }
    return new RestrictionsWrapper(method.getAnnotation(InheritRestrictions.class), method.getAnnotation(OnAccessDenial.class), restrictions);
  }
View Full Code Here

Examples of org.eweb4j.mvc.interceptor.Interceptor.policy()

      if (except != null && except.length > 0){
        List<String> list = Arrays.asList(except);
        inter.setExcept(new ArrayList<String>(list));
      }
     
      inter.setPolicy(interAnn.policy());
      inter.setType(interAnn.type());
      inter.setPriority(String.valueOf(interAnn.priority()));
      Singleton sin = cls.getAnnotation(Singleton.class);
      if (sin != null)
        inter.setScope("singleton");
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

      Class<? extends DefaultJndiBindingPolicy> policy = null;
     
      // If policy is defined
      if (bindingPolicy != null){
         // Use it
         policy = bindingPolicy.policy();
      }
      // No policy defined
      else
      {
         // Use default policy
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

   {
      JndiBindingPolicy annotation = finder.getAnnotation(type, JndiBindingPolicy.class);
      if(annotation == null)
         return;
     
      metaData.setJndiBindingPolicy(annotation.policy().getName());
   }

   public Collection<Class<? extends Annotation>> getAnnotationTypes()
   {
      return ProcessorUtils.createAnnotationSet(JndiBindingPolicy.class);
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

   {
      EJBContainer ejbContainer = (EJBContainer) container;
      JndiBindingPolicy bindingPolicy = ejbContainer.getAnnotation(JndiBindingPolicy.class);
      Class<? extends DefaultJndiBindingPolicy> policy = null;
      if (bindingPolicy != null)
         policy = bindingPolicy.policy();
      else
      {
         Class<? extends DefaultJndiBindingPolicy> policyClass = PackagingBasedJndiBindingPolicy.class;
         log.warn("No default JNDI Binding Policy Defined (see ejb3-interceptors-aop.xml for example); defaulting to "
               + policyClass.getName());
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

      Class<? extends DefaultJndiBindingPolicy> policy = null;
     
      // If policy is defined
      if (bindingPolicy != null){
         // Use it
         policy = bindingPolicy.policy();
      }
      // No policy defined
      else
      {
         // Use default policy
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

/*     */   {
/* 926 */     EJBContainer ejbContainer = (EJBContainer)container;
/* 927 */     JndiBindingPolicy bindingPolicy = (JndiBindingPolicy)ejbContainer.getAnnotation(JndiBindingPolicy.class);
/* 928 */     Class policy = null;
/* 929 */     if (bindingPolicy != null) {
/* 930 */       policy = bindingPolicy.policy();
/*     */     }
/*     */     else {
/* 933 */       Class policyClass = PackagingBasedJndiBindingPolicy.class;
/* 934 */       log.warn("No default JNDI Binding Policy Defined (see ejb3-interceptors-aop.xml for example); defaulting to " + policyClass.getName());
/*     */
View Full Code Here

Examples of org.jboss.ejb3.annotation.JndiBindingPolicy.policy()

      Class<? extends DefaultJndiBindingPolicy> policy = null;
     
      // If policy is defined
      if (bindingPolicy != null){
         // Use it
         policy = bindingPolicy.policy();
      }
      // No policy defined
      else
      {
         // Use default policy
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.