index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/IdAssignmentPolicyValueHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/IdAssignmentPolicyValue:1.0
//
public class IdAssignmentPolicyValueHelper
{
public static void
insert(org.omg.CORBA.Any any, IdAssignmentPolicyValue val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static IdAssignmentPolicyValue
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
String[] members = new String[2];
members[0] = "USER_ID";
members[1] = "SYSTEM_ID";
typeCode_ = orb.create_enum_tc(id(), "IdAssignmentPolicyValue", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/IdAssignmentPolicyValue:1.0";
}
public static IdAssignmentPolicyValue
read(org.omg.CORBA.portable.InputStream in)
{
IdAssignmentPolicyValue _ob_v;
_ob_v = IdAssignmentPolicyValue.from_int(in.read_ulong());
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, IdAssignmentPolicyValue val)
{
out.write_ulong(val.value());
}
}
| 5,200 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ImplicitActivationPolicyValueHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ImplicitActivationPolicyValue:1.0
//
final public class ImplicitActivationPolicyValueHolder implements org.omg.CORBA.portable.Streamable
{
public ImplicitActivationPolicyValue value;
public
ImplicitActivationPolicyValueHolder()
{
}
public
ImplicitActivationPolicyValueHolder(ImplicitActivationPolicyValue initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ImplicitActivationPolicyValueHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ImplicitActivationPolicyValueHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ImplicitActivationPolicyValueHelper.type();
}
}
| 5,201 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POA:2.3
//
final public class POAHolder implements org.omg.CORBA.portable.Streamable
{
public POA value;
public
POAHolder()
{
}
public
POAHolder(POA initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = POAHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
POAHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return POAHelper.type();
}
}
| 5,202 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantRetentionPolicyHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0
//
final public class ServantRetentionPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public ServantRetentionPolicy value;
public
ServantRetentionPolicyHolder()
{
}
public
ServantRetentionPolicyHolder(ServantRetentionPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ServantRetentionPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ServantRetentionPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ServantRetentionPolicyHelper.type();
}
}
| 5,203 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ImplicitActivationPolicyHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0
//
final public class ImplicitActivationPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public ImplicitActivationPolicy value;
public
ImplicitActivationPolicyHolder()
{
}
public
ImplicitActivationPolicyHolder(ImplicitActivationPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ImplicitActivationPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ImplicitActivationPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ImplicitActivationPolicyHelper.type();
}
}
| 5,204 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POA:2.3
//
/***/
public interface POAOperations
{
//
// IDL:omg.org/PortableServer/POA/create_POA:1.0
//
/***/
POA
create_POA(String adapter_name,
POAManager a_POAManager,
org.omg.CORBA.Policy[] policies)
throws org.omg.PortableServer.POAPackage.AdapterAlreadyExists,
org.omg.PortableServer.POAPackage.InvalidPolicy;
//
// IDL:omg.org/PortableServer/POA/find_POA:1.0
//
/***/
POA
find_POA(String adapter_name,
boolean activate_it)
throws org.omg.PortableServer.POAPackage.AdapterNonExistent;
//
// IDL:omg.org/PortableServer/POA/destroy:1.0
//
/***/
void
destroy(boolean etherealize_objects,
boolean wait_for_completion);
//
// IDL:omg.org/PortableServer/POA/create_thread_policy:1.0
//
/***/
ThreadPolicy
create_thread_policy(ThreadPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_lifespan_policy:1.0
//
/***/
LifespanPolicy
create_lifespan_policy(LifespanPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_id_uniqueness_policy:1.0
//
/***/
IdUniquenessPolicy
create_id_uniqueness_policy(IdUniquenessPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_id_assignment_policy:1.0
//
/***/
IdAssignmentPolicy
create_id_assignment_policy(IdAssignmentPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_implicit_activation_policy:1.0
//
/***/
ImplicitActivationPolicy
create_implicit_activation_policy(ImplicitActivationPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_servant_retention_policy:1.0
//
/***/
ServantRetentionPolicy
create_servant_retention_policy(ServantRetentionPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/create_request_processing_policy:1.0
//
/***/
RequestProcessingPolicy
create_request_processing_policy(RequestProcessingPolicyValue value);
//
// IDL:omg.org/PortableServer/POA/the_name:1.0
//
/***/
String
the_name();
//
// IDL:omg.org/PortableServer/POA/the_parent:1.0
//
/***/
POA
the_parent();
//
// IDL:omg.org/PortableServer/POA/the_children:1.0
//
/***/
POA[]
the_children();
//
// IDL:omg.org/PortableServer/POA/the_POAManager:1.0
//
/***/
POAManager
the_POAManager();
//
// IDL:omg.org/PortableServer/POA/the_POAManagerFactory:1.0
//
/***/
POAManagerFactory
the_POAManagerFactory();
//
// IDL:omg.org/PortableServer/POA/id:1.0
//
/***/
byte[]
id();
//
// IDL:omg.org/PortableServer/POA/the_activator:1.0
//
/***/
AdapterActivator
the_activator();
void
the_activator(AdapterActivator val);
//
// IDL:omg.org/PortableServer/POA/get_servant_manager:1.0
//
/***/
ServantManager
get_servant_manager()
throws org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/set_servant_manager:1.0
//
/***/
void
set_servant_manager(ServantManager imgr)
throws org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/get_servant:1.0
//
/***/
Servant
get_servant()
throws org.omg.PortableServer.POAPackage.NoServant,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/set_servant:1.0
//
/***/
void
set_servant(Servant p_servant)
throws org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/activate_object:1.0
//
/***/
byte[]
activate_object(Servant p_servant)
throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/activate_object_with_id:1.0
//
/***/
void
activate_object_with_id(byte[] id,
Servant p_servant)
throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
org.omg.PortableServer.POAPackage.ObjectAlreadyActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/deactivate_object:1.0
//
/***/
void
deactivate_object(byte[] oid)
throws org.omg.PortableServer.POAPackage.ObjectNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/create_reference:1.0
//
/***/
org.omg.CORBA.Object
create_reference(String intf)
throws org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/create_reference_with_id:1.0
//
/***/
org.omg.CORBA.Object
create_reference_with_id(byte[] oid,
String intf);
//
// IDL:omg.org/PortableServer/POA/servant_to_id:1.0
//
/***/
byte[]
servant_to_id(Servant p_servant)
throws org.omg.PortableServer.POAPackage.ServantNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/servant_to_reference:1.0
//
/***/
org.omg.CORBA.Object
servant_to_reference(Servant p_servant)
throws org.omg.PortableServer.POAPackage.ServantNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/reference_to_servant:1.0
//
/***/
Servant
reference_to_servant(org.omg.CORBA.Object reference)
throws org.omg.PortableServer.POAPackage.ObjectNotActive,
org.omg.PortableServer.POAPackage.WrongAdapter,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/reference_to_id:1.0
//
/***/
byte[]
reference_to_id(org.omg.CORBA.Object reference)
throws org.omg.PortableServer.POAPackage.WrongAdapter,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/id_to_servant:1.0
//
/***/
Servant
id_to_servant(byte[] oid)
throws org.omg.PortableServer.POAPackage.ObjectNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
//
// IDL:omg.org/PortableServer/POA/id_to_reference:1.0
//
/***/
org.omg.CORBA.Object
id_to_reference(byte[] oid)
throws org.omg.PortableServer.POAPackage.ObjectNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy;
}
| 5,205 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAListHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POAList:1.0
//
public class POAListHelper
{
public static void
insert(org.omg.CORBA.Any any, POA[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static POA[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "POAList", orb.create_sequence_tc(0, POAHelper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAList:1.0";
}
public static POA[]
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, POA[] val)
{
throw new org.omg.CORBA.MARSHAL();
}
}
| 5,206 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantManagerHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantManager:1.0
//
final public class ServantManagerHelper
{
public static void
insert(org.omg.CORBA.Any any, ServantManager val)
{
any.insert_Object(val, type());
}
public static ServantManager
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ServantManager");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/ServantManager:1.0";
}
public static ServantManager
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ServantManager val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static ServantManager
narrow(org.omg.CORBA.Object val)
{
try
{
return (ServantManager)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,207 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ThreadPolicyHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ThreadPolicy:1.0
//
final public class ThreadPolicyHelper
{
public static void
insert(org.omg.CORBA.Any any, ThreadPolicy val)
{
any.insert_Object(val, type());
}
public static ThreadPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ThreadPolicy");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/ThreadPolicy:1.0";
}
public static ThreadPolicy
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ThreadPolicy val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static ThreadPolicy
narrow(org.omg.CORBA.Object val)
{
try
{
return (ThreadPolicy)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,208 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantLocatorOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantLocator:2.3
//
/***/
public interface ServantLocatorOperations extends ServantManagerOperations
{
//
// IDL:omg.org/PortableServer/ServantLocator/preinvoke:1.0
//
/***/
Servant
preinvoke(byte[] oid,
POA adapter,
String operation,
org.omg.PortableServer.ServantLocatorPackage.CookieHolder the_cookie)
throws ForwardRequest;
//
// IDL:omg.org/PortableServer/ServantLocator/postinvoke:1.0
//
/***/
void
postinvoke(byte[] oid,
POA adapter,
String operation,
java.lang.Object the_cookie,
Servant the_servant);
}
| 5,209 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/IdAssignmentPolicy.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0
//
/***/
public interface IdAssignmentPolicy extends IdAssignmentPolicyOperations,
org.omg.CORBA.Policy
{
}
| 5,210 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/IdUniquenessPolicyHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0
//
final public class IdUniquenessPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public IdUniquenessPolicy value;
public
IdUniquenessPolicyHolder()
{
}
public
IdUniquenessPolicyHolder(IdUniquenessPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = IdUniquenessPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
IdUniquenessPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return IdUniquenessPolicyHelper.type();
}
}
| 5,211 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ImplicitActivationPolicy.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0
//
/***/
public interface ImplicitActivationPolicy extends ImplicitActivationPolicyOperations,
org.omg.CORBA.Policy
{
}
| 5,212 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantRetentionPolicy.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0
//
/***/
public interface ServantRetentionPolicy extends ServantRetentionPolicyOperations,
org.omg.CORBA.Policy
{
}
| 5,213 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/CurrentHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/Current:2.3
//
public class CurrentHelper
{
public static void
insert(org.omg.CORBA.Any any, Current val)
{
any.insert_Object(val, type());
}
public static Current
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "Current");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/Current:2.3";
}
public static Current
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, Current val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static Current
narrow(org.omg.CORBA.Object val)
{
try
{
return (Current)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,214 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/CurrentHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/Current:2.3
//
final public class CurrentHolder implements org.omg.CORBA.portable.Streamable
{
public Current value;
public
CurrentHolder()
{
}
public
CurrentHolder(Current initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = CurrentHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
CurrentHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return CurrentHelper.type();
}
}
| 5,215 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantActivatorPOA.java | /*
* 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.omg.PortableServer;
//
// This class is provided only for backward compatibility.
//
public abstract class ServantActivatorPOA extends
org.omg.PortableServer.Servant implements ServantActivator {
public ServantActivator _this() {
return this;
}
public ServantActivator _this(org.omg.CORBA.ORB orb) {
return this;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa,
byte[] objectId) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
//
// Implementation of org.omg.CORBA.Object methods
//
public boolean _is_a(String repository_id) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public boolean _is_equivalent(org.omg.CORBA.Object rhs) {
return equals(rhs);
}
public boolean _non_existent() {
return false;
}
public int _hash(int maximum) {
//
// Calculate a local hash value
//
return hashCode() % (maximum + 1);
}
public org.omg.CORBA.Object _duplicate() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public void _release() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
/**
* @deprecated Deprecated by CORBA 2.3.
*/
public org.omg.CORBA.InterfaceDef _get_interface() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _get_interface_def() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _request(String operation) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList excepts,
org.omg.CORBA.ContextList contexts) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Policy _get_policy(int policy_type) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _set_policy_override(
org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.DomainManager[] _get_domain_managers() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
}
| 5,216 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/LifespanPolicy.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/LifespanPolicy:1.0
//
/***/
public interface LifespanPolicy extends LifespanPolicyOperations,
org.omg.CORBA.Policy
{
}
| 5,217 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/IdUniquenessPolicyHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0
//
public class IdUniquenessPolicyHelper
{
public static void
insert(org.omg.CORBA.Any any, IdUniquenessPolicy val)
{
any.insert_Object(val, type());
}
public static IdUniquenessPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "IdUniquenessPolicy");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0";
}
public static IdUniquenessPolicy
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, IdUniquenessPolicy val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static IdUniquenessPolicy
narrow(org.omg.CORBA.Object val)
{
try
{
return (IdUniquenessPolicy)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,218 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAListHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POAList:1.0
//
final public class POAListHolder implements org.omg.CORBA.portable.Streamable
{
public POA[] value;
public
POAListHolder()
{
}
public
POAListHolder(POA[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = POAListHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
POAListHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return POAListHelper.type();
}
}
| 5,219 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantManagerHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantManager:1.0
//
final public class ServantManagerHolder implements org.omg.CORBA.portable.Streamable
{
public ServantManager value;
public
ServantManagerHolder()
{
}
public
ServantManagerHolder(ServantManager initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ServantManagerHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ServantManagerHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ServantManagerHelper.type();
}
}
| 5,220 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ThreadPolicyHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ThreadPolicy:1.0
//
final public class ThreadPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public ThreadPolicy value;
public
ThreadPolicyHolder()
{
}
public
ThreadPolicyHolder(ThreadPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ThreadPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ThreadPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ThreadPolicyHelper.type();
}
}
| 5,221 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ImplicitActivationPolicyHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0
//
public class ImplicitActivationPolicyHelper
{
public static void
insert(org.omg.CORBA.Any any, ImplicitActivationPolicy val)
{
any.insert_Object(val, type());
}
public static ImplicitActivationPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ImplicitActivationPolicy");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0";
}
public static ImplicitActivationPolicy
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ImplicitActivationPolicy val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static ImplicitActivationPolicy
narrow(org.omg.CORBA.Object val)
{
try
{
return (ImplicitActivationPolicy)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,222 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ID_ASSIGNMENT_POLICY_ID.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ID_ASSIGNMENT_POLICY_ID:1.0
//
/***/
public interface ID_ASSIGNMENT_POLICY_ID
{
int value = (int)(19L);
}
| 5,223 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantRetentionPolicyOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0
//
/***/
public interface ServantRetentionPolicyOperations extends org.omg.CORBA.PolicyOperations
{
//
// IDL:omg.org/PortableServer/ServantRetentionPolicy/value:1.0
//
/***/
ServantRetentionPolicyValue
value();
}
| 5,224 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantManagerPOA.java | /*
* 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.omg.PortableServer;
//
// This class is provided only for backward compatibility.
//
public abstract class ServantManagerPOA extends org.omg.PortableServer.Servant
implements ServantManager {
public ServantManager _this() {
return this;
}
public ServantManager _this(org.omg.CORBA.ORB orb) {
return this;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa,
byte[] objectId) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
//
// Implementation of org.omg.CORBA.Object methods
//
public boolean _is_a(String repository_id) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public boolean _is_equivalent(org.omg.CORBA.Object rhs) {
return equals(rhs);
}
public boolean _non_existent() {
return false;
}
public int _hash(int maximum) {
//
// Calculate a local hash value
//
return hashCode() % (maximum + 1);
}
public org.omg.CORBA.Object _duplicate() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public void _release() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
/**
* @deprecated Deprecated by CORBA 2.3.
*/
public org.omg.CORBA.InterfaceDef _get_interface() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _get_interface_def() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _request(String operation) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList excepts,
org.omg.CORBA.ContextList contexts) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Policy _get_policy(int policy_type) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _set_policy_override(
org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.DomainManager[] _get_domain_managers() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
}
| 5,225 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/AdapterActivatorOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/AdapterActivator:2.3
//
/***/
public interface AdapterActivatorOperations
{
//
// IDL:omg.org/PortableServer/AdapterActivator/unknown_adapter:1.0
//
/***/
boolean
unknown_adapter(POA parent,
String name);
}
| 5,226 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POAManagerFactory:1.0
//
public class POAManagerFactoryHelper
{
public static void
insert(org.omg.CORBA.Any any, POAManagerFactory val)
{
any.insert_Object(val, type());
}
public static POAManagerFactory
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "POAManagerFactory");
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAManagerFactory:1.0";
}
public static POAManagerFactory
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, POAManagerFactory val)
{
throw new org.omg.CORBA.MARSHAL();
}
public static POAManagerFactory
narrow(org.omg.CORBA.Object val)
{
try
{
return (POAManagerFactory)val;
}
catch(ClassCastException ex)
{
}
throw new org.omg.CORBA.BAD_PARAM();
}
}
| 5,227 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/AdapterActivatorPOA.java | /*
* 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.omg.PortableServer;
//
// This class is provided only for backward compatibility.
//
public abstract class AdapterActivatorPOA extends
org.omg.PortableServer.Servant implements AdapterActivator {
public AdapterActivator _this() {
return this;
}
public AdapterActivator _this(org.omg.CORBA.ORB orb) {
return this;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa,
byte[] objectId) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
//
// Implementation of org.omg.CORBA.Object methods
//
public boolean _is_a(String repository_id) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public boolean _is_equivalent(org.omg.CORBA.Object rhs) {
return equals(rhs);
}
public boolean _non_existent() {
return false;
}
public int _hash(int maximum) {
//
// Calculate a local hash value
//
return hashCode() % (maximum + 1);
}
public org.omg.CORBA.Object _duplicate() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public void _release() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
/**
* @deprecated Deprecated by CORBA 2.3.
*/
public org.omg.CORBA.InterfaceDef _get_interface() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _get_interface_def() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _request(String operation) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
String operation, org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList excepts,
org.omg.CORBA.ContextList contexts) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"DII operation not supported by local object", 0x4f4d0000 | 4, // MinorDIINotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Policy _get_policy(int policy_type) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.Object _set_policy_override(
org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
public org.omg.CORBA.DomainManager[] _get_domain_managers() {
throw new org.omg.CORBA.NO_IMPLEMENT(
"operation not supported by local object", 0x4f4d0000 | 3, // MinorNotSupportedByLocalObject
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
}
| 5,228 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/LifespanPolicyValueHelper.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/LifespanPolicyValue:1.0
//
public class LifespanPolicyValueHelper
{
public static void
insert(org.omg.CORBA.Any any, LifespanPolicyValue val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static LifespanPolicyValue
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
String[] members = new String[2];
members[0] = "TRANSIENT";
members[1] = "PERSISTENT";
typeCode_ = orb.create_enum_tc(id(), "LifespanPolicyValue", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/LifespanPolicyValue:1.0";
}
public static LifespanPolicyValue
read(org.omg.CORBA.portable.InputStream in)
{
LifespanPolicyValue _ob_v;
_ob_v = LifespanPolicyValue.from_int(in.read_ulong());
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, LifespanPolicyValue val)
{
out.write_ulong(val.value());
}
}
| 5,229 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/Servant.java | /*
* 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.omg.PortableServer;
import java.lang.reflect.InvocationTargetException;
import org.omg.PortableServer.portable.Delegate;
abstract public class Servant {
private transient org.omg.PortableServer.portable.Delegate delegate_ = null;
final public org.omg.CORBA.Object _this_object() {
return _get_delegate().this_object(this);
}
final public org.omg.CORBA.Object _this_object(org.omg.CORBA.ORB orb) {
try {
((org.omg.CORBA_2_3.ORB) orb).set_delegate(this);
} catch (ClassCastException ex) {
throw (org.omg.CORBA.BAD_PARAM)new org.omg.CORBA.BAD_PARAM(
"POA servant requires an instance of org.omg.CORBA_2_3.ORB").initCause(ex);
}
return _this_object();
}
final public org.omg.CORBA.ORB _orb() {
return _get_delegate().orb(this);
}
final public org.omg.PortableServer.POA _poa() {
return _get_delegate().poa(this);
}
final public byte[] _object_id() {
return _get_delegate().object_id(this);
}
public org.omg.PortableServer.POA _default_POA() {
return _get_delegate().default_POA(this);
}
public boolean _is_a(String repository_id) {
return _get_delegate().is_a(this, repository_id);
}
public boolean _non_existent() {
return _get_delegate().non_existent(this);
}
static java.lang.reflect.Method get_interface_method;
static {
Class delegate_class = org.omg.PortableServer.portable.Delegate.class;
Class servant_class = org.omg.PortableServer.Servant.class;
try {
get_interface_method = delegate_class.getMethod("get_interface",
new Class[] { servant_class });
} catch (SecurityException e) {
// TODO should we just ignore this?
} catch (NoSuchMethodException e) {
// TODO should we just ignore this?
}
}
public org.omg.CORBA.InterfaceDef _get_interface() {
if (get_interface_method == null) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
org.omg.PortableServer.portable.Delegate delegate = _get_delegate();
Object result;
try {
result = get_interface_method.invoke(delegate,
new Object[] { this });
} catch (InvocationTargetException e) {
Throwable ee = e.getTargetException();
if (ee instanceof RuntimeException) {
throw (RuntimeException) ee;
}
org.omg.CORBA.INTERNAL iex = new org.omg.CORBA.INTERNAL();
iex.initCause(ee);
throw iex;
} catch (Exception e) {
org.omg.CORBA.INTERNAL iex = new org.omg.CORBA.INTERNAL();
iex.initCause(e);
throw iex;
}
return (org.omg.CORBA.InterfaceDef) result;
}
public org.omg.CORBA.Object _get_interface_def() {
return _get_delegate().get_interface_def(this);
}
abstract public String[] _all_interfaces(org.omg.PortableServer.POA poa,
byte[] object_id);
final public org.omg.PortableServer.portable.Delegate _get_delegate() {
if (delegate_ == null)
throw new org.omg.CORBA.BAD_INV_ORDER(
"The servant has not been associated with an ORB instance");
return delegate_;
}
final public void _set_delegate(
org.omg.PortableServer.portable.Delegate delegate) {
delegate_ = delegate;
}
}
| 5,230 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/THREAD_POLICY_ID.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/THREAD_POLICY_ID:1.0
//
/***/
public interface THREAD_POLICY_ID
{
int value = (int)(16L);
}
| 5,231 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/AdapterActivator.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/AdapterActivator:2.3
//
/***/
public interface AdapterActivator extends AdapterActivatorOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
}
| 5,232 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/RequestProcessingPolicyOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0
//
/***/
public interface RequestProcessingPolicyOperations extends org.omg.CORBA.PolicyOperations
{
//
// IDL:omg.org/PortableServer/RequestProcessingPolicy/value:1.0
//
/***/
RequestProcessingPolicyValue
value();
}
| 5,233 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantRetentionPolicyValue.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantRetentionPolicyValue:1.0
//
/***/
public class ServantRetentionPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private static ServantRetentionPolicyValue [] values_ = new ServantRetentionPolicyValue[2];
private int value_;
public final static int _RETAIN = 0;
public final static ServantRetentionPolicyValue RETAIN = new ServantRetentionPolicyValue(_RETAIN);
public final static int _NON_RETAIN = 1;
public final static ServantRetentionPolicyValue NON_RETAIN = new ServantRetentionPolicyValue(_NON_RETAIN);
protected
ServantRetentionPolicyValue(int value)
{
values_[value] = this;
value_ = value;
}
public int
value()
{
return value_;
}
public static ServantRetentionPolicyValue
from_int(int value)
{
if(value < values_.length)
return values_[value];
else
throw new org.omg.CORBA.BAD_PARAM("Value (" + value + ") out of range", 25, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
private java.lang.Object
readResolve()
throws java.io.ObjectStreamException
{
return from_int(value());
}
}
| 5,234 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/POAManagerFactory:1.0
//
final public class POAManagerFactoryHolder implements org.omg.CORBA.portable.Streamable
{
public POAManagerFactory value;
public
POAManagerFactoryHolder()
{
}
public
POAManagerFactoryHolder(POAManagerFactory initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = POAManagerFactoryHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
POAManagerFactoryHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return POAManagerFactoryHelper.type();
}
}
| 5,235 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantActivatorOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantActivator:2.3
//
/***/
public interface ServantActivatorOperations extends ServantManagerOperations
{
//
// IDL:omg.org/PortableServer/ServantActivator/incarnate:1.0
//
/***/
Servant
incarnate(byte[] oid,
POA adapter)
throws ForwardRequest;
//
// IDL:omg.org/PortableServer/ServantActivator/etherealize:1.0
//
/***/
void
etherealize(byte[] oid,
POA adapter,
Servant serv,
boolean cleanup_in_progress,
boolean remaining_activations);
}
| 5,236 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/LifespanPolicyValueHolder.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/LifespanPolicyValue:1.0
//
final public class LifespanPolicyValueHolder implements org.omg.CORBA.portable.Streamable
{
public LifespanPolicyValue value;
public
LifespanPolicyValueHolder()
{
}
public
LifespanPolicyValueHolder(LifespanPolicyValue initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = LifespanPolicyValueHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
LifespanPolicyValueHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return LifespanPolicyValueHelper.type();
}
}
| 5,237 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantActivator.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantActivator:2.3
//
/***/
public interface ServantActivator extends ServantActivatorOperations,
ServantManager
{
}
| 5,238 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantManagerOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/ServantManager:1.0
//
/***/
public interface ServantManagerOperations
{
}
| 5,239 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/LifespanPolicyOperations.java | /*
* 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.omg.PortableServer;
//
// IDL:omg.org/PortableServer/LifespanPolicy:1.0
//
/***/
public interface LifespanPolicyOperations extends org.omg.CORBA.PolicyOperations
{
//
// IDL:omg.org/PortableServer/LifespanPolicy/value:1.0
//
/***/
LifespanPolicyValue
value();
}
| 5,240 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/InvalidPolicy.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0
//
/***/
final public class InvalidPolicy extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0";
public
InvalidPolicy()
{
super(_ob_id);
}
public
InvalidPolicy(short index)
{
super(_ob_id);
this.index = index;
}
public
InvalidPolicy(String _reason,
short index)
{
super(_ob_id + " " + _reason);
this.index = index;
}
public short index;
}
| 5,241 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectNotActiveHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0
//
final public class ObjectNotActiveHolder implements org.omg.CORBA.portable.Streamable
{
public ObjectNotActive value;
public
ObjectNotActiveHolder()
{
}
public
ObjectNotActiveHolder(ObjectNotActive initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ObjectNotActiveHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ObjectNotActiveHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ObjectNotActiveHelper.type();
}
}
| 5,242 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterNonExistent.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0
//
/***/
final public class AdapterNonExistent extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0";
public
AdapterNonExistent()
{
super(_ob_id);
}
public
AdapterNonExistent(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,243 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/NoServantHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/NoServant:1.0
//
final public class NoServantHolder implements org.omg.CORBA.portable.Streamable
{
public NoServant value;
public
NoServantHolder()
{
}
public
NoServantHolder(NoServant initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = NoServantHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
NoServantHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return NoServantHelper.type();
}
}
| 5,244 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0
//
final public class AdapterAlreadyExistsHolder implements org.omg.CORBA.portable.Streamable
{
public AdapterAlreadyExists value;
public
AdapterAlreadyExistsHolder()
{
}
public
AdapterAlreadyExistsHolder(AdapterAlreadyExists initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = AdapterAlreadyExistsHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
AdapterAlreadyExistsHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return AdapterAlreadyExistsHelper.type();
}
}
| 5,245 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/NoServant.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/NoServant:1.0
//
/***/
final public class NoServant extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/NoServant:1.0";
public
NoServant()
{
super(_ob_id);
}
public
NoServant(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,246 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0
//
public class AdapterAlreadyExistsHelper
{
public static void
insert(org.omg.CORBA.Any any, AdapterAlreadyExists val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static AdapterAlreadyExists
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "AdapterAlreadyExists", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0";
}
public static AdapterAlreadyExists
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
AdapterAlreadyExists _ob_v = new AdapterAlreadyExists();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, AdapterAlreadyExists val)
{
out.write_string(id());
}
}
| 5,247 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectNotActiveHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0
//
public class ObjectNotActiveHelper
{
public static void
insert(org.omg.CORBA.Any any, ObjectNotActive val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static ObjectNotActive
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "ObjectNotActive", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0";
}
public static ObjectNotActive
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
ObjectNotActive _ob_v = new ObjectNotActive();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ObjectNotActive val)
{
out.write_string(id());
}
}
| 5,248 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/NoServantHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/NoServant:1.0
//
public class NoServantHelper
{
public static void
insert(org.omg.CORBA.Any any, NoServant val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static NoServant
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "NoServant", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/NoServant:1.0";
}
public static NoServant
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
NoServant _ob_v = new NoServant();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, NoServant val)
{
out.write_string(id());
}
}
| 5,249 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0
//
final public class ObjectAlreadyActiveHolder implements org.omg.CORBA.portable.Streamable
{
public ObjectAlreadyActive value;
public
ObjectAlreadyActiveHolder()
{
}
public
ObjectAlreadyActiveHolder(ObjectAlreadyActive initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ObjectAlreadyActiveHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ObjectAlreadyActiveHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ObjectAlreadyActiveHelper.type();
}
}
| 5,250 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectNotActive.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0
//
/***/
final public class ObjectNotActive extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0";
public
ObjectNotActive()
{
super(_ob_id);
}
public
ObjectNotActive(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,251 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongPolicy.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongPolicy:1.0
//
/***/
final public class WrongPolicy extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/WrongPolicy:1.0";
public
WrongPolicy()
{
super(_ob_id);
}
public
WrongPolicy(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,252 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0
//
public class ObjectAlreadyActiveHelper
{
public static void
insert(org.omg.CORBA.Any any, ObjectAlreadyActive val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static ObjectAlreadyActive
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "ObjectAlreadyActive", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0";
}
public static ObjectAlreadyActive
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
ObjectAlreadyActive _ob_v = new ObjectAlreadyActive();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ObjectAlreadyActive val)
{
out.write_string(id());
}
}
| 5,253 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongAdapterHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongAdapter:1.0
//
final public class WrongAdapterHolder implements org.omg.CORBA.portable.Streamable
{
public WrongAdapter value;
public
WrongAdapterHolder()
{
}
public
WrongAdapterHolder(WrongAdapter initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = WrongAdapterHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
WrongAdapterHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return WrongAdapterHelper.type();
}
}
| 5,254 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongAdapterHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongAdapter:1.0
//
public class WrongAdapterHelper
{
public static void
insert(org.omg.CORBA.Any any, WrongAdapter val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static WrongAdapter
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "WrongAdapter", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/WrongAdapter:1.0";
}
public static WrongAdapter
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
WrongAdapter _ob_v = new WrongAdapter();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, WrongAdapter val)
{
out.write_string(id());
}
}
| 5,255 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantNotActiveHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantNotActive:1.0
//
final public class ServantNotActiveHolder implements org.omg.CORBA.portable.Streamable
{
public ServantNotActive value;
public
ServantNotActiveHolder()
{
}
public
ServantNotActiveHolder(ServantNotActive initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ServantNotActiveHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ServantNotActiveHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ServantNotActiveHelper.type();
}
}
| 5,256 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterAlreadyExists.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0
//
/***/
final public class AdapterAlreadyExists extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0";
public
AdapterAlreadyExists()
{
super(_ob_id);
}
public
AdapterAlreadyExists(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,257 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/InvalidPolicyHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0
//
final public class InvalidPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public InvalidPolicy value;
public
InvalidPolicyHolder()
{
}
public
InvalidPolicyHolder(InvalidPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = InvalidPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
InvalidPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return InvalidPolicyHelper.type();
}
}
| 5,258 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterNonExistentHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0
//
final public class AdapterNonExistentHolder implements org.omg.CORBA.portable.Streamable
{
public AdapterNonExistent value;
public
AdapterNonExistentHolder()
{
}
public
AdapterNonExistentHolder(AdapterNonExistent initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = AdapterNonExistentHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
AdapterNonExistentHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return AdapterNonExistentHelper.type();
}
}
| 5,259 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0
//
public class AdapterNonExistentHelper
{
public static void
insert(org.omg.CORBA.Any any, AdapterNonExistent val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static AdapterNonExistent
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "AdapterNonExistent", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0";
}
public static AdapterNonExistent
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
AdapterNonExistent _ob_v = new AdapterNonExistent();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, AdapterNonExistent val)
{
out.write_string(id());
}
}
| 5,260 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantNotActiveHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantNotActive:1.0
//
public class ServantNotActiveHelper
{
public static void
insert(org.omg.CORBA.Any any, ServantNotActive val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static ServantNotActive
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "ServantNotActive", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/ServantNotActive:1.0";
}
public static ServantNotActive
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
ServantNotActive _ob_v = new ServantNotActive();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ServantNotActive val)
{
out.write_string(id());
}
}
| 5,261 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/InvalidPolicyHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0
//
public class InvalidPolicyHelper
{
public static void
insert(org.omg.CORBA.Any any, InvalidPolicy val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static InvalidPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[1];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "index";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_ushort);
typeCode_ = orb.create_exception_tc(id(), "InvalidPolicy", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0";
}
public static InvalidPolicy
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
InvalidPolicy _ob_v = new InvalidPolicy();
_ob_v.index = in.read_ushort();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, InvalidPolicy val)
{
out.write_string(id());
out.write_ushort(val.index);
}
}
| 5,262 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantNotActive.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantNotActive:1.0
//
/***/
final public class ServantNotActive extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/ServantNotActive:1.0";
public
ServantNotActive()
{
super(_ob_id);
}
public
ServantNotActive(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,263 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantAlreadyActive.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0
//
/***/
final public class ServantAlreadyActive extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0";
public
ServantAlreadyActive()
{
super(_ob_id);
}
public
ServantAlreadyActive(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,264 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongPolicyHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongPolicy:1.0
//
final public class WrongPolicyHolder implements org.omg.CORBA.portable.Streamable
{
public WrongPolicy value;
public
WrongPolicyHolder()
{
}
public
WrongPolicyHolder(WrongPolicy initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = WrongPolicyHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
WrongPolicyHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return WrongPolicyHelper.type();
}
}
| 5,265 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantAlreadyActiveHolder.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0
//
final public class ServantAlreadyActiveHolder implements org.omg.CORBA.portable.Streamable
{
public ServantAlreadyActive value;
public
ServantAlreadyActiveHolder()
{
}
public
ServantAlreadyActiveHolder(ServantAlreadyActive initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ServantAlreadyActiveHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ServantAlreadyActiveHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ServantAlreadyActiveHelper.type();
}
}
| 5,266 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0
//
/***/
final public class ObjectAlreadyActive extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0";
public
ObjectAlreadyActive()
{
super(_ob_id);
}
public
ObjectAlreadyActive(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,267 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/ServantAlreadyActiveHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0
//
public class ServantAlreadyActiveHelper
{
public static void
insert(org.omg.CORBA.Any any, ServantAlreadyActive val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static ServantAlreadyActive
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "ServantAlreadyActive", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0";
}
public static ServantAlreadyActive
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
ServantAlreadyActive _ob_v = new ServantAlreadyActive();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ServantAlreadyActive val)
{
out.write_string(id());
}
}
| 5,268 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongPolicyHelper.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongPolicy:1.0
//
public class WrongPolicyHelper
{
public static void
insert(org.omg.CORBA.Any any, WrongPolicy val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static WrongPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "WrongPolicy", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POA/WrongPolicy:1.0";
}
public static WrongPolicy
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
WrongPolicy _ob_v = new WrongPolicy();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, WrongPolicy val)
{
out.write_string(id());
}
}
| 5,269 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAPackage/WrongAdapter.java | /*
* 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.omg.PortableServer.POAPackage;
//
// IDL:omg.org/PortableServer/POA/WrongAdapter:1.0
//
/***/
final public class WrongAdapter extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POA/WrongAdapter:1.0";
public
WrongAdapter()
{
super(_ob_id);
}
public
WrongAdapter(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,270 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryPackage/ManagerAlreadyExists.java | /*
* 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.omg.PortableServer.POAManagerFactoryPackage;
//
// IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0
//
/** A POAManager already exists with the same name. */
final public class ManagerAlreadyExists extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0";
public
ManagerAlreadyExists()
{
super(_ob_id);
}
public
ManagerAlreadyExists(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,271 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryPackage/POAManagerSeqHelper.java | /*
* 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.omg.PortableServer.POAManagerFactoryPackage;
//
// IDL:omg.org/PortableServer/POAManagerFactory/POAManagerSeq:1.0
//
final public class POAManagerSeqHelper
{
public static void
insert(org.omg.CORBA.Any any, org.omg.PortableServer.POAManager[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static org.omg.PortableServer.POAManager[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "POAManagerSeq", orb.create_sequence_tc(0, org.omg.PortableServer.POAManagerHelper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAManagerFactory/POAManagerSeq:1.0";
}
public static org.omg.PortableServer.POAManager[]
read(org.omg.CORBA.portable.InputStream in)
{
throw new org.omg.CORBA.MARSHAL();
}
public static void
write(org.omg.CORBA.portable.OutputStream out, org.omg.PortableServer.POAManager[] val)
{
throw new org.omg.CORBA.MARSHAL();
}
}
| 5,272 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryPackage/POAManagerSeqHolder.java | /*
* 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.omg.PortableServer.POAManagerFactoryPackage;
//
// IDL:omg.org/PortableServer/POAManagerFactory/POAManagerSeq:1.0
//
final public class POAManagerSeqHolder implements org.omg.CORBA.portable.Streamable
{
public org.omg.PortableServer.POAManager[] value;
public
POAManagerSeqHolder()
{
}
public
POAManagerSeqHolder(org.omg.PortableServer.POAManager[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = POAManagerSeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
POAManagerSeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return POAManagerSeqHelper.type();
}
}
| 5,273 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryPackage/ManagerAlreadyExistsHolder.java | /*
* 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.omg.PortableServer.POAManagerFactoryPackage;
//
// IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0
//
final public class ManagerAlreadyExistsHolder implements org.omg.CORBA.portable.Streamable
{
public ManagerAlreadyExists value;
public
ManagerAlreadyExistsHolder()
{
}
public
ManagerAlreadyExistsHolder(ManagerAlreadyExists initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = ManagerAlreadyExistsHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
ManagerAlreadyExistsHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return ManagerAlreadyExistsHelper.type();
}
}
| 5,274 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerFactoryPackage/ManagerAlreadyExistsHelper.java | /*
* 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.omg.PortableServer.POAManagerFactoryPackage;
//
// IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0
//
final public class ManagerAlreadyExistsHelper
{
public static void
insert(org.omg.CORBA.Any any, ManagerAlreadyExists val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static ManagerAlreadyExists
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "ManagerAlreadyExists", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0";
}
public static ManagerAlreadyExists
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
ManagerAlreadyExists _ob_v = new ManagerAlreadyExists();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, ManagerAlreadyExists val)
{
out.write_string(id());
}
}
| 5,275 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/portable/Delegate.java | /*
* 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.omg.PortableServer.portable;
import org.omg.PortableServer.Servant;
import org.omg.PortableServer.POA;
public interface Delegate {
org.omg.CORBA.ORB orb(Servant self);
org.omg.CORBA.Object this_object(Servant self);
POA poa(Servant self);
byte[] object_id(Servant self);
POA default_POA(Servant self);
boolean is_a(Servant self, String repository_id);
boolean non_existent(Servant self);
org.omg.CORBA.InterfaceDef get_interface(Servant self);
org.omg.CORBA.Object get_interface_def(Servant self);
}
| 5,276 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/CurrentPackage/NoContextHolder.java | /*
* 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.omg.PortableServer.CurrentPackage;
//
// IDL:omg.org/PortableServer/Current/NoContext:1.0
//
final public class NoContextHolder implements org.omg.CORBA.portable.Streamable
{
public NoContext value;
public
NoContextHolder()
{
}
public
NoContextHolder(NoContext initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = NoContextHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
NoContextHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return NoContextHelper.type();
}
}
| 5,277 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/CurrentPackage/NoContextHelper.java | /*
* 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.omg.PortableServer.CurrentPackage;
//
// IDL:omg.org/PortableServer/Current/NoContext:1.0
//
public class NoContextHelper
{
public static void
insert(org.omg.CORBA.Any any, NoContext val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static NoContext
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "NoContext", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/Current/NoContext:1.0";
}
public static NoContext
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
NoContext _ob_v = new NoContext();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, NoContext val)
{
out.write_string(id());
}
}
| 5,278 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/CurrentPackage/NoContext.java | /*
* 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.omg.PortableServer.CurrentPackage;
//
// IDL:omg.org/PortableServer/Current/NoContext:1.0
//
/***/
final public class NoContext extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/Current/NoContext:1.0";
public
NoContext()
{
super(_ob_id);
}
public
NoContext(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,279 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/AdapterInactiveHelper.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0
//
public class AdapterInactiveHelper
{
public static void
insert(org.omg.CORBA.Any any, AdapterInactive val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static AdapterInactive
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[0];
typeCode_ = orb.create_exception_tc(id(), "AdapterInactive", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0";
}
public static AdapterInactive
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
AdapterInactive _ob_v = new AdapterInactive();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, AdapterInactive val)
{
out.write_string(id());
}
}
| 5,280 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/AdapterInactiveHolder.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0
//
final public class AdapterInactiveHolder implements org.omg.CORBA.portable.Streamable
{
public AdapterInactive value;
public
AdapterInactiveHolder()
{
}
public
AdapterInactiveHolder(AdapterInactive initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = AdapterInactiveHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
AdapterInactiveHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return AdapterInactiveHelper.type();
}
}
| 5,281 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/AdapterInactive.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0
//
/***/
final public class AdapterInactive extends org.omg.CORBA.UserException
{
private static final String _ob_id = "IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0";
public
AdapterInactive()
{
super(_ob_id);
}
public
AdapterInactive(String _reason)
{
super(_ob_id + " " + _reason);
}
}
| 5,282 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/StateHolder.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/State:1.0
//
final public class StateHolder implements org.omg.CORBA.portable.Streamable
{
public State value;
public
StateHolder()
{
}
public
StateHolder(State initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = StateHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
StateHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return StateHelper.type();
}
}
| 5,283 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/StateHelper.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/State:1.0
//
public class StateHelper
{
public static void
insert(org.omg.CORBA.Any any, State val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static State
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
String[] members = new String[4];
members[0] = "HOLDING";
members[1] = "ACTIVE";
members[2] = "DISCARDING";
members[3] = "INACTIVE";
typeCode_ = orb.create_enum_tc(id(), "State", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:omg.org/PortableServer/POAManager/State:1.0";
}
public static State
read(org.omg.CORBA.portable.InputStream in)
{
State _ob_v;
_ob_v = State.from_int(in.read_ulong());
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, State val)
{
out.write_ulong(val.value());
}
}
| 5,284 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/POAManagerPackage/State.java | /*
* 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.omg.PortableServer.POAManagerPackage;
//
// IDL:omg.org/PortableServer/POAManager/State:1.0
//
/***/
public class State implements org.omg.CORBA.portable.IDLEntity
{
private static State [] values_ = new State[4];
private int value_;
public final static int _HOLDING = 0;
public final static State HOLDING = new State(_HOLDING);
public final static int _ACTIVE = 1;
public final static State ACTIVE = new State(_ACTIVE);
public final static int _DISCARDING = 2;
public final static State DISCARDING = new State(_DISCARDING);
public final static int _INACTIVE = 3;
public final static State INACTIVE = new State(_INACTIVE);
protected
State(int value)
{
values_[value] = this;
value_ = value;
}
public int
value()
{
return value_;
}
public static State
from_int(int value)
{
if(value < values_.length)
return values_[value];
else
throw new org.omg.CORBA.BAD_PARAM("Value (" + value + ") out of range", 25, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
private java.lang.Object
readResolve()
throws java.io.ObjectStreamException
{
return from_int(value());
}
}
| 5,285 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/omg/PortableServer/ServantLocatorPackage/CookieHolder.java | /*
* 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.omg.PortableServer.ServantLocatorPackage;
final public class CookieHolder implements org.omg.CORBA.portable.Streamable {
public java.lang.Object value;
public CookieHolder() {
}
public CookieHolder(java.lang.Object initial) {
value = initial;
}
public void _read(org.omg.CORBA.portable.InputStream in) {
throw new org.omg.CORBA.MARSHAL();
}
public void _write(org.omg.CORBA.portable.OutputStream out) {
throw new org.omg.CORBA.MARSHAL();
}
public org.omg.CORBA.TypeCode _type() {
return org.omg.CORBA.ORB.init().create_native_tc(
"IDL:org.omg/PortableServer/ServantLocator/Cookie:1.0",
"Cookie");
}
}
| 5,286 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/apache/geronimo | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/apache/geronimo/interop/ApacheVMCID.java | /**
*
* 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.geronimo.interop;
/**
* @version $Revision: 491396 $ $Date: 2006-12-30 22:06:13 -0800 (Sat, 30 Dec 2006) $
*/
public interface ApacheVMCID {
/**
* The vendor minor code ID reserved for Apache. This value is or'd with
* the high order 20 bits of the minor code to produce the minor value
* in a system exception.
*/
public static final int value = 0x41534000;
}
| 5,287 |
0 | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/apache | Create_ds/geronimo-yoko/yoko-spec-corba/src/main/java/org/apache/yoko/ApacheVMCID.java | /**
*
* 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.yoko;
public class ApacheVMCID {
/**
* The vendor minor code ID reserved for Apache. This value is or'd with
* the high order 20 bits of the minor code to produce the minor value
* in a system exception.
*/
public static final int value = 0x41534000;
}
| 5,288 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/ProviderRegistry.java | /**
* 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.yoko.osgi;
import java.util.List;
/**
* The implementation of the factory registry used to store
* the bundle registrations.
*/
public interface ProviderRegistry {
/**
* Locate a class by its factory id indicator. .
*
* @param factoryId The factory id (generally, a fully qualified class name).
*
* @return The Class corresponding to this factory id. Returns null
* if this is not registered or the indicated class can't be
* loaded.
*/
public Class<?> locate(String factoryId);
/**
* Locate all class files that match a given factory id.
*
* @param factoryId The target factory identifier.
*
* @return A List containing the class objects corresponding to the
* factory identifier. Returns an empty list if no
* matching classes can be located.
*/
public List<Class<?>> locateAll(String factoryId);
/**
* Locate and instantiate an instance of a service provider
* defined in the META-INF/services directory of tracked bundles.
*
* @param providerId The name of the target interface class.
*
* @return The service instance. Returns null if no service defintions
* can be located.
* @exception Exception Any classloading or other exceptions thrown during
* the process of creating this service instance.
*/
public Object getService(String providerId) throws Exception;
/**
* Locate all services that match a given provider id and create instances.
*
* @param providerId The target provider identifier.
*
* @return A List containing the instances corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located or created
*/
public List<Object> getServices(String providerId);
/**
* Locate and return the class for a service provider
* defined in the META-INF/services directory of tracked bundles.
*
* @param providerId The name of the target interface class.
*
* @return The provider class. Returns null if no service defintions
* can be located.
* @exception Exception Any classloading or other exceptions thrown during
* the process of loading this service provider class.
*/
public Class<?> getServiceClass(String providerId) throws ClassNotFoundException;
/**
* Locate all services that match a given provider id and return the implementation
* classes
*
* @param providerId The target provider identifier.
*
* @return A List containing the classes corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located.
*/
public List<Class<?>> getServiceClasses(String providerId);
}
| 5,289 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/ProviderLocator.java | /**
* 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.yoko.osgi;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Properties;
import java.util.Set;
public class ProviderLocator {
// a service tracker for the registry service
// NB: This is declared as just Object to avoid classloading issues if we're running
// outside of an OSGi environment.
static private ProviderRegistry registry;
private ProviderLocator() {
// private constructor to prevent an instance from getting created.
}
public static void setRegistry(ProviderRegistry registry) {
ProviderLocator.registry = registry;
}
/**
* Locate a class by its provider id indicator. .
*
* @param providerId The provider id (generally, a fully qualified class name).
*
* @return The Class corresponding to this provider id. Returns null
* if this is not registered or the indicated class can't be
* loaded.
*/
static public Class<?> locate(String providerId) {
ProviderRegistry registry = getRegistry();
// if no registry service available, this is a failure
if (registry == null) {
return null;
}
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// the rest of the work is done by the registry
return registry.locate(providerId);
}
/**
* Locate all class files that match a given factory id.
*
* @param providerId The target provider identifier.
*
* @return A List containing the class objects corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located.
*/
static public List<Class<?>> locateAll(String providerId) {
Object registry = getRegistry();
// if no registry service available, this is a failure
if (registry == null) {
return new ArrayList<Class<?>>();
}
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// the rest of the work is done by the registry
return ((ProviderRegistry)registry).locateAll(providerId);
}
/**
* Utility class for locating a class with OSGi registry
* support. Uses the thread context classloader as part of
* the search order.
*
* @param className The name of the target class.
*
* @return The loaded class.
* @exception ClassNotFoundException
* Thrown if the class cannot be located.
*/
static public Class<?> loadClass(String className) throws ClassNotFoundException {
return loadClass(className, null, Thread.currentThread().getContextClassLoader());
}
/**
* Utility class for locating a class with OSGi registry
* support. Uses the thread context classloader as part of
* the search order.
*
* @param className The name of the target class.
*
* @return The loaded class.
* @exception ClassNotFoundException
* Thrown if the class cannot be located.
*/
static public Class<?> loadClass(String className, Class<?> contextClass) throws ClassNotFoundException {
return loadClass(className, contextClass, Thread.currentThread().getContextClassLoader());
}
/**
* Standardized utility method for performing class lookups
* with support for OSGi registry lookups.
*
* @param className The name of the target class.
* @param loader An optional class loader.
*
* @return The loaded class
* @exception ClassNotFoundException
* Thrown if the class cannot be loaded.
*/
static public Class<?> loadClass(String className, Class<?>contextClass, ClassLoader loader) throws ClassNotFoundException {
// ideally, this should be last. However, some of the bundles duplicate classes
// found on the boot delegation, so we need to check this first to keep
// from picking up one of the default implementations.
Class cls = locate(className);
if (cls != null) {
return cls;
}
if (loader != null) {
try {
return loader.loadClass(className);
} catch (ClassNotFoundException x) {
}
}
if (contextClass != null) {
loader = contextClass.getClassLoader();
}
// try again using the class context loader
return Class.forName(className, true, loader);
}
/**
* Get a single service instance that matches an interface
* definition.
*
* @param iface The name of the required interface.
* @param contextClass
* The class requesting the lookup (used for class resolution).
* @param loader A class loader to use for searching for service definitions
* and loading classes.
*
* @return The service instance, or null if no matching services
* can be found.
* @exception Exception Thrown for any classloading or exceptions thrown
* trying to instantiate a service instance.
*/
static public Object getService(String iface, Class<?> contextClass, ClassLoader loader) throws Exception {
// if we are working in an OSGi environment, then process the service
// registry first. Ideally, we would do this last, but because of boot delegation
// issues with some API implementations, we must try the OSGi version first
Object registry = getRegistry();
if (registry != null) {
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// the rest of the work is done by the registry
Object service = ((ProviderRegistry)registry).getService(iface);
if (service != null) {
return service;
}
}
// try for a classpath locatable instance next. If we find an appropriate class mapping,
// create an instance and return it.
Class<?> cls = locateServiceClass(iface, contextClass, loader);
if (cls != null) {
return cls.newInstance();
}
// a provider was not found
return null;
}
/**
* Locate a service class that matches an interface
* definition.
*
* @param iface The name of the required interface.
* @param contextClass
* The class requesting the lookup (used for class resolution).
* @param loader A class loader to use for searching for service definitions
* and loading classes.
*
* @return The located class, or null if no matching services
* can be found.
* @exception Exception Thrown for any classloading exceptions thrown
* trying to load the class.
*/
static public Class<?> getServiceClass(String iface, Class<?> contextClass, ClassLoader loader) throws ClassNotFoundException {
// if we are working in an OSGi environment, then process the service
// registry first. Ideally, we would do this last, but because of boot delegation
// issues with some API implementations, we must try the OSGi version first
Object registry = getRegistry();
if (registry != null) {
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// If we've located stuff in the registry, then return it
Class<?> cls = ((ProviderRegistry)registry).getServiceClass(iface);
if (cls != null) {
return cls;
}
}
// try for a classpath locatable instance first. If we find an appropriate class mapping,
// create an instance and return it.
return locateServiceClass(iface, contextClass, loader);
}
/**
* Get a list of services that match a given interface
* name. This searches both the current class path and
* the global repository for matches.
*
* @param iface The name of the required interface.
* @param contextClass
* The class requesting the lookup (used for class resolution).
* @param loader A class loader to use for searching for service definitions
* and loading classes.
*
* @return A list of matching services. Returns an empty list if there
* are no matches.
* @exception Exception Thrown for any classloading or exceptions thrown
* trying to instantiate a service instance.
*/
static public List<Object> getServices(String iface, Class<?> contextClass, ClassLoader loader) throws Exception {
List<Object> services = new ArrayList<Object>();
// because of boot delegation issues with some of the API implementations, it is necessary
// to process the OSGi registered versions first to allow override of JRE provided APIs.
Object registry = getRegistry();
if (registry != null) {
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// get any registered service instances now
List<Object> globalServices = ((ProviderRegistry)registry).getServices(iface);
// add to our list also
if (globalServices != null) {
services.addAll(globalServices);
}
}
// try for a classpath locatable instance second. If we find an appropriate class mapping,
// create an instance and return it.
Collection<Class<?>> classes = locateServiceClasses(iface, contextClass, loader);
if (classes != null) {
// create an instance of each of these classes
for (Class<?> cls : classes) {
services.add(cls.newInstance());
}
}
// now return the merged set
return services;
}
/**
* Get a list of service class implementations that match
* an interface name. This searches both the current class path and
* the global repository for matches.
*
* @param iface The name of the required interface.
* @param contextClass
* The class requesting the lookup (used for class resolution).
* @param loader A class loader to use for searching for service definitions
* and loading classes.
*
* @return A list of matching provider classes. Returns an empty list if there
* are no matches.
* @exception Exception Thrown for any classloading exceptions thrown
* trying to load a provider class.
*/
static public List<Class<?>> getServiceClasses(String iface, Class<?> contextClass, ClassLoader loader) throws Exception {
Set<Class<?>> serviceClasses = new LinkedHashSet<Class<?>>();
// because of boot delegation issues with some of the API implementations, it is necessary
// to process the OSGi registered versions first to allow override of JRE provided APIs.
Object registry = getRegistry();
if (registry != null) {
// get the service, if it exists. NB, if there is a service object,
// then the extender and the interface class are available, so this cast should be
// safe now.
// get any registered service provider classes now
List<Class<?>> globalServices = ((ProviderRegistry)registry).getServiceClasses(iface);
// add to our list also
if (globalServices != null) {
serviceClasses.addAll(globalServices);
}
}
// try for a classpath locatable classes second. If we find an appropriate class mapping,
// add this to our return collection.
Collection<Class<?>> classes = locateServiceClasses(iface, contextClass, loader);
if (classes != null) {
serviceClasses.addAll(classes);
}
// now return the merged set
return new ArrayList(serviceClasses);
}
/**
* Locate the first class name for a META-INF/services definition
* of a given class. The first matching provider is
* returned.
*
* @param iface The interface class name used for the match.
* @param loader The classloader for locating resources.
*
* @return The mapped provider name, if found. Returns null if
* no mapping is located.
*/
static private String locateServiceClassName(String iface, Class<?> contextClass, ClassLoader loader) {
// search first with the loader class path
String name = locateServiceClassName(iface, loader);
if (name != null) {
return name;
}
// then with the context class, if there is one
if (contextClass != null) {
name = locateServiceClassName(iface, contextClass.getClassLoader());
if (name != null) {
return name;
}
}
// not found
return null;
}
/**
* Locate a classpath-define service mapping.
*
* @param iface The required interface name.
* @param loader The ClassLoader instance to use to locate the service.
*
* @return The mapped class name, if one is found. Returns null if the
* mapping is not located.
*/
static private String locateServiceClassName(String iface, ClassLoader loader) {
if (loader != null) {
try {
// we only look at resources that match the file name, using the specified loader
String service = "META-INF/services/" + iface;
Enumeration<URL> providers = loader.getResources(service);
while (providers.hasMoreElements()) {
List<String>providerNames = parseServiceDefinition(providers.nextElement());
// if there is something defined here, return the first entry
if (!providerNames.isEmpty()) {
return providerNames.get(0);
}
}
} catch (IOException e) {
}
}
// not found
return null;
}
/**
* Locate the first class for a META-INF/services definition
* of a given interface class. The first matching provider is
* returned.
*
* @param iface The interface class name used for the match.
* @param loader The classloader for locating resources.
*
* @return The mapped provider class, if found. Returns null if
* no mapping is located.
*/
static private Class<?> locateServiceClass(String iface, Class<?> contextClass, ClassLoader loader) throws ClassNotFoundException {
String className = locateServiceClassName(iface, contextClass, loader);
if (className == null) {
return null;
}
// we found a name, try loading the class. This will throw an exception if there is an error
return loadClass(className, contextClass, loader);
}
/**
* Locate all class names name for a META-INF/services definition
* of a given class.
*
* @param iface The interface class name used for the match.
* @param loader The classloader for locating resources.
*
* @return The mapped provider name, if found. Returns null if
* no mapping is located.
*/
static private Collection<String> locateServiceClassNames(String iface, Class<?> contextClass, ClassLoader loader) {
Set<String> names = new LinkedHashSet<String>();
locateServiceClassNames(iface, loader, names);
if (contextClass != null) {
locateServiceClassNames(iface, contextClass.getClassLoader(), names);
}
return names;
}
/**
* Locate all class names name for a META-INF/services definition
* of a given class.
*
* @param iface The interface class name used for the match.
* @param loader The classloader for locating resources.
*
* @return The mapped provider name, if found. Returns null if
* no mapping is located.
*/
static void locateServiceClassNames(String iface, ClassLoader loader, Set names) {
if (loader != null) {
try {
// we only look at resources that match the file name, using the specified loader
String service = "META-INF/services/" + iface;
Enumeration<URL> providers = loader.getResources(service);
while (providers.hasMoreElements()) {
List<String>providerNames = parseServiceDefinition(providers.nextElement());
// just add all of these to the list
names.addAll(providerNames);
}
} catch (IOException e) {
}
}
}
/**
* Locate all classes that map to a given provider class definition. This will
* search both the services directories, as well as the provider classes from the
* OSGi provider registry.
*
* @param iface The interface class name used for the match.
* @param loader The classloader for locating resources.
*
* @return A list of all mapped classes, if found. Returns an empty list if
* no mappings are found.
*/
static private Collection<Class<?>> locateServiceClasses(String iface, Class<?> contextClass, ClassLoader loader) throws ClassNotFoundException {
// get the set of names from services definitions on the classpath
Collection<String> classNames = locateServiceClassNames(iface, contextClass, loader);
Set<Class<?>> classes = new LinkedHashSet<Class<?>>();
// load each class and add to our return set
for (String name : classNames) {
classes.add(loadClass(name, contextClass, loader));
}
return classes;
}
/**
* Parse a definition file and return the names of all included implementation classes
* contained within the file.
*
* @param u The URL of the file
*
* @return A list of all matching classes. Returns an empty list
* if no matches are found.
*/
static private List<String> parseServiceDefinition(URL u) {
final String url = u.toString();
List<String> classes = new ArrayList<String>();
// ignore directories
if (url.endsWith("/")) {
return classes;
}
// the identifier used for the provider is the last item in the URL.
final String providerId = url.substring(url.lastIndexOf("/") + 1);
try {
BufferedReader br = new BufferedReader(new InputStreamReader(u.openStream(), "UTF-8"));
// the file can be multiple lines long, with comments. A single file can define multiple providers
// for a single key, so we might need to create multiple entries. If the file does not contain any
// definition lines, then as a default, we use the providerId as an implementation class also.
String line = br.readLine();
while (line != null) {
// we allow comments on these lines, and a line can be all comment
int comment = line.indexOf('#');
if (comment != -1) {
line = line.substring(0, comment);
}
line = line.trim();
// if there is nothing left on the line after stripping white space and comments, skip this
if (line.length() > 0) {
// add this to our list
classes.add(line);
}
// keep reading until the end.
line = br.readLine();
}
br.close();
} catch (IOException e) {
// ignore errors and handle as default
}
return classes;
}
/**
* Perform a service class discovery by looking for a
* property in a target properties file located in the
* java.home directory.
*
* @param path The relative path to the desired properties file.
* @param property The name of the required property.
*
* @return The value of the named property within the properties file. Returns
* null if the property doesn't exist or the properties file doesn't exist.
*/
public static String lookupByJREPropertyFile(String path, String property) throws IOException {
String jreDirectory = System.getProperty("java.home");
File configurationFile = new File(jreDirectory + File.separator + path);
if (configurationFile.exists() && configurationFile.canRead()) {
Properties properties = new Properties();
InputStream in = null;
try {
in = new FileInputStream(configurationFile);
properties.load(in);
return properties.getProperty(property);
} finally {
if (in != null) {
try {
in.close();
} catch (Exception e) {
}
}
}
}
return null;
}
/**
* Retrieve the registry from the tracker if it is available,
* all without causing the interface class to load.
*
* @return The registry service instance, or null if it is not
* available for any reason.
*/
private static ProviderRegistry getRegistry() {
return registry;
}
}
| 5,290 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/ProviderRegistryImpl.java | /**
* 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.yoko.osgi.locator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.yoko.osgi.ProviderLocator;
import org.apache.yoko.osgi.ProviderRegistry;
/**
* The implementation of the provider registry used to store
* the bundle registrations.
*/
public class ProviderRegistryImpl implements ProviderRegistry, Register {
private static final Logger log = Logger.getLogger(ProviderRegistryImpl.class.getName());
// our mapping between a provider id and the implementation information. There
// might be a one-to-many relationship between the ids and implementing classes.
private SPIRegistry providers = new SPIRegistry();
// our mapping between an interface name and a META-INF/services SPI implementation. There
// might be a one-to-many relationship between the ids and implementing classes.
private SPIRegistry serviceProviders = new SPIRegistry();
public void start() {
ProviderLocator.setRegistry(this);
}
public void stop() {
ProviderLocator.setRegistry(null);
}
/**
* Register an individual provivider item by its provider identifier.
*
* @param provider The loader used to resolve the provider class.
*/
public void registerProvider(BundleProviderLoader provider) {
if (log.isLoggable(Level.FINE))
log.log(Level.FINE, "registering provider " + provider);
providers.register(provider);
}
/**
* Removed a provider registration for a named provider id.
*
* @param provider The provider registration instance
*/
public void unregisterProvider(BundleProviderLoader provider) {
if (log.isLoggable(Level.FINE))
log.log(Level.FINE, "unregistering provider " + provider);
providers.unregister(provider);
}
/**
* Register an individual provivider item by its provider identifier.
*
* @param provider The loader used to resolve the provider class.
*/
public void registerService(BundleProviderLoader provider) {
if (log.isLoggable(Level.FINE))
log.log(Level.FINE, "registering service " + provider);
serviceProviders.register(provider);
}
/**
* Removed a provider registration for a named provider id.
*
* @param provider The provider registration instance
*/
public void unregisterService(BundleProviderLoader provider) {
if (log.isLoggable(Level.FINE))
log.log(Level.FINE, "unregistering service " + provider);
serviceProviders.unregister(provider);
}
/**
* Locate a class by its provider id indicator. .
*
* @param providerId The provider id (generally, a fully qualified class name).
*
* @return The Class corresponding to this provider id. Returns null
* if this is not registered or the indicated class can't be
* loaded.
*/
public Class<?> locate(String providerId) {
// see if we have a registered match for this...getting just the first instance
BundleProviderLoader loader = providers.getLoader(providerId);
if (loader != null) {
try {
// try to load this. We always return null
return loader.loadClass();
} catch (Exception e) {
e.printStackTrace();
// just swallow this and return null. The exception has already
// been logged.
}
}
// no match to return
return null;
}
/**
* Locate all class files that match a given provider id.
*
* @param providerId The target provider identifier.
*
* @return A List containing the class objects corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located.
*/
public List<Class<?>> locateAll(String providerId) {
List<Class<?>> classes = new ArrayList<Class<?>>();
List<BundleProviderLoader> l = providers.getLoaders(providerId);
// this returns null if nothing is found.
if (l != null) {
for (BundleProviderLoader c : l) {
try {
classes.add(c.loadClass());
} catch (Exception e) {
// just swallow this and proceed to the next. The exception has
// already been logged.
}
}
}
return classes;
}
/**
* Locate and instantiate an instance of a service provider
* defined in the META-INF/services directory of tracked bundles.
*
* @param providerId The name of the target interface class.
*
* @return The service instance. Returns null if no service defintions
* can be located.
* @exception Exception Any classloading or other exceptions thrown during
* the process of creating this service instance.
*/
public Object getService(String providerId) throws Exception {
// see if we have a registered match for this...getting just the first instance
BundleProviderLoader loader = serviceProviders.getLoader(providerId);
if (loader != null) {
// try to load this and create an instance. Any/all exceptions get
// thrown here
return loader.createInstance();
}
// no match to return
return null;
}
/**
* Locate all services that match a given provider id and create instances.
*
* @param providerId The target provider identifier.
*
* @return A List containing the instances corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located or created
*/
public List<Object> getServices(String providerId) {
List<Object> instances = new ArrayList<Object>();
List<BundleProviderLoader> l = serviceProviders.getLoaders(providerId);
// this returns null for nothing found
if (l != null) {
for (BundleProviderLoader c : l) {
try {
instances.add(c.createInstance());
} catch (Exception e) {
// just swallow this and proceed to the next. The exception has
// already been logged.
}
}
}
return instances;
}
/**
* Locate all services that match a given provider id and return the implementation
* classes
*
* @param providerId The target provider identifier.
*
* @return A List containing the classes corresponding to the
* provider identifier. Returns an empty list if no
* matching classes can be located.
*/
public List<Class<?>> getServiceClasses(String providerId) {
List<Class<?>> classes = new ArrayList<Class<?>>();
List<BundleProviderLoader> l = serviceProviders.getLoaders(providerId);
// this returns null for nothing found
if (l != null) {
for (BundleProviderLoader c : l) {
try {
classes.add(c.loadClass());
} catch (Exception e) {
e.printStackTrace();
// just swallow this and proceed to the next. The exception has
// already been logged.
}
}
}
return classes;
}
/**
* Locate and return the class for a service provider
* defined in the META-INF/services directory of tracked bundles.
*
* @param providerId The name of the target interface class.
*
* @return The provider class. Returns null if no service defintions
* can be located.
* @exception ClassNotFoundException Any classloading or other exceptions thrown during
* the process of loading this service provider class.
*/
public Class<?> getServiceClass(String providerId) throws ClassNotFoundException {
// see if we have a registered match for this...getting just the first instance
BundleProviderLoader loader = serviceProviders.getLoader(providerId);
if (loader != null) {
// try to load this and create an instance. Any/all exceptions get
// thrown here
return loader.loadClass();
}
// no match to return
return null;
}
/**
* Holder class for information about a given collection of
* id to provider mappings. Used for both the providers and
* the services.
*/
private class SPIRegistry {
private Map<String, List<BundleProviderLoader>> registry;
/**
* Register an individual provivider item by its provider identifier.
*
* @param provider The loader used to resolve the provider class.
*/
public synchronized void register(BundleProviderLoader provider) {
// if this is the first registration, create the mapping table
if (registry == null) {
registry = new HashMap<String, List<BundleProviderLoader>>();
}
String providerId = provider.id();
// the providers are stored as a list...we use the first one registered
// when asked to locate.
List<BundleProviderLoader> l = registry.get(providerId);
if (l == null) {
l = new ArrayList<BundleProviderLoader>(2);
registry.put(providerId, l);
}
l.add(provider);
Collections.sort(l);
}
/**
* Remove a provider registration for a named provider id.
*
* @param provider The provider registration instance
*/
public synchronized void unregister(BundleProviderLoader provider) {
if (registry != null) {
// this is stored as a list. Just remove using the registration information
// This may move a different provider to the front of the list.
List<BundleProviderLoader> l = registry.get(provider.id());
if (l != null) {
l.remove(provider);
}
}
}
private synchronized BundleProviderLoader getLoader(String id) {
// synchronize on the registry instance
if (registry != null) {
if (log.isLoggable(Level.FINE))
log.fine("registry: " + registry);
// return the first match, if any
List<BundleProviderLoader> list = registry.get(id);
if (list != null && !list.isEmpty()) {
return list.get(0);
}
}
// no match here
return null;
}
private synchronized List<BundleProviderLoader> getLoaders(String id) {
if (registry != null) {
// if we have matches, return a copy of what we currently have
// to create a safe local copy.
List<BundleProviderLoader> list = registry.get(id);
if (list != null && !list.isEmpty()) {
return new ArrayList<BundleProviderLoader>(list);
}
}
// no match here
return null;
}
}
}
| 5,291 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/ServiceBean.java | /*
* 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.yoko.osgi.locator;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.osgi.framework.Bundle;
/**
* @version $Rev$ $Date$
*/
public class ServiceBean {
private static final Logger log = Logger.getLogger(ServiceBean.class.getName());
private Register providerRegistry;
private BundleProviderLoader bundleProviderLoader;
public ServiceBean(String key,
String className,
Bundle bundle,
Register providerRegistry) {
this(key, className, bundle, providerRegistry, -1);
}
public ServiceBean(String key,
String className,
Bundle bundle,
Register providerRegistry,
Integer priority) {
bundleProviderLoader = new BundleProviderLoader(key, className, bundle, priority == null? -1: priority);
if (log.isLoggable(Level.FINER))
log.finer("ServiceBean: " + bundleProviderLoader);
this.providerRegistry = providerRegistry;
}
public void start() {
providerRegistry.registerService(bundleProviderLoader);
}
public void stop() {
providerRegistry.unregisterService(bundleProviderLoader);
}
} | 5,292 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/Register.java | /*
* 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.yoko.osgi.locator;
/**
* @version $Rev$ $Date$
*/
public interface Register {
void registerProvider(BundleProviderLoader provider);
void unregisterProvider(BundleProviderLoader provider);
void registerService(BundleProviderLoader provider);
void unregisterService(BundleProviderLoader provider);
}
| 5,293 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/BundleProviderLoader.java | /*
* 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.yoko.osgi.locator;
import org.osgi.framework.Bundle;
/**
* Holder class for located services information.
*/
public class BundleProviderLoader implements Comparable<BundleProviderLoader> {
// the class name for this provider
private final String providerId;
// the mapped class name of the provider.
private final String providerClass;
// the hosting bundle.
private final Bundle bundle;
private final int priority;
/**
* Create a loader for this registered provider.
*
* @param providerId The provider ID
* @param providerClass The mapped class name of the provider.
* @param bundle The hosting bundle.
* @param priority
*/
public BundleProviderLoader(String providerId, String providerClass, Bundle bundle, int priority) {
this.providerId = providerId;
this.providerClass = providerClass;
this.bundle = bundle;
this.priority = priority;
}
/**
* Load a provider class.
*
* @return The provider class from the target bundle.
* @exception Exception
*/
public Class<?> loadClass() throws ClassNotFoundException {
try {
// log(LogService.LOG_DEBUG, "loading class for: " + this);
return bundle.loadClass(providerClass);
} catch (ClassNotFoundException e) {
// log(LogService.LOG_DEBUG, "exception caught while loading " + this, e);
throw e;
}
}
/**
* Create an instance of the registred service.
*
* @return The created instance. A new instance is created on each call.
* @exception Exception
*/
public Object createInstance() throws Exception {
// get the class object
Class <?> cls = loadClass();
try {
// just create an instance using the default constructor
return cls.newInstance();
} catch (Exception e) {
// log(LogService.LOG_DEBUG, "exception caught while creating " + this, e);
throw e;
} catch (Error e) {
// log(LogService.LOG_DEBUG, "error caught while creating " + this, e);
throw e;
}
}
public String id() {
return providerId;
}
@Override
public String toString() {
return "Provider interface=" + providerId + " , provider class=" + providerClass + ", bundle=" + bundle;
}
@Override
public int hashCode() {
return providerId.hashCode() + providerClass.hashCode() + (int)bundle.getBundleId();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof BundleProviderLoader) {
return providerId.equals(((BundleProviderLoader)obj).providerId) &&
providerClass.equals(((BundleProviderLoader)obj).providerClass) &&
bundle.getBundleId() == ((BundleProviderLoader)obj).bundle.getBundleId();
} else {
return false;
}
}
public int compareTo(BundleProviderLoader other) {
return other.priority - priority;
}
}
| 5,294 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/ProviderBean.java | /*
* 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.yoko.osgi.locator;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.osgi.framework.Bundle;
/**
* @version $Rev$ $Date$
*/
public class ProviderBean {
private static final Logger log = Logger.getLogger(ProviderBean.class.getName());
private Register providerRegistry;
private BundleProviderLoader bundleProviderLoader;
public ProviderBean(String key,
String className,
Bundle bundle,
Register providerRegistry) {
this(key, className, bundle, providerRegistry, -1);
}
public ProviderBean(String key,
String className,
Bundle bundle,
Register providerRegistry,
Integer priority) {
bundleProviderLoader = new BundleProviderLoader(key, className, bundle, priority == null? -1: priority);
if (log.isLoggable(Level.FINER))
log.finer("ProviderBean: " + bundleProviderLoader);
this.providerRegistry = providerRegistry;
}
public void start() {
providerRegistry.registerProvider(bundleProviderLoader);
}
public void stop() {
providerRegistry.unregisterProvider(bundleProviderLoader);
}
}
| 5,295 |
0 | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator | Create_ds/geronimo-yoko/yoko-osgi/src/main/java/org/apache/yoko/osgi/locator/activator/AbstractBundleActivator.java | package org.apache.yoko.osgi.locator.activator;
import java.util.ArrayList;
import java.util.List;
import org.apache.yoko.osgi.locator.BundleProviderLoader;
import org.apache.yoko.osgi.locator.Register;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
public abstract class AbstractBundleActivator implements BundleActivator {
public static class Info {
final String id;
final String className;
final int priority;
public Info(String id, String className, int priority) {
super();
this.id = id;
this.className = className;
this.priority = priority;
}
}
private final Info[] providerInfo;
private final Info[] serviceInfo;
private ServiceTracker<Register, Register> tracker;
private BundleContext context;
private boolean registered;
private final List<BundleProviderLoader> providerLoaders = new ArrayList<BundleProviderLoader>();
private final List<BundleProviderLoader> serviceLoaders = new ArrayList<BundleProviderLoader>();
public AbstractBundleActivator(Info[] providerInfo, Info[] serviceInfo) {
this.providerInfo = providerInfo;
this.serviceInfo = serviceInfo;
}
public void start(final BundleContext context) throws Exception {
this.context = context;
tracker = new ServiceTracker<Register, Register>(context, Register.class, new ServiceTrackerCustomizer<Register, Register>() {
public Register addingService(ServiceReference<Register> reference) {
Register register = context.getService(reference);
register(register);
return register;
}
public void modifiedService(ServiceReference<Register> reference,
Register service) {
// TODO Auto-generated method stub
}
public void removedService(ServiceReference<Register> reference,
Register service) {
// TODO Auto-generated method stub
}
});
tracker.open();
Register register = tracker.getService();
if (register != null) {
register(register);
}
}
private synchronized void register(Register register) {
if (!registered) {
registered = true;
Bundle bundle = context.getBundle();
for (Info classInfo: providerInfo) {
BundleProviderLoader loader = new BundleProviderLoader(classInfo.id, classInfo.className, bundle, classInfo.priority);
providerLoaders.add(loader);
register.registerProvider(loader);
}
for (Info classInfo: serviceInfo) {
BundleProviderLoader loader = new BundleProviderLoader(classInfo.id, classInfo.className, bundle, classInfo.priority);
serviceLoaders.add(loader);
register.registerService(loader);
}
}
}
public void stop(BundleContext context) throws Exception {
Register register = tracker.getService();
tracker.close();
synchronized (this) {
if (register != null && registered) {
for (BundleProviderLoader loader: providerLoaders) {
register.unregisterProvider(loader);
}
for (BundleProviderLoader loader: serviceLoaders) {
register.unregisterService(loader);
}
}
}
}
}
| 5,296 |
0 | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util/concurrent/ReferenceCountedCacheTest.java | package org.apache.yoko.util.concurrent;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
import org.apache.yoko.util.Cache;
import org.apache.yoko.util.KeyedFactory;
import org.apache.yoko.util.Reference;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;
import java.util.*;
import java.util.concurrent.*;
@RunWith(MockitoJUnitRunner.class)
public class ReferenceCountedCacheTest {
private static final ConcurrentLinkedQueue<Integer> createdInts = new ConcurrentLinkedQueue<>();
private static final ConcurrentLinkedQueue<Integer> deletedInts = new ConcurrentLinkedQueue<>();
private static class StringToInteger implements KeyedFactory<String, Integer>, Cache.Cleaner<Integer> {
@Override
public Integer create(String key) {
Integer result = new Integer(key);
createdInts.add(result);
return result;
}
@Override
public void clean(Integer value) {
deletedInts.add(value);
}
}
private static class BadFactory implements KeyedFactory<String, Integer> {
@Override
public Integer create(String key) {
throw new UnsupportedOperationException();
}
}
@Spy
StringToInteger factory;
@Spy
BadFactory badFactory;
ReferenceCountedCache<String, Integer> cache;
volatile CyclicBarrier startBarrier, endBarrier;
volatile boolean retrieving = true;
@After
public void setup() {
createdInts.clear();
deletedInts.clear();
cache = null;
retrieving = true;
startBarrier = endBarrier = null;
}
@Test
public void testGetAndCreate() {
cache = new ReferenceCountedCache<>(factory, 0, 5);
assertEquals(null, cache.get("1"));
try (Reference<Integer> ref = cache.getOrCreate("1", factory);)
{assertEquals(Integer.valueOf(1), ref.get());}
try (Reference<Integer> ref = cache.get("1");)
{assertEquals(Integer.valueOf(1), ref.get());}
cache.clean();
assertEquals(null, cache.get("1"));
}
@Test
public void testFailedCreateDoesNotPolluteCache() {
cache = new ReferenceCountedCache<>(factory, 0, 5);
assertEquals(null, cache.get("1"));
try (Reference<Integer> ref = cache.getOrCreate("1", badFactory);) {
fail("getOrCreate() should throw an exception");
} catch (UnsupportedOperationException expected) {}
assertEquals(null, cache.get("1"));
try (Reference<Integer> ref = cache.getOrCreate("1", factory);)
{assertEquals(Integer.valueOf(1), ref.get());}
try (Reference<Integer> ref = cache.get("1");)
{assertEquals(Integer.valueOf(1), ref.get());}
cache.clean();
assertEquals(null, cache.get("1"));
}
@Test
public void testCreateAndClean() {
cache = new ReferenceCountedCache<>(factory, 3, 5);
cache.getOrCreate("0", factory).close();
cache.getOrCreate("1", factory).close();
assertEquals(2, cache.snapshot().size());
cache.getOrCreate("2", factory).close();
assertEquals(3, cache.snapshot().size());
cache.getOrCreate("3", factory).close();
assertEquals(4, cache.snapshot().size());
long cleaned = cache.clean();
assertEquals(4, cleaned);
assertEquals(0, cache.snapshot().size());
}
@Test
public void testCreateEntries() {
cache = new ReferenceCountedCache<>(factory, 0, 0);
// new entries should result in factory invocations
cache.getOrCreate("0", factory);
verify(factory).create("0");
cache.getOrCreate("1", factory);
verify(factory).create("1");
// existing entries should not invoke the factory further
cache.getOrCreate("0", factory);
cache.getOrCreate("1", factory);
verify(factory, times(2)).create(anyString());
System.out.println(createdInts);
}
@Test
public void testReleaseResults() {
cache = new ReferenceCountedCache<>(factory, 3, 5);
Reference<Integer> r0, r1, r2, r3, r4, r5;
r0 = cache.getOrCreate("0", factory);
r1 = cache.getOrCreate("1", factory);
r2 = cache.getOrCreate("2", factory);
// check the references are to the right values
assertEquals(Integer.valueOf(0), r0.get());
assertEquals(Integer.valueOf(1), r1.get());
assertEquals(Integer.valueOf(2), r2.get());
// check the size is correct
assertEquals(3, cache.size());
assertEquals(0, cache.idleCount());
r0.close();
// after releasing one ref, we should see only the unused count go up.
assertEquals(3, cache.size());
assertEquals(1, cache.idleCount());
r1.close();
assertEquals(3, cache.size());
assertEquals(2, cache.idleCount());
// this should do nothing
cache.clean();
assertEquals(3, cache.size());
assertEquals(2, cache.idleCount());
// this should force a cleanup
r3 = cache.getOrCreate("3", factory);
cache.clean();
assertEquals(2, cache.size());
assertEquals(0, cache.idleCount());
// check the expected methods were called on the factory
verify(factory).clean(0);
verify(factory).clean(1);
verify(factory, times(2)).clean(anyInt());
}
@Test
public void testMultiThreaded() throws Exception {
cache = new ReferenceCountedCache<>(factory, 15, 7);
int retrievers = 50;
int cleaners = 5;
startBarrier = new CyclicBarrier(retrievers + 1);
endBarrier = new CyclicBarrier(retrievers);
retrieving = true;
ExecutorService xs = Executors.newFixedThreadPool(retrievers + cleaners);
List<Future<List<Integer>>> retrievals = new ArrayList<>();
List<Future<Long>> cleanTallies = new ArrayList<>();
for (int i = 0; i < retrievers; i++)
retrievals.add(xs.submit(new Retriever(20)));
for (int i = 0; i < cleaners; i++)
cleanTallies.add(xs.submit(new Cleaner()));
startBarrier.await();
long cleaned = 0;
for (Future<Long> cleanTally : cleanTallies)
cleaned += cleanTally.get();
Set<Integer> results = newIdentityHashSet();
for (Future<List<Integer>> retrieval : retrievals)
results.addAll(retrieval.get());
Set<Integer> created = newIdentityHashSet(createdInts);
Set<Integer> deleted = newIdentityHashSet(deletedInts);
System.out.printf("%ncreated %d values", created.size());
System.out.printf("%ndeleted %d values", deleted.size());
System.out.printf("%nfetched %d values", results.size());
System.out.printf("%ncleaned %d values", cleaned);
System.out.printf("%nremaining entries: %s%n", cache.snapshot());
assertEquals(deleted.size(), cleaned);
assertEquals(created, unionByIdentity(deleted, cache.snapshot().values()));
assertEquals(created, results);
}
private static <T> Set<T> newIdentityHashSet() {
return Collections.newSetFromMap(new IdentityHashMap<T, Boolean>());
}
private static <T> Set<T> newIdentityHashSet(Collection<? extends T> c) {
Set<T> result = newIdentityHashSet();
result.addAll(c);
return result;
}
private static <T> Set<T> unionByIdentity(Collection<T>...collections) {
Set<T> result = newIdentityHashSet();
for(Collection<T> c : collections)
result.addAll(c);
return result;
}
class Retriever implements Callable<List<Integer>> {
final int bound;
final Random random = new Random();
Retriever(int bound) { this.bound = bound; }
@Override
public List<Integer> call() throws Exception {
List<Integer> list = new ArrayList<>();
try {
startBarrier.await();
for (int i = 0; i < 1_000; i++) {
try (Reference<Integer> ref = cache.getOrCreate("" + random.nextInt(bound), factory)) {
list.add(ref.get());
}
}
endBarrier.await();
retrieving = false;
} catch (Throwable t) {
System.out.printf("Retriever aborted with %s.%n", t);
t.printStackTrace(System.out);
}
return list;
}
}
class Cleaner implements Callable<Long> {
@Override
public Long call() throws Exception {
long cleaned = 0;
while (retrieving) cleaned += cache.clean();
return cleaned;
}
}
}
| 5,297 |
0 | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util/concurrent/ConcurrentFifoTest.java | package org.apache.yoko.util.concurrent;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import org.apache.yoko.util.Sequential;
import org.junit.Before;
import org.junit.Test;
@SuppressWarnings("unused")
public class ConcurrentFifoTest {
private static final List<String> ELEMS = new ArrayList<>();
static {
for (char c1 = 'A'; c1 <= 'Z'; c1++)
for (char c2 = 'a'; c2 <= 'z'; c2++)
ELEMS.add("" + c1 + c2);
}
ConcurrentFifo<String> fifo;
Set<Sequential.Place<String>> places;
volatile CyclicBarrier startBarrier;
@Before
public void setupFifo() {
fifo = new ConcurrentFifo<>();
}
@Before
public void setupPlaces() {
places = Collections.newSetFromMap(new ConcurrentHashMap<Sequential.Place<String>, Boolean>());
}
@Before
public void nullifyStartBarrier() {
startBarrier = null;
}
@Test
public void testPuttingStuff() throws Exception {
// create tasks
List<Adder> tasks = new ArrayList<>();
for (String dummy : ELEMS)
tasks.add(new Adder());
// run the tasks concurrently
List<List<String>> expectedOrders = runConcurrently(tasks);
// convert the fifo to a list
List<String> actualOrder = drainFifo();
assertEquals(ELEMS.size() * ELEMS.size(), actualOrder.size());
// check correct ordering per Adder:
// as we tally the elements in order,
// the number of ELEM[n] encountered
// should always be greater than or
// equal to the number of ELEM[n+1]
// encountered
TreeMap<String, Integer> tallySheet = new TreeMap<>();
// start with zero for every element
for (String elem : ELEMS) tallySheet.put(elem, 0);
// place known elephant in Cairo
tallySheet.put("", Integer.MAX_VALUE);
int index = -1;
for (String elem : actualOrder) {
index ++;
int newTally = tallySheet.get(elem) + 1;
tallySheet.put(elem, newTally);
Entry<String, Integer> lowerEntry = tallySheet.lowerEntry(elem);
String msg = String.format("Element out of order at index %d: %d \"%s\" found but only %d \"%s\"", index, newTally, elem, lowerEntry.getValue(), lowerEntry.getKey());
assertTrue(msg, lowerEntry.getValue() >= newTally);
}
}
@Test
public void testPickingStuff() throws Exception {
// pre-populate elements
for (String elem : ELEMS)
places.add(fifo.put(elem));
// create tasks
List<Constrictor> tasks = new ArrayList<>();
for (String elem : ELEMS)
tasks.add(new Constrictor());
// run the tasks concurrently
List<List<String>> removalLists = runConcurrently(tasks);
for (List<String> list : removalLists) if (!!!list.isEmpty()) System.out.println(list);
// convert the queue to a list
List<String> remainingElements = drainFifo();
// check for the right number of entries
assertEquals(Collections.emptyList(), remainingElements);
// check everything was removed exactly once
List<String> checkedRemovals = concatenate(removalLists);
Collections.sort(checkedRemovals);
assertEquals(ELEMS, checkedRemovals);
}
@Test
public void testGettingStuff() throws Exception {
// pre-populate elements
for (String elem : ELEMS)
places.add(fifo.put(elem));
// create tasks
List<Wiper> tasks = new ArrayList<>();
for (String elem : ELEMS)
tasks.add(new Wiper());
// run the tasks concurrently
List<List<String>> removalLists = runConcurrently(tasks);
for (List<String> list : removalLists) if (!!!list.isEmpty()) System.out.println(list);
// convert the queue to a list
List<String> remainingElements = drainFifo();
// check for the right number of entries
assertEquals(Collections.emptyList(), remainingElements);
// check everything was removed exactly once
List<String> checkedRemovals = concatenate(removalLists);
Collections.sort(checkedRemovals);
assertEquals(ELEMS, checkedRemovals);
// check no-one removed anything out of order
// i.e. each list of removed elements should remain unchanged by sorting
for (List<String> removed : removalLists)
assertEquals(new ArrayList<>(new TreeSet<>(removed)), removed);
}
@Test
public void testAllOpsConcurrently() throws Exception {
// pre-populate all the possible elements
for (String elem : ELEMS)
places.add(fifo.put(elem));
// create tasks
List<Callable<List<String>>> tasks = new ArrayList<>();
for (int i = 0; i < 1000; i++) {
switch (i % 4) {
case 0:
case 2:
tasks.add(new Adder());
break;
case 1:
tasks.add(new Constrictor());
break;
case 3:
tasks.add(new Wiper());
break;
}
}
List<String> added = new ArrayList<>(), removed = new ArrayList<>();
// collate additions and subtractions
Iterator<Callable<List<String>>> iterator = tasks.iterator();
for (List<String> results : runConcurrently(tasks))
(iterator.next() instanceof Adder ? added : removed).addAll(results);
added.addAll(ELEMS); // these were added up front
Collections.sort(added);
List<String> remainder = drainFifo();
removed.addAll(remainder);
Collections.sort(removed);
assertEquals(added, removed);
}
private <T> List<T> concatenate(List<List<T>> lists) {
List<T> result = new ArrayList<>();
for (List<T> list : lists)
result.addAll(list);
return result;
}
private List<String> drainFifo() {
List<String> queuedOrder = new ArrayList<>();
do {
String o = fifo.remove();
if (o == null) break;
queuedOrder.add(o);
} while (true);
return queuedOrder;
}
private <T> List<T> runConcurrently(List<? extends Callable<T>> tasks)
throws InterruptedException, ExecutionException {
// start all the threads
startBarrier = new CyclicBarrier(tasks.size());
ExecutorService xs = Executors.newFixedThreadPool(tasks.size());
try {
List<Future<T>> futures = new ArrayList<>();
for (Callable<T> task : tasks)
futures.add(xs.submit(task));
// collect the results
List<T> results = new ArrayList<>();
for (Future<T> future : futures)
results.add(future.get());
return results;
} finally {
xs.shutdown();
}
}
/** Adds stuff to the FIFO */
class Adder implements Callable<List<String>> {
@Override
public List<String> call() throws Exception {
List<String> added = new ArrayList<>();
startBarrier.await();
for (String elem : new ArrayList<>(ELEMS)) {
places.add(fifo.put(elem));
added.add(elem);
}
return added;
}
}
/** Constrains the FIFO by removing specific elements */
class Constrictor implements Callable<List<String>> {
@Override
public List<String> call() throws Exception {
List<String> constricted = new ArrayList<>();
startBarrier.await();
while (!!! places.isEmpty()) {
// get a copy of the known places in the fifo and shuffle it
List<Sequential.Place<String>> myPlaces = new ArrayList<>(places);
Collections.shuffle(myPlaces);
// remove everything we can
for (Sequential.Place<String> place : myPlaces) {
String elem = place.relinquish();
if (elem != null)
constricted.add(elem);
places.remove(place);
}
}
return constricted;
}
}
/** Wipes out the FIFO by getting all the elements */
class Wiper implements Callable<List<String>> {
@Override
public List<String> call() throws Exception {
List<String> wiped = new ArrayList<>();
startBarrier.await();
for (String elem = fifo.remove(); elem != null; elem = fifo.remove())
wiped.add(elem);
return wiped;
}
}
}
| 5,298 |
0 | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util | Create_ds/geronimo-yoko/yoko-util/src/test/java/org/apache/yoko/util/concurrent/WeakConcurrentFifoTest.java | package org.apache.yoko.util.concurrent;
import org.apache.yoko.util.KeyedFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.*;
public class WeakConcurrentFifoTest extends ConcurrentFifoTest {
// must not use a mock here because it will hold onto all its arguments strongly
private final KeyedFactory<String, Runnable> factory = new KeyedFactory<String, Runnable>() {
public Runnable create(String key) {return cleanup;}
};
// must not use the @Mock annotation and Mockito's injection
// because it intermittently fails to count invocations correctly
private Runnable cleanup;
private ReferenceQueue<?> referenceQueue = new ReferenceQueue<>();
@Before
@Override
public void setupFifo() {
cleanup = mock(Runnable.class);
fifo = new WeakConcurrentFifo<>(factory);
}
@Test
public void testWeakRefsGetCollectedOnRemove() throws Exception {
WeakReference[] refs;
refs = enqueueStringsCollectably("foo", "foo", "bar", "bar", "bar", "bar");
fifo.put("baz"); // strings in constant pool are never GC'd
assertEquals(refs.length + 1, fifo.size());
assertEquals("foo", fifo.remove());
assertEquals(refs.length, fifo.size());
gcUntilCleared(refs);
verify(cleanup, times(0)).run();
assertEquals("baz", fifo.remove());
verify(cleanup, times(refs.length - 1)).run();
}
@Test
public void testWeakRefsGetCollectedOnPut() throws Exception {
WeakReference[] refs;
refs = enqueueStringsCollectably("foo", "foo", "bar", "bar", "bar", "bar");
assertEquals(refs.length, fifo.size());
assertEquals("foo", fifo.remove());
assertEquals(refs.length - 1, fifo.size());
gcUntilCleared(refs);
verify(cleanup, times(0)).run();
fifo.put("baz");
verify(cleanup, times(refs.length - 1)).run();
assertEquals("baz", fifo.remove());
}
@Test
public void testWeakRefsGetCollectedOnSize() throws Exception {
WeakReference[] refs;
refs = enqueueStringsCollectably("foo", "foo", "bar", "bar", "bar", "bar");
assertEquals(refs.length, fifo.size());
assertEquals("foo", fifo.remove());
assertEquals(refs.length - 1, fifo.size());
gcUntilCleared(refs);
verify(cleanup, times(0)).run();
assertEquals(0, fifo.size());
verify(cleanup, times(refs.length - 1)).run();
}
private WeakReference[] enqueueStringsCollectably(String... strings) {
WeakReference[] refs = new WeakReference[strings.length];
for (int i = 0 ; i < strings.length; i++) {
String s = new String(strings[i]);
refs[i] = new WeakReference(s, referenceQueue);
fifo.put(s);
}
return refs;
}
public void gcUntilCleared(WeakReference<?>... refs) throws Exception {
for (WeakReference<?> ref : refs) {
gcUntilCollected(ref);
referenceQueue.remove();
}
}
private static void gcUntilCollected(WeakReference<?> ref) {
while (ref.get() != null) {
System.out.print("gc ");
System.gc();
}
System.out.println();
}
}
| 5,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.