Examples of clone()


Examples of org.jboss.as.controller.registry.Resource.clone()

        Resource model = this.model;
        for (final PathElement element : address) {
            model = requireChild(model, element, address);
        }
        if(recursive) {
            return model.clone();
        } else {
            final Resource copy = Resource.Factory.create();
            copy.writeModel(model.getModel());
            for(final String childType : model.getChildTypes()) {
                for(final Resource.ResourceEntry child : model.getChildren(childType)) {
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractBeanMetaData.clone()

   protected AbstractBeanMetaData unmarshalBean(String name, boolean useClone) throws Exception
   {
      AbstractBeanMetaData bmd = unmarshal(name, AbstractBeanMetaData.class);

      if (useClone)
         return bmd.clone();

      return bmd;
   }

   /**
 
View Full Code Here

Examples of org.jboss.cache.config.CacheLoaderConfig.clone()

      CacheLoaderConfig clc = new CacheLoaderConfig();
      CacheLoaderConfig.IndividualCacheLoaderConfig iclc = new CacheLoaderConfig.IndividualCacheLoaderConfig();
      iclc.setClassName(DummyInMemoryCacheLoader.class.getName());
      clc.addIndividualCacheLoaderConfig(iclc);
      cache1.getConfiguration().setCacheLoaderConfig(clc);
      cache2.getConfiguration().setCacheLoaderConfig(clc.clone());
      cache1.getConfiguration().setUseLazyDeserialization(true);
      cache2.getConfiguration().setUseLazyDeserialization(true);

      cache1.start();
      cache2.start();
View Full Code Here

Examples of org.jboss.cache.config.Configuration.clone()

      Configuration c = new Configuration();
      c.setStateRetrievalTimeout(3000);
      c.setCacheMode(Configuration.CacheMode.INVALIDATION_ASYNC);
      c.setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
      cache1 = (CacheSPI<Object, Object>) new UnitTestCacheFactory<Object, Object>().createCache(c, true, getClass());
      cache2 = (CacheSPI<Object, Object>) new UnitTestCacheFactory<Object, Object>().createCache(c.clone(), true, getClass());
      TestingUtil.blockUntilViewReceived(cache1, 2, 10000);
      registerCaches(cache1, cache2);
   }

   public void testPessTxAsyncUnableToEvict() throws Exception
View Full Code Here

Examples of org.jboss.dmr.ModelNode.clone()

        context.addStep(new AbstractDeploymentChainStep() {
            @Override
            protected void execute(DeploymentProcessorTarget processorTarget) {

                final SharedWebMetaDataBuilder sharedWebBuilder = new SharedWebMetaDataBuilder(config.clone());
                final SharedTldsMetaDataBuilder sharedTldsBuilder = new SharedTldsMetaDataBuilder(config.clone());

                processorTarget.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_WAR_DEPLOYMENT_INIT, new WarDeploymentInitializingProcessor());
                processorTarget.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_WAR, new WarStructureDeploymentProcessor(sharedWebBuilder.create(), sharedTldsBuilder));
                processorTarget.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_WEB_DEPLOYMENT, new WebParsingDeploymentProcessor());
View Full Code Here

Examples of org.jboss.dmr.client.ModelNode.clone()

                String css =  isLinked ? "node-header-link" : "";
                HTML type = new HTML("<div class='"+css+"'>"+p.getName()+"</div>");

                if(isLinked) {
                    type.addClickHandler(new ClickHandler() {
                        final ModelNode address = parentAddress.clone();
                        final String parentName = p.getName();
                        @Override
                        public void onClick(ClickEvent event) {
                            presenter.onViewChild(address, parentName);
                        }
View Full Code Here

Examples of org.jboss.dna.graph.query.plan.PlanNode.clone()

                    if (viewPlan == null) {
                        viewPlan = planner.createPlan(context, view.getDefinition());
                        if (viewPlan != null) viewPlanCache.put(tableName, viewPlan);
                    }
                    if (viewPlan == null) continue; // there were likely errors when creating the plan
                    viewPlan = viewPlan.clone();

                    // Insert the view plan under the parent SOURCE node ...
                    sourceNode.addLastChild(viewPlan);

                    // Update the plan above this node to replace references to the view columns with references to the
View Full Code Here

Examples of org.jboss.invocation.InterceptorContext.clone()

        private final transient InterceptorContext interceptorContext;

        private EJBContextHandle() {
            final InterceptorContext interceptorContext = CurrentInvocationContext.get();
            if(interceptorContext != null) {
                this.interceptorContext = interceptorContext.clone();
                // overwrite invocation type so EE concurrency tasks have special access to resources such as the user tx
                this.interceptorContext.putPrivateData(InvocationType.class, InvocationType.CONCURRENT_CONTEXT);
            } else {
                this.interceptorContext = null;
            }
View Full Code Here

Examples of org.jboss.marshalling.MarshallingConfiguration.clone()

        final Collection<Object[]> c = new ArrayList<Object[]>();
        final MarshallingConfiguration configuration = new MarshallingConfiguration();
        for (Pair<TestMarshallerProvider, TestUnmarshallerProvider> pair : marshallerProviderPairs) {
            if (pair == null) continue;
            // Add this combination
            c.add(new Object[] { pair.getA(), pair.getB(), configuration.clone() });
        }
        configuration.setClassResolver(new AbstractClassResolver() {
            protected ClassLoader getClassLoader() {
                return SimpleMarshallerTestFactory.class.getClassLoader();
            }
View Full Code Here

Examples of org.jboss.marshalling.cloner.ClassLoaderClassCloner.clone()

            case SAME_CLASS_LOADER: {
                if (result == null) {
                    return null;
                }
                final ClassLoaderClassCloner classCloner = new ClassLoaderClassCloner(getContextClassLoader());
                final Class<?> classClone = classCloner.clone(result.getClass());
                if (classClone == result.getClass()) {
                    return result;
                }
                // fall through
            }
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.