Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * JBoss, Home of Professional Open Source.
   * Copyright 2014, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site:
Information provided to ObjStoreBrowser.registerHandler for instrumenting record types.

Mike Musgrove

as of 4.17.26.Final In a subsequent release we will change packages names in order to provide a better separation between public and internal classes.
 @Deprecated // in order to provide a better separation between public and internal classes.
 public class OSBTypeHandler {
     private boolean enabled;
     private boolean allowRegistration;
     private String recordClass// defines which object store record types will be instrumented
     private String beanClass// the JMX mbean representation of the record type
     private String typeName// the type name {@link com.arjuna.ats.arjuna.coordinator.AbstractRecord#type()}
     public OSBTypeHandler(boolean enabledString recordClassString beanClassString typeNameString headerStateReaderClassName) {
     public OSBTypeHandler(boolean enabledboolean allowRegistrationString recordClassString beanClassString typeNameString headerStateReaderClassName) {
         this. = enabled;
         this. = allowRegistration;
         this. = recordClass;
         this. = beanClass;
         this. = typeName.replace("/".);
         this. = headerStateReaderClassName == null ? new HeaderStateReader() : createHeader(headerStateReaderClassName);
     private static HeaderStateReader createHeader(String headerStateReaderClassName) {
 		try {
 			Class<HeaderStateReadercl = (Class<HeaderStateReader>) Class.forName(headerStateReaderClassName);
 			return constructor.newInstance();
 		} catch (Throwable e) { // ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException
 			return new HeaderStateReader();
     public boolean isEnabled() {
         return ;
     public boolean isAllowRegistration() {
         return ;
     public void setEnabled(boolean enabled) {
         this. = enabled;
     public String getRecordClass() {
         return ;
     public String getBeanClass() {
         return ;
     public String getTypeName() {
         return ;
         return ;
New to GrepCode? Check out our FAQ X