Examples of allow()


Examples of org.apache.xbean.recipe.ObjectRecipe.allow()

                        recipe = new ObjectRecipe(serviceClass, "createServerService");
                    }
                } catch (Throwable e) {
                }

                recipe.allow(Option.CASE_INSENSITIVE_PROPERTIES);
                recipe.allow(Option.IGNORE_MISSING_PROPERTIES);

                service = (ServerService) recipe.create(serviceClass.getClassLoader());

                if (!(service instanceof SelfManaging)) {
View Full Code Here

Examples of org.apache.xbean.recipe.ObjectRecipe.allow()

                    }
                } catch (Throwable e) {
                }

                recipe.allow(Option.CASE_INSENSITIVE_PROPERTIES);
                recipe.allow(Option.IGNORE_MISSING_PROPERTIES);

                service = (ServerService) recipe.create(serviceClass.getClassLoader());

                if (!(service instanceof SelfManaging)) {
                    service = manage(serviceName, serviceProperties, service);
View Full Code Here

Examples of org.apache.xbean.recipe.ObjectRecipe.allow()

    private ActivationSpec createActivationSpec(BeanContext beanContext)throws OpenEJBException {
        try {
            // initialize the object recipe
            ObjectRecipe objectRecipe = new ObjectRecipe(activationSpecClass);
            objectRecipe.allow(Option.IGNORE_MISSING_PROPERTIES);
            objectRecipe.disallow(Option.FIELD_INJECTION);

            Map<String, String> activationProperties = beanContext.getActivationProperties();
            for (Map.Entry<String, String> entry : activationProperties.entrySet()) {
                objectRecipe.setMethodProperty(entry.getKey(), entry.getValue());
View Full Code Here

Examples of org.apache.xbean.recipe.ObjectRecipe.allow()

        final org.apache.commons.dbcp.BasicDataSource ds;

        if (DataSource.class.isAssignableFrom(impl) && !SystemInstance.get().getOptions().get("org.apache.openejb.resource.jdbc.hot.deploy", false)) {

            final ObjectRecipe recipe = new ObjectRecipe(impl);
            recipe.allow(Option.CASE_INSENSITIVE_PROPERTIES);
            recipe.allow(Option.IGNORE_MISSING_PROPERTIES);
            recipe.allow(Option.NAMED_PARAMETERS);
            recipe.setAllProperties(asProperties(definition));

            DataSource dataSource = (DataSource) recipe.create();
View Full Code Here

Examples of org.apache.xbean.recipe.ObjectRecipe.allow()

        if (DataSource.class.isAssignableFrom(impl) && !SystemInstance.get().getOptions().get("org.apache.openejb.resource.jdbc.hot.deploy", false)) {

            final ObjectRecipe recipe = new ObjectRecipe(impl);
            recipe.allow(Option.CASE_INSENSITIVE_PROPERTIES);
            recipe.allow(Option.IGNORE_MISSING_PROPERTIES);
            recipe.allow(Option.NAMED_PARAMETERS);
            recipe.setAllProperties(asProperties(definition));

            DataSource dataSource = (DataSource) recipe.create();
View Full Code Here

Examples of org.eclipse.equinox.region.RegionFilterBuilder.allow()

 
  private RegionFilterBuilder createRegionFilterBuilder(Map<String, Collection<String>> sharingPolicy, RegionDigraph digraph) throws InvalidSyntaxException {
    RegionFilterBuilder result = digraph.createRegionFilterBuilder();
    for (Map.Entry<String, Collection<String>> entry : sharingPolicy.entrySet())
      for (String filter : entry.getValue())
        result.allow(entry.getKey(), filter);
    return result;
  }
}
View Full Code Here

Examples of org.jbehave.core.embedder.MetaFilter.allow()

   
    @Test
    public void shouldAllowFilteringBySingleExclusion() {
      Meta meta = new Meta(asList("environment all", "skip"));
      MetaFilter filter = new MetaFilter("-skip");
      assertThat("should not be allowed", filter.allow(meta), is(false));
    }

    @Test
    public void shouldAllowFilteringByMultipleExclusions() {
      Meta meta = new Meta(asList("environment all", "skip"));
View Full Code Here

Examples of org.jbehave.core.embedder.MetaFilter.allow()

    @Test
    public void shouldAllowFilteringByMultipleExclusions() {
      Meta meta = new Meta(asList("environment all", "skip"));
      MetaFilter filter = new MetaFilter("-environment preview -skip");
      assertThat("should not be allowed", filter.allow(meta), is(false));
    }

}
View Full Code Here

Examples of org.jvnet.solaris.libzfs.ZFSFileSystem.allow()

                try {
                    hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson"

                    ACLBuilder acl = new ACLBuilder();
                    acl.user(userName).withEverything();
                    hudson.allow(acl);
                } catch (ZFSException e) {
                    // revert the file system creation
                    try {
                        hudson.destory();
                    } catch (Exception _) {
View Full Code Here

Examples of org.rzo.yajsw.nettyutils.WhitelistFilter.allow()

    // create a firewall allowing only localhosts to connect
    WhitelistFilter firewall = new WhitelistFilter();
    try
    {
      firewall.allowAll(InetAddress.getAllByName("127.0.0.1"));
      firewall.allow(InetAddress.getLocalHost());
      pipeline.addLast("firewall", firewall);
    }
    catch (UnknownHostException e)
    {
      _controller.getLog().throwing(JVMController.class.getName(), "start", e);
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.