Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package org.apache.cxf.binding.corba;
 
 
 import java.util.List;
 import java.util.Set;
 
 
 
 @NoJSR250Annotations(unlessNull = { "bus" })
     implements ConduitInitiatorDestinationFactory {
 
     public static final Collection<StringDEFAULT_NAMESPACES 
         = Arrays.asList(
             "http://cxf.apache.org/bindings/corba",
             "http://schemas.apache.org/yoko/bindings/corba"
         );
 
     
     protected List<StringtransportIds = new ArrayList<String>();
     protected OrbConfig orbConfig = new OrbConfig();
 
     public CorbaBindingFactory(Bus b) {
         super(b);
         registerWithConduitManager();
     }
 
     
     @PostConstruct
     final void registerWithDestinationManager() {
         if (null == ) {
             return;
         }
 
         if (null != dfm &&  != null) {
             for (String ns : ) {
                 dfm.registerDestinationFactory(nsthis);
             }
         }
     }
 
     @PostConstruct
     final void registerWithConduitManager() {
         if (null == ) {
             return;
         }
 
         if (null != cim &&  != null) {
             for (String ns : ) {
                 cim.registerConduitInitiator(nsthis);
             }
         }
    }
    public void setOrbClass(String cls) {
        .setOrbClass(cls);
    }
    
    public void setOrbSingletonClass(String cls) {
        .setOrbSingletonClass(cls);
    }
    public Binding createBinding(BindingInfo bindingInfo) {
        CorbaBinding binding = new CorbaBinding();
        binding.getOutInterceptors().add(new BareOutInterceptor());
        binding.getOutInterceptors().add(new CorbaStreamOutInterceptor());
        binding.getInInterceptors().add(new BareInInterceptor());
        binding.getInInterceptors().add(new CorbaStreamInInterceptor());
        binding.setBindingInfo(bindingInfo);
        return binding;
    }
    public Conduit getConduit(EndpointInfo endpointInfo)
        throws IOException {
        return getConduit(endpointInfonull);
    }
    public Conduit getConduit(EndpointInfo endpointInfoEndpointReferenceType target)
        throws IOException {
        return new CorbaConduit(endpointInfotarget);
    }
    public Destination getDestination(EndpointInfo endpointInfo)
        throws IOException {
        return new CorbaDestination(endpointInfo);
    }
    public List<StringgetTransportIds() {
        return ;
    }
    public void setTransportIds(List<Stringids) {
         = ids;
    }
    public void setOrbArgs(List<Stringargs) {
        .setOrbArgs(args);
    }
    
    public Set<StringgetUriPrefixes() {
        Set<StringuriPrefixes = new java.util.HashSet<String>();
        uriPrefixes.add("IOR");
        uriPrefixes.add("ior");
        uriPrefixes.add("file");
        uriPrefixes.add("relfile");
        uriPrefixes.add("corba");
        return uriPrefixes;
    }
    
    public OrbConfig getOrbConfig() {
        return ;
    }
    public void setOrbConfig(OrbConfig config) {
         = config;
    }
New to GrepCode? Check out our FAQ X