Wednesday, October 2, 2013

A simple very Simple StringKongBuilder using BeanUtilsBean | Five scenarios for ending the shutdown impasse & My Sleeping Karma - Brahama

Sarah Falou alguma coisa pra abraao.... "Esse pau nao vai levantar?"
Abraao decidiu ir pra terra 
das prometidas.

This is important.
Off Spring Topic:Found the API that i was using. And A Sample.





package org.nanotek.util;

@SuppressWarnings("serial")
public class BuilderException extends RuntimeException {

        public BuilderException() {
        }

        public BuilderException(String message) {
                super(message);
        }

        public BuilderException(Throwable cause) {
                super(cause);
        }

        public BuilderException(String message, Throwable cause) {
                super(message, cause);
        }

        public BuilderException(String message, Throwable cause,
                        boolean enableSuppression, boolean writableStackTrace) {
                super(message, cause, enableSuppression, writableStackTrace);
        }

}


exception deviantart



package org.nanotek.util;



import java.lang.reflect.InvocationTargetException;

import org.nanotek.StringKong;
import org.springframework.stereotype.Component;
import org.apache.commons.beanutils.BeanUtilsBean;
import org.springframework.beans.factory.annotation.Autowired;

@Component
public class StringKongBuilder {

        @Autowired
        private BeanUtilsBean beanUtilBeanCopier;


        public StringKong buildKongString(final StringKong sourceMessage){
                StringKong sk = null;
                try {
                        sk = (StringKong) beanUtilBeanCopier.cloneBean(sourceMessage);
                        sk.setId(Long.toString(System.currentTimeMillis()));
                }catch (NoSuchMethodException |
                                InvocationTargetException |
                                InstantiationException |
                                IllegalAccessException e){

                        throw new BuilderException(e);
                }
                return sk;
        }



        public BeanUtilsBean getBeanUtilBeanCopier() {
                return beanUtilBeanCopier;
        }


        public void setBeanUtilBeanCopier(BeanUtilsBean beanUtilBeanCopier) {
                this.beanUtilBeanCopier = beanUtilBeanCopier;
        }


}

"Contextual sound emanates from and duplicates a sound source as it is. It is often illustrative and also referred to as diegetic sound. The term derives from the Greek diegesis, meaning to tell or recount ...."

Contextual Sounds, nice music from Sweeden never found it again.