Example usage for org.apache.commons.lang.builder ToStringBuilder reflectionToString

List of usage examples for org.apache.commons.lang.builder ToStringBuilder reflectionToString

Introduction

In this page you can find the example usage for org.apache.commons.lang.builder ToStringBuilder reflectionToString.

Prototype

public static String reflectionToString(Object object) 

Source Link

Document

Forwards to ReflectionToStringBuilder.

Usage

From source file:org.glite.security.voms.admin.view.actions.user.UserPersonalInfo.java

@Override
public String toString() {

    return ToStringBuilder.reflectionToString(this);
}

From source file:org.glite.voms.contact.VOMSServerInfo.java

public String toString() {

    return ToStringBuilder.reflectionToString(this);

}

From source file:org.gradle.webservice.TestTest.java

public void method() {
    FilenameUtils.separatorsToUnix("my/unix/filename");
    ToStringBuilder.reflectionToString(new Person("name"));
    new GrowthList();
    new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api
}

From source file:org.grouter.core.command.AbstractCommand.java

/**
 * Use reflection to pull out all attributs and values.
 *
 * @return a String representing the state of this Command, using reflection
 *///  w w  w  .j  a  v a2 s . co m
public String toStringUsingReflection() {
    return ToStringBuilder.reflectionToString(this);
}

From source file:org.grouter.core.util.SchedulerService.java

/**
 * Util for printing out some statistics.
 *///from ww  w.  j a v  a2s  . c  o  m
private void logStatus() {
    try {
        logger.info("Scheduler meta info :" + scheduler.getMetaData());
        List<JobExecutionContext> list = scheduler.getCurrentlyExecutingJobs();
        logger.info("Currently number of running jobs:" + list.size());
        for (JobExecutionContext jobExecutionContext : list) {
            logger.info("Job running :" + jobExecutionContext.getJobDetail().getFullName());
        }

        String[] groups = scheduler.getJobGroupNames();
        logger.info("Registered groups and jobs for each group");
        for (String group : groups) {
            String[] jobnames = scheduler.getJobNames(group);
            logger.info("Jobnames for group :" + group + " -> " + ToStringBuilder.reflectionToString(jobnames));
        }
    } catch (SchedulerException e) {
        //ignore
    }
}

From source file:org.jfrog.hudson.maven2.ArtifactsDeployer.java

private String artifactToString(MavenArtifact mavenArtifact, MavenBuild mavenBuild) throws IOException {
    return new StringBuilder().append(ToStringBuilder.reflectionToString(mavenArtifact)).append("[File: ")
            .append(getArtifactFile(mavenBuild, mavenArtifact)).append("]").toString();
}

From source file:org.jimcat.model.Image.java

/**
 * Return a string representation of an image
 * /*from   w  ww  .j a v  a2s.  c om*/
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
    return ToStringBuilder.reflectionToString(albums);
}

From source file:org.jrimum.utilix.Objects.java

/**
 * Exibe os valores de instncia para um objeto JRimum.
 * /*w  w  w.j  a v a2s.c  o m*/
 * @see org.apache.commons.lang.builder.ToStringBuilder#reflectionToString
 * 
 * @since 0.2
 * 
 * @see java.lang.Object#toString()
 */
public static String toString(Object obj) {

    return "JRimumObject: " + ToStringBuilder.reflectionToString(obj);
}

From source file:org.kuali.rice.core.api.mo.AbstractDataTransferObject.java

@Override
public String toString() {
    //using DCL idiom to cache toString.  toStrings on immutable objects never change.  They can be safely cached.
    //see effective java 2nd ed. pg. 71
    String t = _toString;//from  www .  j  av  a2s .c  o  m
    if (t == null) {
        synchronized (this) {
            t = _toString;
            if (t == null) {
                _toString = t = ToStringBuilder.reflectionToString(this);
            }
        }
    }

    return t;
}

From source file:org.mule.extension.validation.internal.ValidationSupport.java

protected void logSuccessfulValidation(Validator validator, MuleEvent event) {
    if (logger.isDebugEnabled()) {
        logger.debug("Successfully executed validator {}", ToStringBuilder.reflectionToString(validator));
    }// www  .j  a v a 2s. co  m
}